Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add API path for query by id #134

Closed
rhanka opened this issue Dec 21, 2020 · 1 comment · Fixed by #138
Closed

add API path for query by id #134

rhanka opened this issue Dec 21, 2020 · 1 comment · Fixed by #138
Labels
enhancement New feature or request

Comments

@rhanka
Copy link
Member

rhanka commented Dec 21, 2020

IDs are now base on has of INSEE line, which can be use as a unique id (even if INSEE has some fully duplicates lines) (UID source in elasticsearch)

An API path should be used (e.g for permalinks), like : GET /deces/api/v1/id/{id} id could be the hex UID or the base64 URL

@rhanka rhanka added the enhancement New feature or request label Dec 21, 2020
@rhanka
Copy link
Member Author

rhanka commented Dec 21, 2020

first UID has to be discussed (could be directly in base64url in UID field, and now relies on sha1 of full row, could be sha256 which could be more reliable, even cut to first 16 chars).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant