https://github.com/sassani134/bottle-api
https://github.com/sassani134/bottle-api
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sassani134/bottle-api
- Owner: sassani134
- Created: 2023-07-23T21:51:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-24T10:01:02.000Z (almost 2 years ago)
- Last Synced: 2025-01-02T07:46:31.949Z (5 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bottle API
## Functionalities
- initialize a Player from Lvl 1
- Read Players
- Read Player Stats
- Update:
- Update Player Exp, Level, and Stats
- update Player name
- Delete Player### Player stats
{
"name": "Player Name",
"level": 1,
"exp": 0,
"expMax": 100,
"stats": {
"hp": 10,
"attack": 1,
"defense": 1,
"speed": 5
}
}## Routes
fonctionnalités | method | Chemin |
--- | --- | --- |
Creer un Player | POST | /players
Lire tous les Players | GET | /players
Lire un Player | GET | /players/{id}
maj exp, level, stats | PUT | /players/{id}/exp
maj name | PUT | /players/{id}/name
supprimer un Player | DELETE | /players/{id}### voir swagger pour + de details
### for all routes, the base url is `http://localhost:8080/api/v1`