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
20241220_S3 tablesの使い方を検証してみた
handy
4
390
MLOps の現場から
asei
6
640
ずっと昔に Star をつけたはずの思い出せない GitHub リポジトリを見つけたい!
rokuosan
0
150
How to be an AWS Community Builder | 君もAWS Community Builderになろう!〜2024 冬 CB募集直前対策編?!〜
coosuke
PRO
2
2.8k
10分で学ぶKubernetesコンテナセキュリティ/10min-k8s-container-sec
mochizuki875
3
330
株式会社ログラス − エンジニア向け会社説明資料 / Loglass Comapany Deck for Engineer
loglass2019
3
32k
Wantedly での Datadog 活用事例
bgpat
1
440
Storage Browser for Amazon S3
miu_crescent
1
140
WACATE2024冬セッション資料(ユーザビリティ)
scarletplover
0
200
1等無人航空機操縦士一発試験 合格までの道のり ドローンミートアップ@大阪 2024/12/18
excdinc
0
160
生成AIのガバナンスの全体像と現実解
fnifni
1
190
非機能品質を作り込むための実践アーキテクチャ
knih
5
1.2k
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
66
4.5k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.3k
A Tale of Four Properties
chriscoyier
157
23k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.9k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
2
170
Navigating Team Friction
lara
183
15k
BBQ
matthewcrist
85
9.4k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
Done Done
chrislema
181
16k
Building Applications with DynamoDB
mza
91
6.1k
KATA
mclloyd
29
14k
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