GSA / code-gov-api

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

Wrong default version alias #331

Open Nosferican opened 5 years ago

Nosferican commented 5 years ago

Describe the bug The documentation states the default version is v2, but using default alias takes you to old version (v1)

To Reproduce Steps to reproduce the behavior:

  1. Use alias https://api.code.gov/endpoint
  2. Examine header: X-API-VERSION: v1 (behavior confirmed to be pre v2)

Expected behavior Using https://api.code.gov/endpoint should be equivalent to https://api.code.gov/v2/endpoint