Fix toctree and page titles

This commit is contained in:
Julian K. Arni 2016-01-27 22:58:38 +01:00 committed by Sönke Hahn
parent 8e63078691
commit 8990ebb16e
4 changed files with 8 additions and 17 deletions

View File

@ -1,7 +1,4 @@
---
title: Deriving Haskell functions to query an API
toc: true
---
# Deriving Haskell functions to query an API
While defining handlers that serve an API has a lot to it, querying an API is simpler: we do not care about what happens inside the webserver, we just need to know how to talk to it and get a response back. Except that we usually have to write the querying functions by hand because the structure of the API isn't a first class citizen and can't be inspected to generate a bunch of client-side functions.

View File

@ -1,7 +1,4 @@
---
title: Generating documentation from API types
toc: true
---
# Generating documentation from API types
The source for this tutorial section is a literate haskell file, so first we
need to have some language extensions and imports:

View File

@ -1,7 +1,4 @@
---
title: Deriving Javascript functions to query an API
toc: true
---
# Deriving Javascript functions to query an API
We will now see how *servant* lets you turn an API type into javascript
functions that you can call to query a webservice. The derived code assumes you

View File

@ -61,8 +61,8 @@ Tutorial
.. toctree::
:maxdepth: 1
api-type.lhs
server.lhs
client.lhs
javascript.lhs
docs.lhs
ApiType.lhs
Server.lhs
Client.lhs
Javascript.lhs
Docs.lhs