Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions external-apis/lombardia/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#
# Metatada catalog items extending OAS3 schemas
#

x_api_id:
type: string
pattern: [0-9a-f\-]+
description: A unique id for the API

x_lifecycle:
properties:
published:
type: string
format: date
deprecated:
type: string
format: date
retired:
type: string
format: date
maturity:
type: string
enum: [proposal,developing,published,deprecated,retired]

x_catalog:
properties:
tag:
description: >-
A list of tags useful for catalog search purposes.
type: array
items:
type: string
category:
tag:
type: array
items:
type: string
context:
type: array
items:
$ref: '#/Context'
ecosystem:
type: array
items:
$ref: '#/Ecosystem'


Context:
description: >-
WRITEME @stefkohub
properties:
name:
type: string
description:
type: string

Ecosystem:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

penso sia meglio il termine "aggregator" invece di "ecosystem" visto che un insieme di API può raccogliersi intorno ad un soggetto che non coincide per forza con un ecosistema ai sensi del Piano triennale ICT

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stefkohub il buon @ggentili di Umbria ci da' qualche suggerimento.

description: >-
WRITEME @stefkohub
properties:
name:
type: string
description:
type: string
url:
type: string

HealthCheck:
description: >-
HealthCheck informations for testing API status.
properties:
url:
type: string
format: url
description: absolute or relative url to the healthcheck path
interval:
type: number
description: expected seconds between two checks
timeout:
type: number
description: expected timeout interval after which a request should timeout
3 changes: 3 additions & 0 deletions external-apis/lombardia/schemas.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#
# This file contains openapi schemas from Regione Lombardia glossaries (dictionaries).
#
40 changes: 39 additions & 1 deletion external-apis/muoversi2015.e015.servizirl.it.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
openapi: 3.0.0
info:
version: 3.0.1
x-api-id: 00000000-0000-0000-0000-000000000000
title: Muoversi in Lombardia
x-summary: Il servizio fornisce una soluzione di viaggio intermodale utilizzando il trasporto pubblico in Lombardia.
description: |-
Expand All @@ -26,16 +28,41 @@ info:
```
'https://muoversi2015.e015.servizirl.it/planner/rest/soluzioniJson/e015Search?param=milano&maxResult=1'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A me risulta rotto anche questo. @ioggstream

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@libremente quest'API fa' mutualTLS: per entrare serve un certificato ;)

```
x-lifecycle: # {type: string, format: date }
published: 2018-01-01 # data di pubblicazione
deprecated: 2020-12-31 # data inizio dismissione
retired: 2021-03-31 # data termine dismissione
maturity: published # {type: string, enum: [proposal,developing,published,deprecated,retired]

x-catalog:
tag: [orari, trasporto pubblico, arrivo, partenza intermodalità, autobus, tram, treno, traghetto, funicolare, metropolitana]
category: [CATEGORY1,CATEGORY2]
context:
- name: [Nome contesto]
description: [Descrizione contesto]
ecosystem:
- name: E015
url: [Url verso ecosistema di cui fa parte questa definizione API]
description: [Descrizione Ecosistema]
contact:
name: Technical Management Board di E015
url: http://www.e015.regione.lombardia.it/PE015/esplora-i-contenuti/i-servizi/muoversi-lombardia
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broken link (punta alla home).
Forse questo può andar meglio:
http://www.e015.regione.lombardia.it/site/api-detail?id=13

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fatta #41 . Vediamo che dice @stefkohub

email: [email protected]
version: 1.0.0
termsOfService: >-
http://www.e015.regione.lombardia.it/PE015/system/files_force/allegati/policy-servizio/policy_servizio_muoversi_in_lombardia_0.pdf?download=1&download=1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broken link.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx++

servers:
- url: https://muoversi2015.e015.servizirl.it/planner/rest/soluzioniJson
description: Server accessibile dall'ecosistema E015
x-sandbox: false # Se questo parametro non è definito o e' a false, l'ambiente non e' di sandbox.
x-healthCheck:
# A regime nel catalogo l'url sara' sempre /status
# un codice 2xx e' OK. Altrimenti e' in errore.
url: >-
https://muoversi2015.e015.servizirl.it/planner/rest/soluzioniJson/e015Search/?param=milano&maxResult=1
interval: 300 # seconds
timeout: 15 # seconds
security:
- MutualTLS: []
paths:
/e015Search:
get:
Expand Down Expand Up @@ -112,6 +139,17 @@ paths:
type: string

components:
securitySchemes:
MutualTLS:
description: >-
Nome del file del certificato X.509 associato al servizio, necessario per abilitare
il meccanismo di attestazione dell’appartenenza all’Ecosistema:
- CA_CA di Servizio.crt
- FOGLIA_e015.servizirl.it
NOTA: il supporto per mutualTLS e' previsto in OAS 3.1 https://github.com/OAI/OpenAPI-Specification/pull/1764
quindi *temporaneamente* andremo ad indicare `type: http` per non rompere la validazione.
type: http
scheme: basic
schemas:
Search:
properties:
Expand Down