Skip to content

Notes microservice REST API created with Python and FastAPI

Notifications You must be signed in to change notification settings

gitkoDev/FastAPI-Notes-Service

Repository files navigation

FastAPI Notes Microservice

Python + FastAPI asynchronous REST API. Authentication is implemented using JWT. Each user can add, modify and access their own notes ONLY using a valid JSON Web Token

Tools used

Startup

Run make run or docker compose up --build in root folder to apply all necessary migrations and start the project.

Endpoints

Swagger documentation with request/response body examples available at http://127.0.0.1:8000/docs after project startup

Authorization

  • 0.0.0.0:8080/auth =>POST=>   Create new user
  • 0.0.0.0:8080/auth/token=>POST=>   Log in to get access token

API

  • 0.0.0.0:8080/api/v1=>POST=>   Add note to user
  • 0.0.0.0:8080/api/v1=>GET=>   Get all notes for user
  • 0.0.0.0:8080/api/v1/{note_id}=>GET=>   Get user's note by note id
  • 0.0.0.0:8080/api/v1/{note_id}=>PUT=>   Update user's note by node id
  • 0.0.0.0:8080/api/v1/{note_id}=>DELETE=>   Delete user's note by note id

About

Notes microservice REST API created with Python and FastAPI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published