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 Testing With Apiary
Search
Adam Kliment
April 16, 2015
Programming
1
250
API Testing With Apiary
API Survival Manual
Apiary.io meet-up SF
4/16/2015 @ Heavybit Industries
Adam Kliment
April 16, 2015
Tweet
Share
Other Decks in Programming
See All in Programming
登壇資料を作る時に意識していること #登壇資料_findy
konifar
4
980
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
650
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.8k
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
2.4k
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
370
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
540
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
160
AIによる高速開発をどう制御するか? ガードレール設置で開発速度と品質を両立させたチームの事例
tonkotsuboy_com
7
2k
CSC307 Lecture 06
javiergs
PRO
0
680
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6k
Fluid Templating in TYPO3 14
s2b
0
130
Featured
See All Featured
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Odyssey Design
rkendrick25
PRO
1
490
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
0
310
Color Theory Basics | Prateek | Gurzu
gurzu
0
190
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
110
A designer walks into a library…
pauljervisheath
210
24k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
100
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
0
3.4k
Designing for humans not robots
tammielis
254
26k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
72
New Earth Scene 8
popppiees
1
1.5k
The Spectacular Lies of Maps
axbom
PRO
1
520
Transcript
API Survival Manual — This Guy
None
— Some Other Guy “An API is only as good
as its documentation”
Cliché?
Life saving API * In case of emergency
Call 912 Life saving API * In case of emergency
*
404 “Not Found”
None
Documentation is the UI for an API
How do you test API documentation?
You don’t.
DREDD github.com/apiaryio/dredd
Do your API justice!
Find bad API DX and errors before anyone else does
Design first Use CI Do local TDD Post deployment test
Design first Use CI Do local TDD Post deployment test
FORMAT: 1A HOST: https://cryptic-badlands-8184.herokuapp.com/ # Life saving API # Emergency
[/912] + Attributes + emergency: true # Request first aid [POST] + Request (application/json) + Attributes (Emergency) + Response 201 (application/json; charset=utf-8) + Attributes (Emergency) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Write Blueprint
Design first Use CI Do local TDD Post deployment test
API Testing In Apiary
Design first Use CI Do local TDD Post deployment test
dependencies: pre: - npm install -g dredd test: pre: -
dredd 1 2 3 4 5 6 Continous Integration
Design first Use CI Do local TDD Post deployment test
Apiary Live Testing
Add Post Deploy Hook $ heroku addons:add deployhooks:http \ --url=https://api.apiary.io/apis/
lifesavingapi/tests/environments/default/ trigger
Design first Use CI Do local TDD Post deployment test
All In One Place
github.com/apiaryio/dredd
Thank you!
Do you want to try?
[email protected]
Adam Kliment @ntmlk, @apiaryio