fix some curl-mock typos
This commit is contained in:
parent
765b62b05b
commit
8336fc96d5
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ In this example we will generate curl requests with mock post data from a servan
|
|||
This may be usefull for testing and development purposes.
|
||||
Especially post requests with a request body are tedious to send manually.
|
||||
|
||||
Also, we will learn how to use the servant-forein library to generate stuff from servant APIs.
|
||||
Also, we will learn how to use the servant-foreign library to generate stuff from servant APIs.
|
||||
|
||||
|
||||
Language extensions and imports:
|
||||
|
@ -134,7 +134,7 @@ generateCurl p host =
|
|||
$ listFromAPI (Proxy :: Proxy NoLang) (Proxy :: Proxy Mocked) p
|
||||
```
|
||||
|
||||
To understand the, better start at the end:
|
||||
To understand this function, better start at the end:
|
||||
|
||||
`listFromAPI` gives us a list of endpoints. We iterate over them (`foldr`) and call `generateEndpoint` for every endpoint.
|
||||
|
||||
|
|
Loading…
Reference in a new issue