Skip to content

Commit

Permalink
relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
akhesaCaro committed Feb 23, 2022
1 parent f1384da commit 23edc45
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/cookbook/generic/Generic.lhs
Expand Up @@ -6,7 +6,7 @@ level.

If a you need nesting because you have different branches in your API tree, you
might want to jump directly to the [Record-based APIs: the nested records
case](TODO) cookbook that broaches the subject.
case](../namedRoutes/NamedRoutes.html) cookbook that broaches the subject.

Shall we begin?

Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook/namedRoutes/NamedRoutes.lhs
Expand Up @@ -8,7 +8,7 @@ This cookbook explains how to implement such nested-record-based-APIs using
`NamedRoutes` through the example of a Movie Catalog.
If you don't need the nested aspect of the record-based API, you might want to look at [Record-based
APIs: the simple
case](https://docs.servant.dev/en/stable/cookbook/generic/Generic.html) cookbook
case](../generic/Generic.html) cookbook
which covers a simpler implementation in which every endpoint is on the same
level.

Expand Down
6 changes: 3 additions & 3 deletions doc/cookbook/structuring-apis/StructuringApis.lhs
Expand Up @@ -37,7 +37,7 @@ endpoints, just like we turn `a * b + a * c` into

(It should be noted that the `(:<|>)` operator is not the only way of combining
endpoints with Servant. Other techniques are shown in subsequent cookbooks. See
record-based design paragraph)
[record-based alternative for implementing APIs](StructuringApis.html#record-based-alternative-for-implementing-apis))


``` haskell
Expand Down Expand Up @@ -215,7 +215,7 @@ It should be noted that the `(:<|>)` is not the only way of combining endpoints.
Servant offers a convenient way to design APIs with records avoiding the ordering constraint of the operator.
A simple case is approached in the [Record-based APIs: the simple
case](https://docs.servant.dev/en/stable/cookbook/generic/Generic.html)
case](../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.
records case](../namedRoutes/NamedRoutes.html) in which we implement an API tree with many branches.

0 comments on commit 23edc45

Please sign in to comment.