Skip to content

kittydepa/fastapi_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple Foraging API

Making a simple API with FastAPI and uvicorn. The main purpose is to try out FastAPI + documentation generation (with Redoc).

Another purpose of this project is to learn basic usage of FastAPI, by following the core CRUD pattern:

  • Create with POST

  • Read with GET

  • Update with PUT

  • Delete withDELETE

This API will be a simple foraging log, including information about mushrooms and berries you can forage in Sweden.

Setup

Before you start, make sure you have the proper setup (especially if using VS Code with FastAPI), which includes:

  • You have installed fastapi and uvicorn

  • You have a main.py file setup :)

  • You have a requirements.txt file in your project directory, with fastapi listed

  • You have followed the instructions in VS Code's Python FastAPI guide to:

    • Create a virtual environment
    • Select the correct Python interpreter
    • Install the required dependencies

Tip: To start your API, run the following command:

uvicorn main:app --reload

See Make an API for detailed instructions.


Godspeed.

About

Testing out FastAPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages