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
dev 補講: プロダクトセキュリティ / Product security overview
wa6sn
0
1.9k
元旅行会社の情シス部員が教えるおすすめなre:Inventへの行き方 / What is the most efficient way to re:Invent
naospon
2
320
Engineering at LY Corporation
lycorp_recruit_jp
0
670
マルチモーダル / AI Agent / LLMOps 3つの技術トレンドで理解するLLMの今後の展望
hirosatogamo
31
8.6k
Lambdaと地方とコミュニティ
miu_crescent
2
340
テストコード品質を高めるためにMutation Testingライブラリ・Strykerを実戦導入してみた話
ysknsid25
6
2.3k
インフラとバックエンドとフロントエンドをくまなく調べて遅いアプリを早くした件
tubone24
1
390
安心してください、日本語使えますよ―Ubuntu日本語Remix提供休止に寄せて― 2024-11-17
nobutomurata
0
260
ハイパーパラメータチューニングって何をしているの
toridori_dev
0
100
今、始める、第一歩。 / Your first step
yahonda
2
730
Amplify Gen2 Deep Dive / バックエンドの型をいかにしてフロントエンドへ伝えるか #TSKaigi #TSKaigiKansai #AWSAmplifyJP
tacck
PRO
0
300
私はこうやってマインドマップでテストすることを出す!
mineo_matsuya
0
340
Featured
See All Featured
Facilitating Awesome Meetings
lara
50
6.1k
How to train your dragon (web standard)
notwaldorf
88
5.7k
RailsConf 2023
tenderlove
29
900
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
7
630
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
The Cult of Friendly URLs
andyhume
78
6k
Become a Pro
speakerdeck
PRO
25
5k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
700
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Side Projects
sachag
452
42k
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