Skip to content

Commit

Permalink
Add documentation for /to-replace
Browse files Browse the repository at this point in the history
  • Loading branch information
Perholehto committed Oct 17, 2023
1 parent 1ad0b3f commit 762cd45
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,22 @@ When the submodule is updated, to get the newest version of inserter you need to
]
}
```
- `GET /timetables/to-replace`: Fetch the vehicle schedule frame IDs slated for replacement,
considering the replacement action with the staging vehicle schedule frame ID and target priority.
- Request params:
- `stagingVehicleScheduleFrameId` The ID of the staging vehicle schedule frame. Example: `"50f939b0-aac3-453a-b2f5-24c0cdf8ad21"`
- `targetPriority` The priority to which the staging timetables will be promoted. Example: `10`

Example response body:
```JSON
{
// The IDs of vehicle schedule frames slated for replacement
"toReplaceVehicleScheduleFrameIds": [
"d3d0aea6-db3f-4421-b4eb-39cffe8835a8",
"e0ea0778-833d-4ce1-8f2d-27109cab4a4e"
]
}
```
## Technical Documentation

jore4-timetables-api is a Spring Boot application written in Kotlin, which implements a REST API for accessing the timetables database and creating more complicated updates in one transaction than is possible with the graphQL interface.
Expand Down

0 comments on commit 762cd45

Please sign in to comment.