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
5分でわかるDuckDB
chanyou0311
10
3.2k
KnowledgeBaseDocuments APIでベクトルインデックス管理を自動化する
iidaxs
1
270
20241214_WACATE2024冬_テスト設計技法をチョット俯瞰してみよう
kzsuzuki
3
590
Wantedly での Datadog 活用事例
bgpat
1
530
20241220_S3 tablesの使い方を検証してみた
handy
4
630
AWS re:Invent 2024で発表された コードを書く開発者向け機能について
maruto
0
200
マイクロサービスにおける容易なトランザクション管理に向けて
scalar
0
140
生成AIをより賢く エンジニアのための RAG入門 - Oracle AI Jam Session #20
kutsushitaneko
4
260
UI State設計とテスト方針
rmakiyama
2
650
Google Cloud で始める Cloud Run 〜AWSとの比較と実例デモで解説〜
risatube
PRO
0
110
祝!Iceberg祭開幕!re:Invent 2024データレイク関連アップデート10分総ざらい
kniino
3
320
Qiita埋め込み用スライド
naoki_0531
0
5.1k
Featured
See All Featured
Six Lessons from altMBA
skipperchong
27
3.5k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.9k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
A Philosophy of Restraint
colly
203
16k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Documentation Writing (for coders)
carmenintech
66
4.5k
Music & Morning Musume
bryan
46
6.2k
How to train your dragon (web standard)
notwaldorf
88
5.7k
Designing for Performance
lara
604
68k
Building Adaptive Systems
keathley
38
2.3k
Designing on Purpose - Digital PM Summit 2013
jponch
116
7k
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