Skip to content

Commit

Permalink
[API Part2] Add feasibility related requirements to CRUD classes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrobin committed Jun 20, 2024
1 parent b0a9f77 commit c26e74e
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ requirement:: /req/create-replace-delete/command
requirement:: /req/create-replace-delete/command-schema
requirement:: /req/create-replace-delete/command-status
requirement:: /req/create-replace-delete/command-result
requirement:: /req/create-replace-delete/feasibility
requirement:: /req/create-replace-delete/feasibility-status
requirement:: /req/create-replace-delete/feasibility-result
requirement:: /req/create-replace-delete/system-event
====
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ requirement:: /req/update/command
requirement:: /req/update/command-schema
requirement:: /req/update/command-status
requirement:: /req/update/command-result
requirement:: /req/update/feasibility
requirement:: /req/update/feasibility-status
requirement:: /req/update/feasibility-result
requirement:: /req/update/system-event
====
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,70 @@ part:: The `cmdId` parameter is the local identifier of the `Command` resource t



=== Feasibility

[requirement,model=ogc]
====
[%metadata]
identifier:: /req/create-replace-delete/feasibility
conditions:: The server implements <<clause-command-feasibility,style=basic%>>
part:: The server SHALL support the CREATE operation at the `Command` resources endpoints defined by the following URI template:
- `{api_root}/controlstreams/{csId}/feasibility`
part:: The server SHALL support the REPLACE and DELETE operations at the `Command` resource endpoints defined by the following URI templates:
- `{api_root}/controlstreams/{csId}/feasibility`
- `{api_root}/feasibility/{id}`
part:: The `csId` parameter is the local identifier of the `ControlStream` resource the `Feasibility` is (or will be) associated to. +
The `id` parameter is the local identifier of the `Feasibility` resource to replace or delete.
====



=== Feasibility Status

[requirement,model=ogc]
====
[%metadata]
identifier:: /req/create-replace-delete/feasibility-status
conditions:: The server implements <<clause-command-feasibility,style=basic%>>
part:: The server SHALL support the CREATE operation at the `CommandStatus` resources endpoints defined by the following URI template:
- `{api_root}/feasibility/{feasId}/status`
part:: The server SHALL support the REPLACE and DELETE operations at the `CommandStatus` resource endpoints defined by the following URI template:
- `{api_root}/feasibility/{feasId}/status/{id}`
part:: The `feasId` parameter is the local identifier of the `Feasibility` resource the `CommandStatus` is (or will be) associated to. +
The `id` parameter is the local identifier of the `CommandStatus` resource to replace or delete.
====



=== Feasibility Results

[requirement,model=ogc]
====
[%metadata]
identifier:: /req/create-replace-delete/feasibility-result
conditions:: The server implements <<clause-command-feasibility,style=basic%>>
part:: The server SHALL support the CREATE operation at the `CommandResult` resources endpoints defined by the following URI template:
- `{api_root}/feasibility/{feasId}/result`
part:: The server SHALL support the REPLACE and DELETE operations at the `CommandResult` resource endpoints defined by the following URI template:
- `{api_root}/feasibility/{feasId}/result/{id}`
part:: The `feasId` parameter is the local identifier of the `Feasibility` resource the `CommandResult` is (or will be) associated to. +
The `id` parameter is the local identifier of the `CommandResult` resource to replace or delete.
====



=== System Events

[requirement,model=ogc]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,61 @@ part:: The `cmdId` parameter is the local identifier of the `Command` resource t



=== Feasibility

[requirement,model=ogc]
====
[%metadata]
identifier:: /req/update/feasibility
conditions:: The server implements <<clause-command-feasibility,style=basic%>>
part:: The server SHALL support the UPDATE operation at the `Command` resource endpoints defined by the following URI templates:
- `{api_root}/controlstreams/{csId}/feasibility/{id}`
- `{api_root}/feasibility/{id}`
part:: The `csId` parameter is the local identifier of the `ControlStream` resource the `Command` is associated to. +
The `id` parameter is the local identifier of the `Feasibility` resource to update.
====



=== Feasibility Status

[requirement,model=ogc]
====
[%metadata]
identifier:: /req/update/feasibility-status
conditions:: The server implements <<clause-command-feasibility,style=basic%>>
part:: The server SHALL support the UPDATE operation at the `CommandStatus` resources endpoints defined by the following URI template:
- `{api_root}/feasibility/{feasId}/status/{id}`
part:: The `feasId` parameter is the local identifier of the `Feasibility` resource the `CommandStatus` is associated to. +
The `id` parameter is the local identifier of the `CommandStatus` resource to update.
====



=== Feasibility Results

[requirement,model=ogc]
====
[%metadata]
identifier:: /req/update/feasibility-result
conditions:: The server implements <<clause-command-feasibility,style=basic%>>
part:: The server SHALL support the UPDATE operation at the `CommandResult` resources endpoints defined by the following URI template:
- `{api_root}/feasibility/{feasId}/result/{id}`
part:: The `feasId` parameter is the local identifier of the `Feasibility` resource the `CommandResult` is associated to. +
The `id` parameter is the local identifier of the `CommandResult` resource to update.
====



=== System Events

[requirement,model=ogc]
Expand Down

0 comments on commit c26e74e

Please sign in to comment.