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

External API for locations #714

Closed
Tracked by #1574 ...
vinayvenu opened this issue Apr 11, 2024 · 2 comments
Closed
Tracked by #1574 ...

External API for locations #714

vinayvenu opened this issue Apr 11, 2024 · 2 comments
Assignees

Comments

@vinayvenu
Copy link
Member

Required

  • /api/locations (paginated list of locations)
  • /api/location/{id} (using uuid of location)

Acceptance criteria

  • Location will contain all its parents as well
  • Location will contain location attributes
@petmongrels
Copy link
Contributor

location rename

External API is not currently designed to allow for rename of locations because we do not send location UUIDs in the subject api response. Once a subject has been saved by the API consumer in their system and then if location name changes, they won't have a way to fix the data on their side - as the subject last modified date time is not updated and should not be updated.

Since this is a mistake in original design of API, we can introduce a new field called locationId in the API response which will have the UUID alone.

@AchalaBelokar
Copy link

  • Tried with locations and location both are working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants