MCPcopy Create free account
hub / github.com/geekcomputers/Python / get_a_course

Function get_a_course

fastapi.py:33–35  ·  view source on GitHub ↗
(course_id: int)

Source from the content-addressed store, hash-verified

31# get single course
32@app.get("/courses/{course_id}")
33def get_a_course(course_id: int):
34 course = course_id - 1
35 return fakedb[course]
36
37
38# add a new course

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected