https://github.com/atiilla/drf-backend
https://github.com/atiilla/drf-backend
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/atiilla/drf-backend
- Owner: atiilla
- Created: 2024-08-04T14:20:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-04T14:21:09.000Z (about 1 year ago)
- Last Synced: 2025-01-25T17:10:44.640Z (8 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Create migrations
```
python manage.py makemigrations
```## Apply migrations
```
python manage.py migrate
```## Generate Dummy Data
This command will generate dummy data for testing purposes.
```
python manage.py dummydata
```## Run Server
```
python manage.py runserver
```## EXAMPLE USAGE with `curl`
```
# Get all reports
curl -X GET http://127.0.0.1:8000/reports/# Get all sources
curl -X GET http://127.0.0.1:8000/sources/# Get all modifications
curl -X GET http://127.0.0.1:8000/modifications/# Get all strategies
curl -X GET http://127.0.0.1:8000/strategies/
```