Skip to content

Conversation

@stefkohub
Copy link

In questa nuova versione del file YAML proponiamo alcuni parametri personalizzati, utili a classificare ed identificare le funzionalità dei servizi esposti via API come "Muoversi in Lombardia".

- name: [Nome business function]
description: [Descrizione business function]
x-technology-type: [Da definire secondo glossario/dominio dei valori]
x-glossary:
Copy link
Contributor

Choose a reason for hiding this comment

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

Le info di glossario non le metterei direttamente qui ma in components.schemas.

Guarda in questo draft come le informazioni di glossario siano indicate sia sulla classe
che per campo.

https://github.com/teamdigitale/api-openapi-samples/blob/master/external-apis/spid-aa.yaml#L109

Un parser può semplicemente ricostruire tutto il gioco leggendo lo yaml e ricavare l'informazione completa e aggiornata.

x-audience:
visibility: [Set di valori che definiscono chi può visualizzare questa API]
allowed-profiles: [Elenco dei profili business abilitati a consumare l'API]
x-ecosystem:
Copy link
Contributor

Choose a reason for hiding this comment

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

x-ecosystem è sotto x-catalog ?

Copy link
Author

Choose a reason for hiding this comment

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

si, faccio una pull request per apportare la modifica

visibility: [Set di valori che definiscono chi può visualizzare questa API]
allowed-profiles: [Elenco dei profili business abilitati a consumare l'API]
x-ecosystem:
- name: [Nome ecosistema]
Copy link
Contributor

Choose a reason for hiding this comment

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

In questo caso (Muoversi Lombardia) potete valorizzare i campi? @stefkohub

x-rating:
stats: [URL lettura statistiche KPI API]
rating: [URL lettura rating API]
x-api-id: [Identificativo univoco insieme di funzionalita']
Copy link
Contributor

Choose a reason for hiding this comment

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

Qui ci mettiamo un bel provvisiorio 00000000-0000-0000-0000-000000000000

Copy link
Author

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

Choose a reason for hiding this comment

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

Fai tu PR non devi fare merge delle mie modifiche.

x-gdpr:
- data: [Informazione da gestire (ad es. Codice Fiscale)]
data-type: [Tipologia (ad es. personale|sensibile|giudiziario)]
x-lifecycle:
Copy link
Contributor

@ioggstream ioggstream Dec 17, 2018

Choose a reason for hiding this comment

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

Possiamo prendere i valori dal file di specifica E015? Chi lo gestisce? Possiamo coinvolgerli in modo da ottenere un template che loro possono riusare.

Copy link
Contributor

@ioggstream ioggstream Dec 18, 2018

Choose a reason for hiding this comment

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

published: 2018-01-01  # data di pubblicazione
deprecated: 2020-12-31 
retired: 2021-03-31
```  @stefkohub attendo conferma da te/lispa

Copy link
Contributor

Choose a reason for hiding this comment

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

Aperto issue #17

description: Sulla base del testo inserito per effettuare la ricerca, il servizio
restituisce una lista di punti, ognuno dei quali corredato da una descrizione,
una tipologia e la coppia di coordinate che ne individua la posizione.
x-lifecycle:
Copy link
Contributor

Choose a reason for hiding this comment

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

Questo se definito fa' override del default definito per l'API, corretto? Per i campi scaduti useremo deprecated https://swagger.io/specification/#operationObject.

Copy link
Author

Choose a reason for hiding this comment

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

Sono a due livelli differenti. Può esserci l'API "Muoversi in Lombardia" con stato "stable" in generale, ma un metodo "/droneManage" in versione "alpha" ed il metodo "/carriola" in "deprecated".

Copy link
Contributor

Choose a reason for hiding this comment

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

generalmente d'accordo, ma devo capire come marcare i metodi in alpha in maniera standard.
Ti faccio io un commento per domani

x-publisher: [dati publisher]
x-provider: [dati provider servizi]
x-complexity-index: [valore della complessità delle api (in FP)]
x-gdpr:
Copy link
Contributor

Choose a reason for hiding this comment

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

Questo avrebbe senso gestirlo con la granularità negli schemas, in modo da poter taggare i singoli campi e appoggiarsi ad eventuali schemi metadatabili (Eg. vedi il riferimento che questo schema ha verso le ontologie https://github.com/teamdigitale/openapi/blob/master/docs/schemas/tax_code.yaml)

In questo caso si potrebbe fare anche un lavoro più articolato, collegando i singoli schemi e/o dati alle ontologie agid.

Copy link
Author

Choose a reason for hiding this comment

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

totalmente d'accordo, va spostato negli schemas. Il parser lato server può comporre tutte le informazioni relative alla privacy scorrendo le informazioni sulla privacy dei dati che vanno trattati direttamente nella definizione dei dati stessi.

Copy link
Contributor

@ioggstream ioggstream Dec 17, 2018

Choose a reason for hiding this comment

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

Esatto, e le indicazioni potrebbero essere addirittura prese dall'ontologia agid: per questo è importante usare ove possibile quei riferimenti ed uniformare progressivamente i glossari.

Il gruppo che segue https://github.com/italia/daf-ontologie-vocabolari-controllati è molto ferrato. Se serve possiamo contattarli tramite slack.developers.italia.it #ontologie.

@ioggstream ioggstream changed the base branch from master to 14-metadata-muoversi-lombardia December 18, 2018 08:33
@ioggstream ioggstream force-pushed the 14-metadata-muoversi-lombardia branch from 066b019 to acb3f89 Compare December 18, 2018 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants