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
Inside API.Leipzig
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Benjamin Knofe
April 17, 2012
Technology
1
91
Inside API.Leipzig
Benjamin Knofe
April 17, 2012
Tweet
Share
Other Decks in Technology
See All in Technology
AIと新時代を切り拓く。これからのSREとメルカリIBISの挑戦
0gm
2
2.9k
CDK対応したAWS DevOps Agentを試そう_20260201
masakiokuda
1
360
広告の効果検証を題材にした因果推論の精度検証について
zozotech
PRO
0
200
Embedded SREの終わりを設計する 「なんとなく」から計画的な自立支援へ
sansantech
PRO
3
2.6k
Agent Skils
dip_tech
PRO
0
120
SREチームをどう作り、どう育てるか ― Findy横断SREのマネジメント
rvirus0817
0
320
こんなところでも(地味に)活躍するImage Modeさんを知ってるかい?- Image Mode for OpenShift -
tsukaman
1
160
M&A 後の統合をどう進めるか ─ ナレッジワーク × Poetics が実践した組織とシステムの融合
kworkdev
PRO
1
480
~Everything as Codeを諦めない~ 後からCDK
mu7889yoon
3
450
ランサムウェア対策としてのpnpm導入のススメ
ishikawa_satoru
0
200
コミュニティが変えるキャリアの地平線:コロナ禍新卒入社のエンジニアがAWSコミュニティで見つけた成長の羅針盤
kentosuzuki
0
130
顧客との商談議事録をみんなで読んで顧客解像度を上げよう
shibayu36
0
270
Featured
See All Featured
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
310
New Earth Scene 8
popppiees
1
1.5k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
220
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.4k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
280
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
62
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
320
Accessibility Awareness
sabderemane
0
54
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.1k
Documentation Writing (for coders)
carmenintech
77
5.3k
Transcript
Inside API.Leipzig 17. April 2012 - Leipzig on Rails -
sublab Ben(jamin Knofe) @videosynthesis http://www.videosynthesis.net/
* seit Dezember 2011 * 30 > 10 > 5
Beteiligte * 145 angemeldete Nutzer * 8309 requests/33 aktive Nutzer im März
* 1 Server (HE VServer L) * nginx 1.1.13 +
passenger 3.0.11 * mySQL 5.0.51a * 3 Apps + Frontpage * MIT / CC-BY
* API: Sinatra 1.3.2 + activerecord 3.0.11 * Panel: Rails
2.3.14 * Wiki: Instiki master
curl -i -X GET http://www.apileipzig.de/api/v1/calendar/events HTTP/1.1 403 Forbidden Content-Type: text/javascript;charset=utf-8
Content-Length: 40 Connection: keep-alive Status: 403 X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.11 X-Frame-Options: sameorigin X-XSS-Protection: 1; mode=block Server: nginx/1.1.13 + Phusion Passenger 3.0.11 (mod_rails/mod_rack) {"error":"No permission(s) to do this."}
curl -i -X GET http://www.apileipzig.de/api/v1/calendar/events -d 'api_key=psewqGJMryqsrzrcALa' HTTP/1.1 200 OK
{ "data": [ { "venue_id":10, "id":1, "updated_at":"2011-07-04T10:44:47+02:00", … }, … ] }
curl -X POST http://www.apileipzig.de/api/v1/calendar/hosts -d 'api_key=psewqGJMryqsrzrcALa' -d 'first_name=Leipzig' -d 'last_name=on
Rails' { "success": { "id":24, "message":"Host was saved with id = 24." } }
curl -X GET http://www.apileipzig.de/api/v1/calendar/hosts/24 -d 'api_key=psewqGJMryqsrzrcALa' { "id":24, "first_name":"Leipzig", "last_name":"on
Rails", "mobile":null, "created_at":"2012-04-17T14:28:33+02:00", "updated_at":"2012-04-17T14:28:33+02:00", "url":null, "phone":null }
curl -X GET http://www.apileipzig.de/api/v1/calendar/venues/search -d 'api_key=psewqGJMryqsrzrcALa' -d 'q=sub' { "data":
[ { "id":30, "name":"sublab e.V.”, … } ] }
curl -X POST http://www.apileipzig.de/api/v1/calendar/events -d 'api_key=psewqGJMryqsrzrcALa' -d 'category_id=2' -d 'venue_id=30'
-d 'host_id=24' -d 'name=Leipzig on Rails Treffen im April' -d 'description=Immer mit spannenden Vorträgen. Kostenfrei.' -d 'date_from=2012-04-17' -d 'time_from=19:30:00' { "success": { "id":33, "message":"Event was saved with id = 33." } }
https://github.com/apileipzig http://travis-ci.org/#!/apileipzig/api http://www.apileipzig.de/ @apileipzig