Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marirs/fastapisimple

fastApi boilerplate using API Key in URL path
https://github.com/marirs/fastapisimple

api-key-authentication api-server fastapi fastapi-boilerplate microservices mongodb python38 url-path-api

Last synced: about 1 month ago
JSON representation

fastApi boilerplate using API Key in URL path

Awesome Lists containing this project

README

        

# fastAPI boilerplate

This project is to use fastAPI with just an API Key in the URL Path. This can be used for simple API microservices where JWT/API Header/etc. is not required.

#### Requirements
- Python 3.8+
- MongoDB

- Deploying the server
```bash
mkvirtualenv --python=`which python3.8` fastApiSimple
cd /path/to/fastApiSimple
setvirtualenvproject
```

- Running the server in development
```bash
$ ./server.sh run
```

#### Endpoints
- user: /api/{api_key}/user - User list
- docs: /api/{api_key}/docs - fastApi Documentation
---

Author: Sriram