Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
api-working-group-presentation.pdf
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Froilan Irizarry
May 21, 2018
Technology
66
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
api-working-group-presentation.pdf
An overview of the Code.gov API for the GSA API working group.
Froilan Irizarry
May 21, 2018
Transcript
18 slides
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]
More Decks by Froilan Irizarry
See All by Froilan Irizarry
GitHub Presente - Civic Tech
froi
0
32
Code 4 Puerto Rico - Participacion Civica en la Era Digital
froi
0
74
Python, Government, and Contracts: providing a tool to investigate corruption
froi
0
62
open-oakland-hacknight-2018-05-29
froi
0
54
Code 4 PR - Civic Hacker
froi
0
61
The Hacker Ethic y como puede transformar a Puerto Rico
froi
0
120
Python for beginners in Python
froi
0
100
Other Decks in Technology
See All in Technology
HTTP通信に使おうとすると実はめんどくさいfile_get_contents
maguroalternative
0
260
落とし穴にハマってわかった 開発生産性を測るときに気をつけたいこと
munakata
3
490
「正しいデータ」の定義をAI エージェントとつくるGoogleADKによるデータ品質定義の実践
takaha4k
0
140
Context parameters で作る!はじめての型クラス
kworkdev
PRO
1
180
New Relicのアラート対応をClaude Codeで自動修正するワークフローを作った話
manabuseki
3
660
統制されたID・権限をどう利用するか : DPoP/FAPIによるAPIセキュリティ強化
oidfj
2
300
【Oracle AI SPOTLIGHT ウェビナー】AI時代、狙われるデータと止められない業務をどう守るか?
oracle4engineer
PRO
1
140
NutanixへのSSHアクセスの今後について
shadowhat
0
170
デザインシステムのフィードバックループをほぼ自動化した話
tongari07
0
220
Del vibe coding a un Desarrollo (agéntico) fiable
jcabot
0
220
そのイメージ、どのCIが作った? Artifact Attestationsで来歴を固定する / Which CI system created that image? Pinning provenance with Artifact Attestations
chmikata
0
270
[関西Kaggler会 20261113] 続・コミュニティコンペのススメ
nejumi
0
200
Featured
See All Featured
Technical Leadership for Architectural Decision Making
baasie
4
660
Building AI with AI
inesmontani
PRO
1
1.4k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
The browser strikes back
jonoalderson
0
2k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
490
How to train your dragon (web standard)
notwaldorf
96
6.9k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.9k
Facilitating Awesome Meetings
lara
57
7.2k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
320
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k