beacon_operations.get_beacon_map
GET /datasets/map
Returns a map (like a web sitemap) of the different endpoints implemented in this Beacon instance.
Authorizations
- None
Responses
200
Successful operation.
Response of a request for information about a Beacon
object
Information about the response that could be relevant for the Beacon client in order to interpret the results.
object
The Id of a Beacon. Usually a reversed domain string, but any URI is acceptable. The purpose of this attribute is, in the context of a Beacon network, to disambiguate responses coming from different Beacons.
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
IndividualReturning the Beacon Map.
object
Refers to the JSON Schema which describes the set of valid attributes for this particular document type. This attribute is mostly used in schemas that should be tested in Beacon implementations.
List of enpoints included in this Beacon instance. This is list is meant to inform Beacon clients, e.g. a Beacon Network, about the available endpoints, it is not used to generate any automatic list, but could be used for Beacon validation purposes.
object
object
Reference to the file that includes the OpenAPI definition of the endpoints implemented in this Beacon instance. The referenced file MUST BE a valid OpenAPI definition file, as it is expected that the Beacon clients (e.g. a Beacon Network) should be able to parse it to discover additional details on the supported verbs, parameters, etc.
The base url for this entry type. Returns a list of entries. It is added here for convenience of the Beacon clients, so they don’t need to parse the OpenAPI endpoints definition to get that base endpoint. Also, in very simple Beacons, that endpoint could be the only one implemented, together with ´singleEntryUrl`, in which case the whole map of endpoints is found in the current Map.
Optional, but recommended. Returns only one instance of this entry, identified by an id. It is added here for convenience of the Beacon clients, so they don’t need to parse the OpenAPI endpoints definition to get that base endpoint. Also, in very simple Beacons, that endpoint could be the only one implemented, together with ´rootUrl`, in which case the whole map of endpoints is found in the current Map.
Optional. A list describing additional endpoints implemented by this Beacon instance for that entry type. Additional details on the endpoint parameters, supported HTTP verbs, etc. could be obtained by parsing the OpenAPI definition referenced in the openAPIEndpointsDefinition attribute.
object
object
Endpoint URL
Which entry type is returned by querying this endpoint. It MUST match one of the entry types defined in the Beacon configuration file (beaconConfiguration.json).
default
An unsuccessful operation.
object
Beacon-specific error.
object
Entry not found
Information about the response that could be relevant for the Beacon client in order to interpret the results.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]The Id of a Beacon. Usually a reversed domain string, but any URI is acceptable. The purpose of this attribute is, in the context of a Beacon network, to disambiguate responses coming from different Beacons.
Section of the response that summarize the request received as it has been interpreted by the Beacon server. This summary can help to identify differences between the incoming request and its interpretation or processing, e.g. in the response granularity or pagination. The required properties include those that should be part of every request.
object
Version of API, e.g. in request or response. Beacon uses a Github-style, “v”-prefixed semantic versioning format.
[ "v2.0.1", "v0.3"]Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
Individualobject
Indicator of whether responses from every Resultset should be included in the response to this request or just the ones with positive, negative results or no details at all. If null (not specified), the default value of ‘HIT’ is assumed. This parameter allows for returning boolean/counting results although the Beacon instance is capable to return record level details.
Pagination that has been applied on the results.
object
A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddSize of the page. Use 0 to return all the results or the maximum allowed by the Beacon, if there is any.
10A hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1ddA hash or similar that allows the server to retrieve a “page”, e.g. (a subset of) a query response.
ab0sc&fe1dd- In the request: number of pages to skip
- In the response: number of pages that has been skipped
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Level of detail of the response:
boolean: returns true/false’ responsescount: adds the total number of positive results foundrecord: returns details for every row. In cases where a Beacon prefers to return records with fewer than all attributes, different strategies have to be considered w/o adding them to the current design, e.g.:- keeping non-mandatory attributes empty
- Beacon to provide a minimal record definition
Set of schemas to be used in the response to a request.
Schema to be used for the requested entry type in the response.
object
Individual