code-gov-api icon indicating copy to clipboard operation
code-gov-api copied to clipboard

Getting Repo by ID Returning Array

Open DanielJDufour opened this issue 7 years ago • 1 comments

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 avatar Nov 13 '18 06:11 DanielJDufour

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

DanielJDufour avatar Nov 13 '18 06:11 DanielJDufour