Skip to content

Build a simple REST API that requires an api_key for authentication

Notifications You must be signed in to change notification settings

Omotunde2005/REST_API_with_FastApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A REST API BUILT WITH FASTAPI

This is a REST Api that accepts GET, PUT, DELETE AND POST requests. It is built on top of a database containing different names of people and other information about them

How does it work

GET request: The GET request enables you to get all users and their metadata from the database

POST request: This enables you to create new users and add to the database. You also get an api_key for authentication purposes

PUT/UPDATE request: To perform a put request, you need to authenticate yourself by providing your api key, which you got during registration

DELETE request: This enables you to delete a user by providing the user's api_key.


Clone the repository by running this in the terminal
git clone https://github.com/Omotunde2005/REST_API_with_FastApi.git


Run the app in the terminal via
python uvicorn main:app

About

Build a simple REST API that requires an api_key for authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published