Open jerstlouis opened 2 years ago
@joanma747 @cportele According to https://github.com/OAI/OpenAPI-Specification/issues/2453#issuecomment-1913414315 OAS 3.1 has this new $dynamicRef
concept that may allow using templates in APIs for e.g., /collections/{collectionId}
, /styles/{styleId}
, /processes/{processId}
, etc. at a particular end-point like https://maps.gnosis.earth/ogcapi/api/all-collections?f=json , https://maps.gnosis.earth/ogcapi/api/tileMatrixSets?f=json, etc.
Could that be right? I'm still intrigued by the possibility to auto-generate compiled clients from an API definition that will work with all implementations / deployments of an OGC API Standard.
Presented today to the Architecture DWG some challenges and solutions from OGC API - Tiles in defining re-usable OpenAPI buliding blocks for OGC API specifications, including consideration for generating pre-compiled generic clients.
$ref: ../../api/all-collections.json
will be available from the API at run-time, when using the OpenAPI definition to generate a compiled client$templatedRef: ../../api/styles/{collectionId}
Presentation on the portal.
@ghobona @joanma747