Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.66 KB

README.md

File metadata and controls

48 lines (37 loc) · 1.66 KB

openapi

Description

This project contains OpenAPI-3 definitions and common definitions used at INGV.

Available definitions in OpenAPI-3

FDSNWS - Event

Event (earthquake) information in QuakeML and text format

Shakedata

ShakeMap input Intensity Measure data extracted from recorded waveforms

INGV common definitions

When you document an API, it is common to have some features which you use across several of API resources. In that case, you can create a snippet for such elements in order to use them multiple times when you need it. With OpenAPI 3.0, you can reference a definition hosted on any location. It can be the same server.

To reference a definition, use the $ref.

Common INGV definitions

Earthworm software

How to use:

Example:

    Origin:
      type: object
      properties:
        id:
          $ref: 'https://ingv.github.io/openapi/definitions.yaml#/components/schemas/id'
        ot:
          $ref: 'https://ingv.github.io/openapi/definitions.yaml#/components/schemas/origin__ot'
        lat:
          $ref: 'https://ingv.github.io/openapi/definitions.yaml#/components/schemas/latitude'

Contribute

Please, feel free to contribute.

Author

(c) 2021 Valentino Lauciani valentino.lauciani[at]ingv.it

Istituto Nazionale di Geofisica e Vulcanologia, Italia