Skip to content

Commit f178f43

Browse files
author
Andrew Brookins
authored
Merge pull request #24 from simonprickett/patch-2
Formatting fix for creating a customer and minor typo fix.
2 parents 678bc43 + c1e10b5 commit f178f43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/fastapi_integration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ Next, start the server:
118118
$ poetry run uvicorn --reload main:test
119119

120120
Then, in another shell, create a customer:
121-
121+
```
122122
$ curl -X POST "http://localhost:8000/customer" -H 'Content-Type: application/json' -d '{"first_name":"Andrew","last_name":"Brookins","email":"[email protected]","age":"38","join_date":"2020
123123
-01-02"}'
124124
{"pk":"01FM2G8EP38AVMH7PMTAJ123TA","first_name":"Andrew","last_name":"Brookins","email":"[email protected]","join_date":"2020-01-02","age":38,"bio":""}
125-
125+
```
126126
Get a copy of the value for "pk" and make another request to get that customer:
127127

128128
$ curl "http://localhost:8000/customer/01FM2G8EP38AVMH7PMTAJ123TA"
@@ -133,7 +133,7 @@ You can also get a list of all customer PKs:
133133
$ curl "http://localhost:8000/customers"
134134
{"customers":["01FM2G8EP38AVMH7PMTAJ123TA"]}
135135

136-
## Redsi OM with Asyncio
136+
## Redis OM with Asyncio
137137

138138
Redis OM is designed to work with asyncio, so you can use Redis OM models asynchronously within FastAPI applications.
139139

0 commit comments

Comments
 (0)