Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
api-working-group-presentation.pdf
Search
Froilan Irizarry
May 21, 2018
Technology
0
43
api-working-group-presentation.pdf
An overview of the Code.gov API for the GSA API working group.
Froilan Irizarry
May 21, 2018
Tweet
Share
More Decks by Froilan Irizarry
See All by Froilan Irizarry
GitHub Presente - Civic Tech
froi
0
11
Code 4 Puerto Rico - Participacion Civica en la Era Digital
froi
0
50
Python, Government, and Contracts: providing a tool to investigate corruption
froi
0
28
open-oakland-hacknight-2018-05-29
froi
0
35
Code 4 PR - Civic Hacker
froi
0
48
The Hacker Ethic y como puede transformar a Puerto Rico
froi
0
65
Python for beginners in Python
froi
0
71
Other Decks in Technology
See All in Technology
20240416_devopsdaystokyo
kzkmaeda
1
190
Tebiki株式会社 エンジニア採用資料
tebiki
0
4.1k
Janus
bkuhlmann
1
490
Databricks における 『MLOps』
databricksjapan
2
140
NgRx Signal Store
rainerhahnekamp
0
120
長期間TiDBを使ってきた話 @ 私たちはなぜNewSQLを使うのかTiDB選定5社が語る選定理由と活用LT / Experiences with TiDB Over Time
chibiegg
2
740
ChatGPT for IT Service Management (IT Pro)
dahatake
4
250
2024/4/26 コンピュータ歴史博物館解説告知
toshi_atsumi
0
200
コンテナセキュリティの基本と脅威への対策
kyohmizu
3
700
Garoon 開発チーム / Garoon development team
cybozuinsideout
PRO
2
2.9k
長期運用プロジェクトでのMySQLからTiDB移行の検証
colopl
2
700
エンタープライズ環境下での Active Directory の運用 TIPS
tamaiyutaro
1
1.6k
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
356
22k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.9k
Rails Girls Zürich Keynote
gr2m
91
13k
Thoughts on Productivity
jonyablonski
57
3.8k
Navigating Team Friction
lara
177
13k
What's new in Ruby 2.0
geeforr
337
31k
We Have a Design System, Now What?
morganepeng
42
6.7k
[RailsConf 2023] Rails as a piece of cake
palkan
22
3.9k
The Invisible Side of Design
smashingmag
294
49k
Fantastic passwords and where to find them - at NoRuKo
philnash
36
2.5k
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Build your cross-platform service in a week with App Engine
jlugia
225
17k
Transcript
Sharing America’s Code 1 Code.gov
@froi @skfroi Froilán Irizarry Backend Engineer
3 One API to share them all
4 GSA/code-gov-api
Endpoints • /repos • /repos/:id • /terms • /languages •
/status.json • /docs • /agencies • /repo.json • /status • /status/:agency/issues • /status/:agency/fetched • /status/:agency/discovered
Repos https://api.code.gov/repos?agency.acronym=NASA& api_key=DEMO_KEY https://api.code.gov/repos?size=10&from=100& api_key=DEMO_KEY https://api.code.gov/repos?q=rest api& api_key=DEMO_KEY https://api.code.gov/repos/gsa_18f_rugged_devops? api_key=DEMO_KEY
https://api.code.gov/repos?api_key=DEMO_KEY 6
https://api.code.gov/terms?api_key=DEMO_KEY https://api.code.gov/terms?term=NASA& api_key=DEMO_KEY https://api.code.gov/terms?size=10&from=100& api_key=DEMO_KEY Terms 7
Swagger Docs https://api.code.gov/docs 8
9 How Does Code.gov Work? Agency 3 code.json Agency 2
code.json Agency 1 code.json harvest index validate format internet API
express Our Tech Stack 10
Why? 11 express
12 Why?
13 License
GSA API Standards 14
https://developers.code.gov 15
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
What we haven’t embraced 17 • Versioning in the URL
• Pagination (sort of) • Proper error handling
Follow us @Codedotgov Join us at GSA/code-gov Get In Touch
With Us Email us
[email protected]