summaryrefslogtreecommitdiffstats
path: root/src/graphql/mutation.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add new positionSanto Cariotti2024-08-241-2/+59
| | | | | | | | | | | | | | | | | | ``` curl -X POST http://localhost:8000/graphql \ -H "Content-Type: application/json" \ -H "Authorization: Bearer TOKEN" \ -d '{ "query": "mutation NewPosition($input: PositionInput!) { newPosition(input: $input) { id userId createdAt latitude longitude movingActivity } }", "variables": { "input": { "latitude": 44.502952, "longitude": 11.3114988, "movingActivity": "IN_VEHICLE" } } }' ```
* Add docSanto Cariotti2024-08-231-0/+3
|
* Add loginSanto Cariotti2024-08-211-0/+35
Fields sent are ``` { "query": "mutation Login($input: LoginCredentials!) { login(input: $input) { accessToken tokenType } }", "variables": { "input": { "email": "....", "password": "..." } } } ```