Upgrade to Pro — share decks privately, control downloads, hide ads and more …

api-working-group-presentation.pdf

 api-working-group-presentation.pdf

An overview of the Code.gov API for the GSA API working group.

Froilan Irizarry

May 21, 2018
Tweet

More Decks by Froilan Irizarry

Other Decks in Technology

Transcript

  1. Endpoints • /repos • /repos/:id • /terms • /languages •

    /status.json • /docs • /agencies • /repo.json • /status • /status/:agency/issues • /status/:agency/fetched • /status/:agency/discovered
  2. 9 How Does Code.gov Work? Agency 3 code.json Agency 2

    code.json Agency 1 code.json harvest index validate format internet API
  3. What we have embraced • Always HTTPS • Use API

    key (YAY api.data.gov!) • Just use JSON • We eat our own dog food • We have CORS enabled • We use GSA’s API Documentation Template 16
  4. What we haven’t embraced 17 • Versioning in the URL

    • Pagination (sort of) • Proper error handling