Chore: Pushing changes to migrate from windows/wsl to fedora
This commit is contained in:
@@ -6,3 +6,18 @@ cat db_setup.sql | mysql -u root -p
|
||||
-- table setup
|
||||
cat db_table_setup.sql | mysql -u admin -p CMT
|
||||
```
|
||||
|
||||
### Testing
|
||||
```
|
||||
cd backend
|
||||
pytest app/test.py
|
||||
|
||||
# Curl POST command
|
||||
curl -X POST "http://localhost:8000/clients/" -H "Content-Type: application/json" -d '{"tin_number": 100752121, "names": "Pax au Telemanus", "phone_number": "0788475021"}'
|
||||
|
||||
# Trying updating client details
|
||||
curl -X PATCH "http://localhost:8000/clients/1" -H "Content-Type: application/json" -d '{"names": "John Wick"}'
|
||||
|
||||
# Deletion
|
||||
curl -X DELETE http://localhost:8000/clients/2
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user