mapbox / Hecate

Fast Geospatial Feature Storage API
MIT License
252 stars 36 forks source link

Version Check #212

Open ingalls opened 4 years ago

ingalls commented 4 years ago

Context

Add an endpoint that would perform feature id => version checks to see if a feature has been modified since the feature was originally downloaded.

This API would be immediately useful for the HecateJS import API, mostly closing the door on one of the remaining reasons as to why an import could fail halfway.

Endpoint

POST: URL TBD

Payload Body

{
    "feature id": "feature version",
   ...
}

Expected response

Sucess

status: HTTP 200 SUCCESS body: empty

Failure

status: HTTP 409 CONFLICT body:

[
    "feature id with version mismatch",
    ...
]

cc/ @ingalls