From the course: Build REST APIs with FastAPI

Unlock this course with a free trial

Join today to access over 24,200 courses taught by industry experts.

Challenge: Info handler

Challenge: Info handler

The challenge for this chapter is to write a /info handler that will return a JSON object. The JSON object should have the version which is a string, say 0.1.0, the time, the current time in ISO format, and the user running the application, and have a look at the user environment variable.

Contents