Skip to content

Commit

Permalink
editoast: split temporary_speed_limit_group into two endpoints
Browse files Browse the repository at this point in the history
- One endpoint creates temporary speed limits and their group.
- Another endpoint returns the list of track ranges inside an area
  delimited by a list of entries and exits (directed locations
  on the tracks, quite similar to the position and direction of
  signs).

Signed-off-by: Loup Federico <[email protected]>
  • Loading branch information
Sh099078 committed Oct 29, 2024
1 parent 3f8cd68 commit da0cb7a
Show file tree
Hide file tree
Showing 5 changed files with 1,000 additions and 971 deletions.
91 changes: 82 additions & 9 deletions editoast/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,83 @@ paths:
minimum: 0
'404':
description: Infra ID not found
/infra/{infra_id}/delimited_area:
post:
tags:
- delimited_area
parameters:
- name: infra_id
in: path
description: An existing infra ID
required: true
schema:
type: integer
format: int64
requestBody:
content:
application/json:
schema:
type: object
required:
- track_ranges
properties:
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
required: true
responses:
'200':
description: The track ranges between a list entries and exits.
content:
application/json:
schema:
type: object
required:
- track_ranges
properties:
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
/infra/{infra_id}/errors:
get:
tags:
Expand Down Expand Up @@ -2336,12 +2413,8 @@ paths:
type: object
required:
- speed_limit_group_name
- infra_id
- speed_limits
properties:
infra_id:
type: integer
format: int64
speed_limit_group_name:
type: string
speed_limits:
Expand All @@ -2351,7 +2424,7 @@ paths:
required:
- start_date_time
- end_date_time
- signals
- track_ranges
- speed_limit
- obj_id
properties:
Expand All @@ -2360,16 +2433,16 @@ paths:
format: date-time
obj_id:
type: string
signals:
type: array
items:
$ref: '#/components/schemas/Sign'
speed_limit:
type: number
format: double
start_date_time:
type: string
format: date-time
track_ranges:
type: array
items:
$ref: '#/components/schemas/DirectionalTrackRange'
required: true
responses:
'201':
Expand Down
Loading

0 comments on commit da0cb7a

Please sign in to comment.