Skip to content

Commit 3462707

Browse files
committed
step format
1 parent 9a958fb commit 3462707

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

source/integrations/fastapi-integration.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Install dependencies, connect to MongoDB and start your FastAPI server.
5252
.. procedure::
5353
:style: connected
5454

55-
.. step:: Clone the example code example.
55+
.. step:: Clone the example code example
5656

5757
Run the following command in your terminal to clone the code from the
5858
:github:`mongodb-with-fastapi </mongodb-developer/mongodb-with-fastapi>`
@@ -62,7 +62,7 @@ Install dependencies, connect to MongoDB and start your FastAPI server.
6262

6363
git clone [email protected]:mongodb-developer/mongodb-with-fastapi.git
6464

65-
.. step:: Install the required dependencies.
65+
.. step:: Install the required dependencies
6666

6767
.. tip:: Use a Virtual environment
6868

@@ -80,7 +80,7 @@ Install dependencies, connect to MongoDB and start your FastAPI server.
8080

8181
It might take a few moments to download and install your dependencies.
8282

83-
.. step:: Retrieve your connection string.
83+
.. step:: Retrieve your connection string
8484

8585
Follow the :manual:`Find Your MongoDB Atlas Connection String guide
8686
</reference/connection-string/#find-your-mongodb-atlas-connection-string>`
@@ -99,7 +99,7 @@ Install dependencies, connect to MongoDB and start your FastAPI server.
9999
environment variable. You can use `direnv <https://direnv.net/>`__ to
100100
make this process easier.
101101

102-
.. step:: Start your FastAPI server.
102+
.. step:: Start your FastAPI server
103103

104104
Run the following code in your terminal to start your FastAPI server:
105105

@@ -145,7 +145,7 @@ defined in the ``app.py`` file.
145145
.. procedure::
146146
:style: connected
147147

148-
.. step:: Create the StudentModel Class.
148+
.. step:: Create the StudentModel Class
149149

150150
This is the primary model you can use as the `response model
151151
<https://fastapi.tiangolo.com/tutorial/response-model/>`__ for the
@@ -208,7 +208,7 @@ defined in the ``app.py`` file.
208208
},
209209
)
210210

211-
.. step:: Create the UpdateStudentModel Class.
211+
.. step:: Create the UpdateStudentModel Class
212212

213213
The ``UpdateStudentModel`` has two key differences from the ``StudentModel``:
214214

@@ -241,7 +241,7 @@ defined in the ``app.py`` file.
241241
)
242242

243243

244-
.. step:: Create the StudentCollection Class.
244+
.. step:: Create the StudentCollection Class
245245

246246
The ``StudentCollection`` class is defined to encapsulate a list of
247247
``StudentModel`` instances. In theory, the endpoint could return a
@@ -294,7 +294,7 @@ All of these routes are defined in the ``app.py`` file.
294294
.. procedure::
295295
:style: connected
296296

297-
.. step:: Create the Student routes.
297+
.. step:: Create the Student routes
298298

299299
The ``create_student`` route receives the new student data as a JSON
300300
string in a ``POST`` request. You must decode this JSON request body into a
@@ -334,7 +334,7 @@ All of these routes are defined in the ``app.py`` file.
334334
)
335335
return created_student
336336

337-
.. step:: Create the Read routes.
337+
.. step:: Create the Read routes
338338

339339
This application one route for viewing all students, and one
340340
for viewing an individual student, specified by their ``id``.
@@ -393,7 +393,7 @@ All of these routes are defined in the ``app.py`` file.
393393

394394
raise HTTPException(status_code=404, detail="Student {id} not found")
395395

396-
.. step:: Create the Update route.
396+
.. step:: Create the Update route
397397

398398
The ``update_student`` route functions similar to a combination of the
399399
``create_student`` and the ``show_student`` routes. It receives the ``id``
@@ -447,7 +447,7 @@ All of these routes are defined in the ``app.py`` file.
447447

448448
raise HTTPException(status_code=404, detail=f"Student {id} not found")
449449

450-
.. step:: Create the Delete route.
450+
.. step:: Create the Delete route
451451

452452
The ``delete_student`` is acting on a single document, so you must supply
453453
an ``id`` in the URL. If you find a matching document and successfully

0 commit comments

Comments
 (0)