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
BaaS -appiaries- 概要
Search
gabunomi
January 18, 2013
Technology
3
450
BaaS -appiaries- 概要
gabunomi
January 18, 2013
Tweet
Share
More Decks by gabunomi
See All by gabunomi
BaaS概要
gabunomi_
1
130
Other Decks in Technology
See All in Technology
Incident Response Practices: Waroom's Features and Future Challenges
rrreeeyyy
0
160
ノーコードデータ分析ツールで体験する時系列データ分析超入門
negi111111
0
420
Engineer Career Talk
lycorp_recruit_jp
0
190
AIチャットボット開発への生成AI活用
ryomrt
0
170
組織成長を加速させるオンボーディングの取り組み
sudoakiy
2
220
B2B SaaSから見た最近のC#/.NETの進化
sansantech
PRO
0
910
AWS Lambdaと歩んだ“サーバーレス”と今後 #lambda_10years
yoshidashingo
1
180
CysharpのOSS群から見るModern C#の現在地
neuecc
2
3.5k
日経電子版のStoreKit2フルリニューアル
shimastripe
1
140
Shopifyアプリ開発における Shopifyの機能活用
sonatard
4
260
障害対応指揮の意思決定と情報共有における価値観 / Waroom Meetup #2
arthur1
5
490
心が動くエンジニアリング ── 私が夢中になる理由
16bitidol
0
100
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
110
GitHub's CSS Performance
jonrohan
1030
460k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.8k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
It's Worth the Effort
3n
183
27k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Adopting Sorbet at Scale
ufuk
73
9.1k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
Transcript
appiaries B-1 2
2 • • • appiaries API • twitter @gabunomi_ •
– Java – – – –
3 BaaS, NTT PARM ※ URL http://www.pcp.co.jp/works/index.php
appiaries API 4
appiaries API 5
appiaries 6 appiaries BaaS Backend as a Service β 2012/03/22
2012/11/27 StackMob 2010/10 Kinvey 2010/12 Parse 2011/06
appiaries 7 appiaries JSON , CRUD / / / CRUD,
OAuth appiaries , CRUD REST API
appiaries 8 appiaries JSON , CRUD / / / CRUD,
OAuth appiaries , CRUD SDK SDK REST API Wrap SDK HTTP SDK HTTP SDK URI REST API
appiaries API 9
10 β β m(_ _)m
11 20MB A A 1 , , , ID, /
10764 3MB
appiaries API 12
13
14 _sandbox oauth_pb offices oauth_cb function offices station Windows ,
15 datastore datastore
16 datastore “ ” ” ”
17 datastore
18 datastore JSON PNG
appiaries API 19
1. 2. ID Read Only / 3. datastore manager 4.
5. / / / 20
21 datastore manager -JSON -
22 datastore manager -JSON -
23 JSON datastore manager – JSON -
24 JSON datastore manager – JSON -
25 datastore manager – -
appiaries API 26
27 JSON JSON API _sandbox ID sample_app_abe json file ID
ID ID
28 JSON JSON API _sandbox ID sample_app_abe json ID ID
https://api-datastore.appiaries.com/v1/dat/_sandbox/sample_app_abe/json/- JSON
29 https://api-datastore.appiaries.com/v1/dat/_sandbox/sample_app_abe/json/- API – JSON - JSON JSON _sandbox sample_app_abe
json ID 1 JSON API API
30 https://api-datastore.appiaries.com/v1/dat/_sandbox/sample_app_abe/json/- API – JSON - JSON JSON _sandbox sample_app_abe
json ID datastore, , ID API
31 https://api-datastore.appiaries.com/v1/dat/_sandbox/sample_app_abe/json/- API – JSON - JSON JSON _sandbox sample_app_abe
json ID ”-” API
32 API – - /shibuya ⇒ ID ”shibuya” JSON API
33 /shibuya/name ⇒ ID ”shibuya” JSON name API – -
API
34 /tokyo/address ⇒ ID ”tokyo” JSON address API – -
API
35 /shibuya?sel=road,name ⇒ ID ”shibuya” JSON road, name ※ ”sel”
”excpt” API – - API
36 /11-20 ⇒ JSON 11 20 • _total _total _total
_total 29 29 29 29 • _ _ _ _objs objs objs objs JSON JSON JSON JSON • _start _start _start _start 11 11 11 11 • _end _end _end _end 20 20 20 20 • _ _ _ _prev prev prev prev true true true true 11 11 11 11 • _next _next _next _next true true true true 20 20 20 20 ) ) ) ) ※ ”-20” 1 20 ※ “11-” 11 110 API – - API
37 /1-3?sel=_id&order=_id ⇒ _id JSON + sel ※ ※ ”-”
_id API API – -
38 /-;name.eq. ?sel=road,name ⇒ name ” ” JSON + road,
name API API – -
39 /-;< 1>;< 2>; ⇒ JSON 1 2 wib km
wic < 1>, ,< n> in < > ( ) sw (nsw) < > ( ) gt (gte) < > ( ) lt (lte) < > ( ) eq (neq) / exist /-;name.eq. API API – - Matrix URI
40 Google API
41 $.ajax({ “type”:”get”, “url”:”https://.../-;_coord.wib.139.689...,35.653...,139.715...,35.667...”, “success”: function(res) { $.each GoogleMap }
}); Google API
42 API Google
43 $.ajax({ "type":"get", “url”:”https://.../-;_coord.wic.139.702...,35.659...,0.5”, “success”: function(res) { , $.each GoogleMap
} }); API Google
44 API –JSON - JSON JSON _sandbox sample_app_abe json ID
API datastore, , ID https://api-datastore.appiaries.com/v1/dat/_sandbox/sample_app_abe/json JSON
45 HTTP POST • JSON • Content-Type ”application/json” $.ajax({ "type":"post",
“url”:”https://.../<datastore ID>/< ID>/< ID>”, "headers":{"Content-Type":"application/json"}, “data”:”<JSON >”, }); API API –JSON -
46 HTTP PATCH (POST ) • JSON • Content-Type ”application/json”
• HTTP PATCH ”proc=patch” HTTP POST POST $.ajax({ "type":"post", “url”:”https://.../<datastoreID>/< ID>/< ID>/<JSON ID>?proc=patch”, "headers":{"Content-Type":"application/json"}, “data”:”<JSON >”, }); API API –JSON -
47 /< ID>/<JSON ID> DELETE /< ID>/<JSON ID> PATCH /<
ID>/-;< 1>; PATCH DELETE PUT POST GET GET /< ID>/-;< 1>; /< ID>/<JSON ID> /< ID> /< ID>/-;< 1>; /< ID>/<JSON ID> /dat/<datastore ID>/< ID> ※ /dat/ ⇒ /bin/ API API –JSON -
appiaries API 48
49 _sandbox ID sample_app_abe ID https://api-datastore.appiaries.com/v1/usr/_sandbox/sample_app_abe/- _user ID API 1
ID
50 API – - /< ID>/< ID> DELETE /< ID>/<
ID> PATCH PATCH DELETE PUT POST GET GET /< ID> /< ID>/-;< 1>; /< ID>/< ID> /usr/<datastore ID>
51 API ”access_token” ”X-Appiaries-Token” ID
52 $.ajax({ “url”:”https://.../<datastore>/< >/< >?access_token=< ID>”, }); $.ajax({ “url”:”https://.../<datastore>/< >/<
>”, “headers”:{“X-Appiaries-Token”:”< ID>”, } });
53 _sandbox ID sample_app_abe ID https://api-datastore.appiaries.com/v1/tkn/_sandbox/sample_app_abe _token ID API 1
ID
54 /tkn/<datastore ID> API – - /< ID>/< ID> DELETE
PATCH PATCH DELETE PUT POST GET GET /< ID> /< ID>/< ID> ※ ID
55 URL
appiaries API 56
57 API – - ADMIN OWNER SIGNIN ALL datastore manager
/ / /
58 API – - / / datastore manager ADMIN SIGNIN
ADMIN ADMIN
59 API – - / SIGNIN ALL OWNER OWNER
appiaries API 60
61 iOS , Android SNS Facebook, Twitter BaaS
62 HTML GET JSON HTML 2 GET HTML API BaaS
63 JSON / datastore manager appiaries datastore manager CMS datastore
manager
B-1 2