Skip to content

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

@gpr-indevelopment

Description

@gpr-indevelopment

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions