-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from opengeospatial/issue-106
update sortables
- Loading branch information
Showing
10 changed files
with
73 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
core/*.html | ||
core/*.pdf | ||
.DS_Store |
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 |
---|---|---|
@@ -1,20 +1,23 @@ | ||
[ | ||
{ | ||
"id": "id", | ||
"title": "Record Identifier", | ||
"description": "A unique record identifier assigned by the server.", | ||
"language": "en" | ||
}, | ||
{ | ||
"id": "updated", | ||
"title": "Updated", | ||
"description": "The more recent date on which the resource was changed.", | ||
"language": "en" | ||
}, | ||
{ | ||
"id": "extent", | ||
"title": "Spatio-Temporal Extent", | ||
"description": "The spatio-temporal coverage of the resource.", | ||
"language": "en" | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "https://data.example.com/collections/abc/sortables", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"title": "Record Identifier", | ||
"description": "A unique record identifier assigned by the server.", | ||
"type": "string" | ||
}, | ||
"updated": { | ||
"title": "Updated", | ||
"description": "The more recent date on which the resource was changed.", | ||
"type": "string", | ||
"format": "date" | ||
}, | ||
"extent": { | ||
"title": "Spatio-Temporal Extent", | ||
"description": "The spatio-temporal coverage of the resource.", | ||
"type": "object" | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
type: object | ||
required: | ||
- sortables | ||
properties: | ||
sortables: | ||
type: array | ||
items: | ||
$ref: ../schemas/sortable.yaml | ||
title: Sortables | ||
description: Describes the properties that can be used to sort the results | ||
additionalProperties: | ||
$ref: 'https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v3.0/schema.json#/definitions/Schema' |
This file was deleted.
Oops, something went wrong.
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
8 changes: 8 additions & 0 deletions
8
core/standard/recommendations/sorting/REC_sortables-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,8 @@ | ||
[[rec_sorting_sortables-schema]] | ||
[width="90%",cols="2,6a"] | ||
|=== | ||
^|*Recommendation {counter:rec-id}* |*/rec/sorting/sortables-schema* | ||
^|A |Each property SHOULD have a human readable title (`title`) and where | ||
necessary a description (`description`). | ||
^|B |Each property SHOULD have a single type (`type`). | ||
|=== |
11 changes: 11 additions & 0 deletions
11
core/standard/requirements/sorting/REQ_get-sortables-op.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_sorting_get-sortables-op]] | ||
[width="90%",cols="2,6a"] | ||
|=== | ||
^|*Requirement {counter:req-id}* |*/req/sorting/get-sortables-op* | ||
^|A |For every collection identified in the Collections resource (path | ||
`/collections`), the server SHALL support the HTTP GET operation at the path | ||
`/collections/{collectionId}/sortables` and the media type `application/schema+json`. | ||
^|B |The parameter `collectionId` is each `id` property in the collections response (JSONPath: `$.collections[*].id`). | ||
^|C |The Sortables resource SHALL be referenced from the Collection resource | ||
with a link with the link relation type `\http://www.opengis.net/def/rel/ogc/1.0/sortables`. | ||
|=== |
14 changes: 14 additions & 0 deletions
14
core/standard/requirements/sorting/REQ_get-sortables-success.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,14 @@ | ||
[[req_sorting_get-sortables-success]] | ||
[width="90%",cols="2,6a"] | ||
|=== | ||
^|*Requirement {counter:req-id}* |*/req/sorting/get-sortables-success* | ||
^|A |A successful execution of the operation SHALL be reported as a response | ||
with a HTTP status code `200`. | ||
^|B |For responses that use `application/schema+json` as the `Content-Type` of | ||
the response, the response SHALL have the following characteristics: | ||
|
||
* The property `$schema` is `\http://json-schema.org/draft-07/schema#` or | ||
`\https://json-schema.org/draft/2019-09/schema`. | ||
* The property `$id` is the URI of the resource without query parameters. | ||
* The `type` is `object` and each property is a sortable. | ||
|=== |
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
core/standard/requirements/sorting/REQ_sortables-success.adoc
This file was deleted.
Oops, something went wrong.