Skip to content

Commit

Permalink
fixup! editoast: split temporary_speed_limit_group into two endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh099078 committed Nov 20, 2024
1 parent 3200621 commit def2d71
Show file tree
Hide file tree
Showing 7 changed files with 476 additions and 339 deletions.
124 changes: 84 additions & 40 deletions editoast/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,11 @@ paths:
get:
tags:
- delimited_area
summary: Return any track between one of the `entries` and one of the `exits`, i.e. any track that can
description: |-
be reached from an entry before reaching an exit.
To prevent a missing exit to cause the graph traversal to never stop exploring, the exploration
stops when a maximum distance is reached and no exit has been found.
parameters:
- name: infra_id
in: path
Expand All @@ -697,26 +702,7 @@ paths:
track_ranges:
type: array
items:
type: object
required:
- track
- begin
- end
- direction
properties:
begin:
type: number
format: double
direction:
$ref: '#/components/schemas/Direction'
end:
type: number
format: double
track:
type: string
maxLength: 255
minLength: 1
additionalProperties: false
$ref: '#/components/schemas/DirectionalTrackRange'
required: true
responses:
'200':
Expand All @@ -731,26 +717,7 @@ paths:
track_ranges:
type: array
items:
type: object
required:
- track
- begin
- end
- direction
properties:
begin:
type: number
format: double
direction:
$ref: '#/components/schemas/Direction'
end:
type: number
format: double
track:
type: string
maxLength: 255
minLength: 1
additionalProperties: false
$ref: '#/components/schemas/DirectionalTrackRange'
/infra/{infra_id}/errors:
get:
tags:
Expand Down Expand Up @@ -3563,6 +3530,15 @@ components:
force:
type: boolean
description: force the deletion even if it's used
DelimitedAreaResponse:
type: object
required:
- track_ranges
properties:
track_ranges:
type: array
items:
$ref: '#/components/schemas/DirectionalTrackRange'
Detector:
type: object
required:
Expand Down Expand Up @@ -3596,6 +3572,22 @@ components:
maxLength: 255
minLength: 1
additionalProperties: false
DirectedLocation:
type: object
required:
- track
- position
- direction
properties:
direction:
$ref: '#/components/schemas/Direction'
position:
type: number
format: double
track:
type: string
maxLength: 255
minLength: 1
Direction:
type: string
enum:
Expand Down Expand Up @@ -4138,6 +4130,30 @@ components:
type: string
enum:
- editoast:DatabaseAccessError
EditoastDelimitedAreaErrorInvalidLocations:
type: object
required:
- type
- status
- message
properties:
context:
type: object
required:
- invalid_locations
properties:
invalid_locations:
type: array
message:
type: string
status:
type: integer
enum:
- 400
type:
type: string
enum:
- editoast:delimited_area:InvalidLocations
EditoastDocumentErrorsNotFound:
type: object
required:
Expand Down Expand Up @@ -4290,6 +4306,7 @@ components:
- $ref: '#/components/schemas/EditoastCoreErrorGenericCoreError'
- $ref: '#/components/schemas/EditoastCoreErrorUnparsableErrorOutput'
- $ref: '#/components/schemas/EditoastDatabaseAccessErrorDatabaseAccessError'
- $ref: '#/components/schemas/EditoastDelimitedAreaErrorInvalidLocations'
- $ref: '#/components/schemas/EditoastDocumentErrorsNotFound'
- $ref: '#/components/schemas/EditoastEditionErrorInfraIsLocked'
- $ref: '#/components/schemas/EditoastEditionErrorSplitTrackSectionBadOffset'
Expand Down Expand Up @@ -6615,6 +6632,33 @@ components:
properties:
state:
$ref: '#/components/schemas/InfraState'
InputError:
oneOf:
- type: object
required:
- TrackDoesNotExist
properties:
TrackDoesNotExist:
type: string
- type: object
required:
- LocationOutOfBounds
properties:
LocationOutOfBounds:
type: object
required:
- track
- position
- track_length
properties:
position:
type: number
format: double
track:
type: string
track_length:
type: number
format: double
InternalError:
type: object
required:
Expand Down
Loading

0 comments on commit def2d71

Please sign in to comment.