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
240
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
SIMD Parallel Programming with the Vector API
josepaumard
0
180
Java 22 Overview
kishida
1
180
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
110
StoreKit2によるiOSのアプリ内課金のリニューアル
kangnux
0
110
PostmanでAPIの動作確認が楽になった話
h455h1
0
170
Tailwind CSSを本気でカスタマイズする方法
fsubal
13
5.3k
Netty Chicago Java User Group 2024-04-17
sullis
0
180
try! Swift Tokyo 初参加報告LT
hinakko2
0
220
コーンフレークから始める モデリング会話入門
ogurotakayuki
0
370
Ruby Function Composition
bkuhlmann
1
330
効率化に挑戦してみたらモバイル開発が少し快適になった話
ryunakayama
0
130
2 週間で Twitter Bot を作ってみた
contour_gara
0
570
Featured
See All Featured
GitHub's CSS Performance
jonrohan
1025
450k
Navigating Team Friction
lara
178
13k
Automating Front-end Workflow
addyosmani
1356
200k
Building Your Own Lightsaber
phodgson
99
5.7k
Web development in the modern age
philhawksworth
202
10k
Bootstrapping a Software Product
garrettdimon
PRO
302
110k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
51k
Visualization
eitanlees
136
14k
The Invisible Customer
myddelton
114
12k
Done Done
chrislema
178
15k
GraphQLの誤解/rethinking-graphql
sonatard
50
9.2k
Optimising Largest Contentful Paint
csswizardry
8
2.4k
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