Skip to content

Commit

Permalink
adding namedroute to index
Browse files Browse the repository at this point in the history
  • Loading branch information
akhesaCaro committed Feb 23, 2022
1 parent 74b5f06 commit a9f6190
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/cookbook/index.rst
Expand Up @@ -19,6 +19,7 @@ you name it!

structuring-apis/StructuringApis.lhs
generic/Generic.lhs
namedRoutes/NamedRoutes.lhs
https/Https.lhs
db-mysql-basics/MysqlBasics.lhs
db-sqlite-simple/DBConnection.lhs
Expand Down
4 changes: 2 additions & 2 deletions doc/cookbook/namedRoutes/NamedRoutes.lhs
Expand Up @@ -257,7 +257,7 @@ That's it, we have our `MovieCatalogAPI` type!
Let's make a server and a client out of it!
### The Server
## The Server
As you know, we can’t talk about a server, without addressing the handlers.
Expand Down Expand Up @@ -377,6 +377,6 @@ Done! We’ve got our client!
We hope that you found this workbook helpful, and that you now feel more confident using the `NamedRoutes` technique.
If you are interested in further understanding the built-in Servant combinators, see [Structuring APIs](https://docs.servant.dev/en/stable/cookbook/structuring-apis/StructuringApis.html).
If you are interested in further understanding the built-in Servant combinators, see [Structuring APIs](../structuring-apis/StructuringApis.html).
Since `NamedRoutes` is based on the Generic mechanism, you might want to have a look at [Sandy Maguire’s _Thinking with Types_ book](https://doku.pub/download/sandy-maguire-thinking-with-typesz-liborgpdf-4lo5ne7kdj0x).
1 change: 1 addition & 0 deletions doc/cookbook/structuring-apis/StructuringApis.lhs
Expand Up @@ -217,5 +217,6 @@ Servant offers a convenient way to design APIs with records avoiding the orderin
A simple case is approached in the [Record-based APIs: the simple
case](https://docs.servant.dev/en/stable/cookbook/generic/Generic.html)
cookbook, which deals with flat APIs where every endpoint is on the same level.
Also, a more complex example with nested record is discussed in [Record-based APIs: the nested
records case](TODO) in which we implement an API tree with many branches.

0 comments on commit a9f6190

Please sign in to comment.