Skip to content

Commit

Permalink
#2, #3, #4: improve reusability by moving common parts to schema/api
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed May 6, 2021
1 parent f0328c9 commit 3af67cf
Show file tree
Hide file tree
Showing 12 changed files with 1,033 additions and 1,388 deletions.
457 changes: 7 additions & 450 deletions api/BR/brazilian-ckan-portals/eng/openapi.yaml

Large diffs are not rendered by default.

40 changes: 3 additions & 37 deletions api/BR/portais-arcgis-brasil/por/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ openapi: 3.0.3
# packages?? https://developers.arcgis.com/documentation/mapping-apis-and-services/security/arcgis-identity/serverless-web-apps/

info:
title: Portais CKAN de dados abertos do Brasil
title: Portais ArcGIS de dados abertos do Brasil
description: |
(descrição temporaria)
**(descrição temporaria)**
Isto é um rascunho. ArcGIS não foi implementado ainda.
Expand All @@ -42,9 +42,6 @@ info:
# - https://docs.google.com/spreadsheets/d/16SW1kOv01IKcdO5nZvGjnjat7DrUqFem4mcWC2OQbz4/edit#gid=332977705
servers:

# - url: https://data.humdata.org/api/3/action
# description: "(TODO: Remove this) HDX Production server"

- url: https://www.data.rio/
description: "{[urn:data:xz:iso:3166-2:BR-RJ][urn:data:un:p:BR3304557]} data.rio"

Expand All @@ -56,35 +53,4 @@ servers:
# https://github.com/teamdigitale/api-openapi-samples/blob/master/external-apis/api.daf.teamdigitale.it.yaml.src
paths:
/data.json:
get:
description: |
Nota: esta requisição irá acionar <https://www.data.rio/data.json>.
O arquivo é extremamente grande (seu navegador pode travar) e no
momento não está claro se é possível limitar quantidade da resposta.
Considere usar uma ferramenta que suporte respostas grandes.
responses:
'200':
description: >
Return a list of the names of the site’s datasets (packages).
See also:
- https://docs.ckan.org/en/2.9/api/#ckan.logic.action.get.package_list
content:
application/json:
schema:
type: object
example:
{
"@context":"https://project-open-data.cio.gov/v1.1/schema/catalog.jsonld",
"@type":"dcat:Catalog",
"conformsTo":"https://project-open-data.cio.gov/v1.1/schema",
"describedBy":"https://project-open-data.cio.gov/v1.1/schema/catalog.json",
"dataset":
[
{"@type":"dcat:Dataset"},
{"@type":"dcat:Dataset"},
{"@type":"dcat:Dataset"}
]
}

$ref: "../../../../schema/api/arcgis/por/arcgis-openapi.yaml#/operationem/datajson"
Loading

0 comments on commit 3af67cf

Please sign in to comment.