summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-09-02cd: add step to publish a build in ghcrSanto Cariotti
2024-09-01Add extended area field for alertsSanto Cariotti
2024-08-30Add filter for alert by idSanto Cariotti
2024-08-30Use timestamp for `created_at` fieldSanto Cariotti
2024-08-30Return user_id on JWT creationSanto Cariotti
2024-08-29Add CORSSanto Cariotti
2024-08-29Valid the polygon before the alert creationSanto Cariotti
2024-08-26Fix order of lat/lngSanto Cariotti
2024-08-26Add alertsSanto Cariotti
A payload for alert creation can be ``` { "query": "mutation NewAlert($input: AlertInput!) { newAlert(input: $input) { id createdAt level } }", "variables": { "input": { "points": [ { "latitude": 40.73061, "longitude": -73.935242 }, { "latitude": 40.741895, "longitude": -73.989308 }, { "latitude": 40.712776, "longitude": -74.005974 }, { "latitude": 40.73061, "longitude": -73.935242 }, ], "level": "TWO" } } } ```
2024-08-24Add new positionSanto Cariotti
``` 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" } } }' ```
2024-08-23Add `lastPositions` query with filter by `movingActivity` paramSanto Cariotti
2024-08-23Add docSanto Cariotti
2024-08-23Filter positions by user idSanto Cariotti
2024-08-22Add field `moving activity`Santo Cariotti
Following https://developers.google.com/android/reference/com/google/android/gms/location/DetectedActivity
2024-08-22Add position type and query on itSanto Cariotti
2024-08-22Add paginationSanto Cariotti
Query is `users(limit: X offset Y)` with defaults X=20 Y=0
2024-08-21Create rust.ymlSanto Cariotti
2024-08-21Authentication for endpointsSanto Cariotti
2024-08-21Add loginSanto Cariotti
Fields sent are ``` { "query": "mutation Login($input: LoginCredentials!) { login(input: $input) { accessToken tokenType } }", "variables": { "input": { "email": "....", "password": "..." } } } ```
2024-08-21Reformat types modSanto Cariotti
2024-08-21Add usersSanto Cariotti
Query must be something like '{users { id, email, password, isAdmin }}'
2024-08-21Reformat graphql modSanto Cariotti
2024-08-20Add state for databaseSanto Cariotti
2024-08-20InitSanto Cariotti