Skip to content

Search endpoint returning UID as ID instead of stable_id for latest dataset an redirects #1396

@davidgamez

Description

@davidgamez

Describe the bug

Using the search endpoint, the ID of the latest dataset is the UID, not the stable ID (double checked with Metabase). When using other endpoints, I get the stable ID.

Steps/Code to Reproduce

Use the following curl command, replacing the token with a valid token:

curl --request GET \
  --url 'https://api.mobilitydatabase.org/v1/search?limit=15&data_type=gtfs' \
  --header 'Authorization: Bearer TOKEN'

Expected Results

Stable IDs should be returned in all ID fields.

Actual Results

The IDs are shown as UID in the following field

  • Latest dataset id
  • redirect target and source ID
  • external ids

Screenshots

No response

Files used

No response

Additional notes

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions