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

Reimbursement API does not return the ID used on the web application #550

Open
gpr-indevelopment opened this issue Apr 4, 2021 · 0 comments

Comments

@gpr-indevelopment
Copy link

What is the problem?
The reimbursement with document code 7121351 can be requested on Jarbas API. On the website, the URI for the same reimbursement has ID 199642900. The problem is: For someone using the API, there is no way to know how to access the reimbursement details for document code 7121351 on Jarbas' website since it does not return the ID 199642900.

GET https://jarbas.serenata.ai/api/chamber_of_deputies/reimbursement/7121351/
GET https://jarbas.serenata.ai/dashboard/chamber_of_deputies/reimbursement/199642900/change/

How can this be addressed?
One of two:

  1. Add the ID used on the website to the JSON response of Jarbas' API.
  2. Add document code, for example 7121351, as a valid URI for the reimbursement details webpage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants