| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | release: 0.0.1-a | Santo Cariotti | 2024-09-03 | 1 | -1/+1 |
| | | |||||
| * | Add user query used to find an user by id | Santo Cariotti | 2024-09-03 | 2 | -1/+74 |
| | | |||||
| * | Limit `users` query to admins only | Santo Cariotti | 2024-09-03 | 1 | -1/+9 |
| | | |||||
| * | Add name and address fields for users | Santo Cariotti | 2024-09-03 | 3 | -3/+19 |
| | | |||||
| * | Add metadata on Cargo config | Santo Cariotti | 2024-09-03 | 1 | -0/+6 |
| | | |||||
| * | ci: docs | Santo Cariotti | 2024-09-03 | 1 | -38/+24 |
| | | |||||
| * | Add examples on doc | Santo Cariotti | 2024-09-03 | 3 | -1/+86 |
| | | |||||
| * | ci: add doc | Santo Cariotti | 2024-09-03 | 1 | -0/+48 |
| | | |||||
| * | cd: add `release.sh` and fix text | Santo Cariotti | 2024-09-02 | 2 | -4/+11 |
| | | |||||
| * | cd: add step to publish a build in ghcr | Santo Cariotti | 2024-09-02 | 3 | -1/+68 |
| | | |||||
| * | Add extended area field for alerts | Santo Cariotti | 2024-09-01 | 2 | -18/+72 |
| | | |||||
| * | Add filter for alert by id | Santo Cariotti | 2024-08-30 | 2 | -4/+19 |
| | | |||||
| * | Use timestamp for `created_at` field | Santo Cariotti | 2024-08-30 | 5 | -58/+17 |
| | | |||||
| * | Return user_id on JWT creation | Santo Cariotti | 2024-08-30 | 2 | -2/+5 |
| | | |||||
| * | Add CORS | Santo Cariotti | 2024-08-29 | 2 | -3/+11 |
| | | |||||
| * | Valid the polygon before the alert creation | Santo Cariotti | 2024-08-29 | 2 | -6/+36 |
| | | |||||
| * | Fix order of lat/lng | Santo Cariotti | 2024-08-26 | 1 | -2/+2 |
| | | |||||
| * | Add alerts | Santo Cariotti | 2024-08-26 | 6 | -30/+220 |
| | | | | | | | | | | | | | | | | | | | | | | 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" } } } ``` | ||||
| * | Add new position | Santo Cariotti | 2024-08-24 | 2 | -3/+68 |
| | | | | | | | | | | | | | | | | | | | ``` 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 `lastPositions` query with filter by `movingActivity` param | Santo Cariotti | 2024-08-23 | 2 | -0/+75 |
| | | |||||
| * | Add doc | Santo Cariotti | 2024-08-23 | 8 | -0/+35 |
| | | |||||
| * | Filter positions by user id | Santo Cariotti | 2024-08-23 | 3 | -12/+70 |
| | | |||||
| * | Add field `moving activity` | Santo Cariotti | 2024-08-22 | 4 | -2/+74 |
| | | | | | Following https://developers.google.com/android/reference/com/google/android/gms/location/DetectedActivity | ||||
| * | Add position type and query on it | Santo Cariotti | 2024-08-22 | 9 | -3/+135 |
| | | |||||
| * | Add pagination | Santo Cariotti | 2024-08-22 | 2 | -4/+16 |
| | | | | | Query is `users(limit: X offset Y)` with defaults X=20 Y=0 | ||||
| * | Create rust.yml | Santo Cariotti | 2024-08-21 | 1 | -0/+22 |
| | | |||||
| * | Authentication for endpoints | Santo Cariotti | 2024-08-21 | 9 | -33/+133 |
| | | |||||
| * | Add login | Santo Cariotti | 2024-08-21 | 8 | -7/+353 |
| | | | | | | | | | | | | | | | | | Fields sent are ``` { "query": "mutation Login($input: LoginCredentials!) { login(input: $input) { accessToken tokenType } }", "variables": { "input": { "email": "....", "password": "..." } } } ``` | ||||
| * | Reformat types mod | Santo Cariotti | 2024-08-21 | 4 | -50/+56 |
| | | |||||
| * | Add users | Santo Cariotti | 2024-08-21 | 4 | -23/+58 |
| | | | | | Query must be something like '{users { id, email, password, isAdmin }}' | ||||
| * | Reformat graphql mod | Santo Cariotti | 2024-08-21 | 4 | -15/+16 |
| | | |||||
| * | Add state for database | Santo Cariotti | 2024-08-20 | 7 | -42/+72 |
| | | |||||
| * | Init | Santo Cariotti | 2024-08-20 | 9 | -0/+2536 |
