okfn-brasil / serenata-de-amor

🕵 Artificial Intelligence for social control of public administration | **This repository does not receive frequent updates. Check out the README**
https://serenata.ai/en
MIT License
4.52k stars 662 forks source link

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

Open gpr-indevelopment opened 3 years ago

gpr-indevelopment commented 3 years ago

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.