{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://apizie.tech"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/open-data:gov-bc-ca-geomark/post-geomarks-copy":{"post":{"operationId":"open_data_gov_bc_ca_geomark_post_geomarks_copy","summary":"Create a new geomark by copying the geometries from one or more existing geomarks from the current server.","description":"POST /geomarks/copy","tags":["open-data"],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["geomarkUrl"],"properties":{"geomarkUrl":{"type":"string","description":"One or more geomark URLs or identifiers to create the new geomark from."},"resultFormat":{"type":"string","enum":["json","xml","kml","kmz","shp","shpz","geojson","gml","gpkg","wkt"],"description":"The file format the geomark info resource should be returned using."},"allowOverlap":{"type":"boolean","enum":[false,true],"default":false,"description":"Select this option to allow overlapping geometries"},"callback":{"type":"string","description":"The callback function a JSON result format would be wrapped in to support Ajax requests."},"redirectUrl":{"type":"string","description":"The optional external URL to redirect the user to when the geomark is created rather than showing the geomark info page. The geomarkId and…"},"failureRedirectUrl":{"type":"string","description":"The url to redirect if the geomark could not be created. The URL will include a _Error parameter with the error message for the field that…"},"bufferMetres":{"type":"integer","description":"The amount to buffer the geometry in metres, must only contain numerical digits (e.g 10). Leave blank and no buffer will be added to input…"},"bufferJoin":{"type":"string","enum":["ROUND","MITRE","BEVEL"],"default":"ROUND","description":"If bufferMetres is specified, The style of buffer to use for joins between the line segments for lines and polygons."},"bufferCap":{"type":"string","enum":["ROUND","SQUARE","FLAT"],"default":"ROUND","description":"If bufferMetres is specified, The style of buffer to use at the ends of a buffered line."},"bufferMitreLimit":{"type":"integer","default":5,"description":"If bufferMetres is specified, the maximum ratio of distance from the original geometry to a mitre buffer point and the buffer amount. If…"},"bufferSegments":{"type":"integer","default":8,"description":"If bufferMetres is specified, the number of line segments used in each quadrant to approximate the curve for round end-cap and join…"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/open-data:gov-bc-ca-geomark/post-geomarks-new":{"post":{"operationId":"open_data_gov_bc_ca_geomark_post_geomarks_new","summary":"Create a new geomark","description":"POST /geomarks/new","tags":["open-data"],"parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"body":{"type":"object","description":"Form fields as a JSON object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":0,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/open-data:gov-bc-ca-geomark/get-geomarks-geomark-id-file-format-extension":{"get":{"operationId":"open_data_gov_bc_ca_geomark_get_geomarks_geomark_id_file_format_extension","summary":"Get information about a particular geomark","description":"GET /geomarks/{geomarkId}.{fileFormatExtension}","tags":["open-data"],"parameters":[{"name":"geomarkId","in":"query","required":true,"description":"The unique identifier for the geomark.","schema":{"type":"string","description":"The unique identifier for the geomark."},"example":"gm-abcdefghijklmnopqrstuv0bcislands"},{"name":"fileFormatExtension","in":"query","required":true,"description":"The file format name extension used to represent the geomark download.","schema":{"type":"string","enum":["json","xml","kml","kmz","shp","shpz","geojson","gml","gpkg","wkt"],"description":"The file format name extension used to represent the geomark download."},"example":"json"},{"name":"srid","in":"query","required":false,"description":"The srid of the coordinate system the geometry should be converted to.","schema":{"type":"integer","enum":[4326,3005,3857,26907,26908,26909,26910,26911],"default":4326,"description":"The srid of the coordinate system the geometry should be converted to."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:gov-bc-ca-geomark/get-geomarks-geomark-id-bounding-box-file-format-extension":{"get":{"operationId":"open_data_gov_bc_ca_geomark_get_geomarks_geomark_id_bounding_box_file_format_extension","summary":"Gets the bounding box of the geomark","description":"GET /geomarks/{geomarkId}/boundingBox.{fileFormatExtension}","tags":["open-data"],"parameters":[{"name":"geomarkId","in":"query","required":true,"description":"The unique identifier for the geomark","schema":{"type":"string","description":"The unique identifier for the geomark"},"example":"gm-abcdefghijklmnopqrstuv0bcislands"},{"name":"fileFormatExtension","in":"query","required":true,"description":"The file format name extension used to represent the geomark download.","schema":{"type":"string","enum":["json","xml","kml","kmz","shp","shpz","geojson","gml","gpkg","wkt"],"description":"The file format name extension used to represent the geomark download."},"example":"json"},{"name":"srid","in":"query","required":false,"description":"The srid of the coordinate system the geometry should be converted to.","schema":{"type":"integer","enum":[4326,3005,3857,26907,26908,26909,26910,26911],"default":4326,"description":"The srid of the coordinate system the geometry should be converted to."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:gov-bc-ca-geomark/get-geomarks-geomark-id-feature-file-format-extension":{"get":{"operationId":"open_data_gov_bc_ca_geomark_get_geomarks_geomark_id_feature_file_format_extension","summary":"Get the feature and attribution of the geomark","description":"GET /geomarks/{geomarkId}/feature.{fileFormatExtension}","tags":["open-data"],"parameters":[{"name":"geomarkId","in":"query","required":true,"description":"The unique identifier for the geomark","schema":{"type":"string","description":"The unique identifier for the geomark"},"example":"gm-abcdefghijklmnopqrstuv0bcislands"},{"name":"fileFormatExtension","in":"query","required":true,"description":"The file format name extension used to represent the geomark download.","schema":{"type":"string","enum":["json","xml","kml","kmz","shp","shpz","geojson","gml","gpkg","wkt"],"description":"The file format name extension used to represent the geomark download."},"example":"json"},{"name":"srid","in":"query","required":false,"description":"The srid of the coordinate system the geometry should be converted to.","schema":{"type":"integer","enum":[4326,3005,3857,26907,26908,26909,26910,26911],"default":4326,"description":"The srid of the coordinate system the geometry should be converted to."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:gov-bc-ca-geomark/get-geomarks-geomark-id-parts-file-format-extension":{"get":{"operationId":"open_data_gov_bc_ca_geomark_get_geomarks_geomark_id_parts_file_format_extension","summary":"Get the individual geometries within a multi-part geometry","description":"GET /geomarks/{geomarkId}/parts.{fileFormatExtension}","tags":["open-data"],"parameters":[{"name":"geomarkId","in":"query","required":true,"description":"The unique identifier for the geomark","schema":{"type":"string","description":"The unique identifier for the geomark"},"example":"gm-abcdefghijklmnopqrstuv0bcislands"},{"name":"fileFormatExtension","in":"query","required":true,"description":"The file format name extension used to represent the geomark download.","schema":{"type":"string","enum":["json","xml","kml","kmz","shp","shpz","geojson","gml","gpkg","wkt"],"description":"The file format name extension used to represent the geomark download."},"example":"json"},{"name":"srid","in":"query","required":false,"description":"The srid of the coordinate system the geometry should be converted to.","schema":{"type":"integer","enum":[4326,3005,3857,26907,26908,26909,26910,26911],"default":4326,"description":"The srid of the coordinate system the geometry should be converted to."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/open-data:gov-bc-ca-geomark/get-geomarks-geomark-id-point-file-format-extension":{"get":{"operationId":"open_data_gov_bc_ca_geomark_get_geomarks_geomark_id_point_file_format_extension","summary":"Gets a single spatial point representative of the geomark.","description":"GET /geomarks/{geomarkId}/point.{fileFormatExtension}","tags":["open-data"],"parameters":[{"name":"geomarkId","in":"query","required":true,"description":"The unique identifier for the geomark.","schema":{"type":"string","description":"The unique identifier for the geomark."},"example":"gm-abcdefghijklmnopqrstuv0bcislands"},{"name":"fileFormatExtension","in":"query","required":true,"description":"The file format name extension used to represent the geomark download.","schema":{"type":"string","enum":["json","xml","kml","kmz","shp","shpz","geojson","gml","gpkg","wkt"],"description":"The file format name extension used to represent the geomark download."},"example":"json"},{"name":"srid","in":"query","required":false,"description":"The srid of the coordinate system the geometry should be converted to.","schema":{"type":"integer","enum":[4326,3005,3857,26907,26908,26909,26910,26911],"default":4326,"description":"The srid of the coordinate system the geometry should be converted to."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}