GSA / code-gov-api

API powering the code.gov source code harvester
http://code.gov
Other
53 stars 28 forks source link

Getting Repo by ID Returning Array #301

Open DanielJDufour opened 5 years ago

DanielJDufour commented 5 years ago

Describe the bug A clear and concise description of what the bug is. I'm not sure if this is intentional, but repos/repoID endpoint is returning an array in staging, which is different than currently in production, which returns 1 repo object not wrapped in an array

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://code-api-staging.app.cloud.gov/api/repos/dot_fhwa_intelligent_transportation_systems_operational_data_environment_its_ode_?api_key=DEMO_KEY'

Expected behavior A clear and concise description of what you expected to happen. Return an object

Screenshots If applicable, add screenshots to help explain your problem. On Staging: image

On Production: image

Additional context Add any other context about the problem here.

DanielJDufour commented 5 years ago

I can create a workaround in the api-client, so it's not a high priority