https://github.com/tiagocavalcante/python-api
An API to register users wrote in Python with 2 versions: Flask and Bottle
https://github.com/tiagocavalcante/python-api
api bottle flask python
Last synced: 11 months ago
JSON representation
An API to register users wrote in Python with 2 versions: Flask and Bottle
- Host: GitHub
- URL: https://github.com/tiagocavalcante/python-api
- Owner: TiagoCavalcante
- License: gpl-3.0
- Archived: true
- Created: 2020-11-16T23:56:22.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-15T19:31:29.000Z (over 3 years ago)
- Last Synced: 2025-03-24T06:16:42.717Z (about 1 year ago)
- Topics: api, bottle, flask, python
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# python-api
An API to register users wrote in Python with 2 versions: Flask and Bottle
## Install dependencies
Search how to install Flask and Bottlo on your system
## Run
To run the Flask API: ```python flask/server.py```

To run the Bottle API: ```python bottle/server.py```

## Routes
| method | path | description |
|--------|---------------|------------------------------------------------------------------------------------------------------------------------------------------|
| GET | `/users` | return the users and their information |
| GET | `/users/` | return the information about the user with the id `id` |
| POST | `/users` | create a user, receives a `application/json` body with the required parameters `name` and `email`, return the created user's id |
| PUT | `/users/` | edit the information about the user with the id `id`, receives a `application/json` body with the optional parameters `name` and `email` |
| DELETE | `/users/` | delete the user with the id `id` |