forked from opengeospatial/ogcapi-processes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update recommendations and add Requirements in the corresponding Requirements class Make CWL depending on OGC Application Package for not having to add another conformance class such as Define the Requirement for w param in DRU directly to make it easier to extent, cf. opengeospatial#386 Move workflow-not-found exception Requirement to DRU Requirements class
- Loading branch information
Showing
21 changed files
with
154 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
extensions/deploy_replace_undeploy/standard/requirements/cwl/REQ_body.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[[req_cwl_body]] | ||
[requirement] | ||
==== | ||
[%metadata] | ||
label:: /req/cwl/body | ||
part:: The media type `application/cwl` SHALL be used to indicate that request body contains a processes description encoded as <<rc_cwl,CWL>>. | ||
==== |
15 changes: 15 additions & 0 deletions
15
...sions/deploy_replace_undeploy/standard/requirements/cwl/REQ_execution-unit.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[[req_cwl_execution-unit]] | ||
[requirement] | ||
==== | ||
[%metadata] | ||
label:: /req/cwl/execution-unit | ||
part:: If the execution unit is encoded in CWL then the content of the execution unit SHALL be an object with the following properties: | ||
* `type` and `href` if passed by reference | ||
* `value` and a `format` object with a `mediaType` property if passed by value | ||
part:: If the execution unit is encoded in CWL, the value of the `type` property SHALL be `application/cwl`, when for `mediaType` it should be `application/cwl+json`. | ||
part:: If the execution unit is encoded in CWL, the value of the `href` property SHALL be a reference to the CWL encoded file, when the value of the `value` property shall be the CWL encoded in JSON format. | ||
==== |
11 changes: 11 additions & 0 deletions
11
...sions/deploy_replace_undeploy/standard/requirements/cwl/deploy/REQ_w-param.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[[req_cwl_w-param]] | ||
[requirement] | ||
==== | ||
[%metadata] | ||
label:: /req/cwl/deploy/w-param | ||
part:: If the CWL contains more than a single workflow identifier, an additional `w` query parameter MAY be used to target a specific workflow id to be deployed. | ||
part:: If the `w` parameter has a value, the server SHALL validate the CWL at the request time. In case, the server cannot find the `w` identifier within the workflow from the CWL file provided, a 400 status code is expected and a document based upon exception.yaml with the type "worflow-not-found". | ||
==== |
7 changes: 7 additions & 0 deletions
7
extensions/deploy_replace_undeploy/standard/requirements/cwl/replace/REQ_body.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[[req_cwl_replace_body]] | ||
[requirement] | ||
==== | ||
[%metadata] | ||
label:: /req/cwl/replace/body | ||
part:: The media type `application/cwl` SHALL be used to indicate that request body contains a processes description encoded as <<rc_ogcapppkg,CWL>>. | ||
==== |
10 changes: 10 additions & 0 deletions
10
...quirements/deploy-replace-undeploy/deploy/REQ_exception-workflow-not-found.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[[req_deploy-replace-undeploy_deploy_exception-workflow-not-found]] | ||
[requirement] | ||
==== | ||
[%metadata] | ||
label:: /req/deploy-replace-undeploy/deploy/exception-workflow-not-found | ||
part:: If the `w` parameter has a value and the server cannot find the `w` identifier in the processes from the body POST request, the status code SHALL be `400`. | ||
part:: The content of that response SHALL be based upon the schema https://raw.githubusercontent.com/opengeospatial/ogcapi-processes/master/core/openapi/schemas/exception.yaml[exception.yaml]. | ||
part:: The `type` of the exception SHALL be “http://www.opengis.net/def/exceptions/ogcapi-processes-2/1.0/workflow-not-found”. | ||
==== |
9 changes: 9 additions & 0 deletions
9
..._undeploy/standard/requirements/deploy-replace-undeploy/deploy/REQ_w-param.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[[req_deploy-replace-undeploy_deploy_w-param]] | ||
[requirement] | ||
==== | ||
[%metadata] | ||
label:: /req/deploy-replace-undeploy/deploy/w-param | ||
part:: If the body of the POST request contains more than a single process definition, an additional `w` query parameter MAY be used to target a specific process to be deployed. If not used, the first process found SHALL be deployed. | ||
==== |
9 changes: 9 additions & 0 deletions
9
...ns/deploy_replace_undeploy/standard/requirements/docker/REQ_execution-unit.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[[req_docker_execution-unit]] | ||
[requirement] | ||
==== | ||
[%metadata] | ||
label:: /req/docker/execution-unit | ||
part:: If the execution unit is specified as a Docker image, the value of the `type` property SHALL be `docker'. | ||
part:: If the execution unit is specified as a Docker image, the value of the `image` property SHALL be a reference to the Docker image. | ||
==== |
7 changes: 7 additions & 0 deletions
7
extensions/deploy_replace_undeploy/standard/requirements/docker/REQ_schema.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[[req_docker_schema]] | ||
[requirement] | ||
==== | ||
[%metadata] | ||
label:: /req/docker/schema | ||
part:: The `executionUnit` property of an `OGC Application Package` document SHALL be based upon the schema https://github.com/opengeospatial/ogcapi-processes/blob/master/openapi/schemas/processes-dru/executionUnit.yaml[executionUnit.yaml]. | ||
==== |
7 changes: 7 additions & 0 deletions
7
extensions/deploy_replace_undeploy/standard/requirements/ogcapppkg/REQ_body.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[[req_ogcappkg_body]] | ||
[requirement] | ||
==== | ||
[%metadata] | ||
label:: /req/ogcapppkg/body | ||
part:: The media type `application/ogcapppkg+json` SHALL be used to indicate that request body contains a processes description encoded as an <<rc_ogcapppkg,OGC Application Package>>. | ||
==== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters