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
Benjamin Knofe
April 17, 2012
Technology
1
89
Inside API.Leipzig
Benjamin Knofe
April 17, 2012
Tweet
Share
Other Decks in Technology
See All in Technology
20250807 Applied Engineer Open House
sakana_ai
PRO
2
610
20250818_KGX・One Hokkaidoコラボイベント
tohgeyukihiro
0
110
o11yツールを乗り換えた話
tak0x00
2
1.7k
Telemetry APIから学ぶGoogle Cloud ObservabilityとOpenTelemetryの現在 / getting-started-telemetry-api-with-google-cloud
k6s4i53rx
0
160
意志の力が9割。アニメから学ぶAI時代のこれから。
endohizumi
1
110
Oracle Base Database Service:サービス概要のご紹介
oracle4engineer
PRO
1
20k
[kickflow]20250319_少人数チームでのAutify活用
otouhujej
0
170
結局QUICで通信は速くなるの?
kota_yata
8
7.5k
Agent Development Kitで始める生成 AI エージェント実践開発
danishi
0
160
Cloud WANの基礎から応用~少しだけDeep Dive~
masakiokuda
3
120
Foundation Model × VisionKit で実現するローカル OCR
sansantech
PRO
1
420
Intro to Software Startups: Spring 2025
arnabdotorg
0
280
Featured
See All Featured
Visualization
eitanlees
146
16k
Building an army of robots
kneath
306
45k
Embracing the Ebb and Flow
colly
86
4.8k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Designing for Performance
lara
610
69k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3.1k
Java REST API Framework Comparison - PWX 2021
mraible
33
8.8k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
A designer walks into a library…
pauljervisheath
207
24k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
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