API Reference fdsn_plugs v0.8.3

View Source

Modules

Chain all the FDSN plugs in the order they should be

Chain all the FDSN plugs in the order to serve a Dataselect service.

This plug will make sure that the request does only present valid parsable parameters, conform to the availability webservice.

Plug module that parses all the parameters and validates the values.

Defines a structure representing all the parameters in an FDSN availability request.

This modules parses the body of a HTTP request to generate a struct

Check that all source identifiers are consistent.

For POST requests, force the content-type header and reset the body_params. This is necessary because FDSN specification does not say anything about the content-type header. So, some POST request can arrive without this. The Plug behaviour has to be forced.

This plug will make sure that the request does only present valid parsable parameters, conform to the dataselect webservice.

Plug module that parses all the parameters and validates the values for the dataselect spec.

Defines a structure representing all the parameters in an FDSN availability request.

Implements a strategy to fetch the singers keys for EIDA authority

This is a plug to manage user authentication through Json Web Tokens. Authenticated user will be stored in the Plug assigns as :user

This plug checks if the request is empty. This depends on the HTTP method. When GET is used, check that the conn.params has at least one element. When POST is used, the assigns is already in :fdsn_parameters. Check it has at least one element.

This is a module Plug that will check all parameters of the get request against FDSN specification. It will add in the Plug.Conn a new attribute :fdsn_parameters as a map.

PublicationVersion in miniseed3 superseeds the Quality code in miniseed2. But the FDSN web services still need to advertise the quality code. This module is a helper to translate the publication version to a quality letter. The correspondance is

This modules defines a source identifier type and all logic for validation and manipulation.