云计算api理论方法.pptx
- 文档编号:18778718
- 上传时间:2023-11-09
- 格式:PPTX
- 页数:71
- 大小:5.35MB
云计算api理论方法.pptx
《云计算api理论方法.pptx》由会员分享,可在线阅读,更多相关《云计算api理论方法.pptx(71页珍藏版)》请在冰点文库上搜索。
,Apigeeapigee,BrianMulloylandlessness,landlessness,kevinswiber,“,http:
/,Agenda,RecapPreviousEditionAPIModelingSecurityMessageDesignHypermediaTransactions,http:
/,HowdowegetstartedwithourAPI?
BuildanAPIModel,http:
/,DontGoCowboy,http:
/,HowdowesecureourAPI?
PreferredAuthorization,Howdoapproachmessagedesign?
SupportmultipleformatsJSONandXML,MakeJSONthedefault,Howdowerepresentsingleitems?
21,Twitter,Foursquare,meta:
data:
Instagram,meta:
notifications:
response:
created_at:
ThuJan1008:
44:
59+00002013,id:
289291736440791040,id_str:
289291736440791040,text:
landlessnessheresoneforyou:
50-yearplantofixDetroitnnhttp:
/t.co/kJ2l1FZv,source:
TwitterforAndroid,truncated:
false,in_reply_to_status_id:
null,in_reply_to_status_id_str:
null,in_reply_to_user_id:
41020312,in_reply_to_user_id_str:
41020312,in_reply_to_screen_name:
landlessness,user:
geo:
coordinates:
place:
contributors”:
retweet_count:
0,entities:
favorited:
false,retweeted:
false,possibly_sensitive:
false,22,Twitter,Foursquare,meta:
data:
attribution:
type:
image,location:
comments:
filter:
Sierra,created_time:
1357826573,link:
http:
/instagr.am/p/UTk5Xut3gN/,likes:
images:
caption:
user_has_liked:
false,id:
365798266911553549_3573549,user:
Instagram,meta:
notifications:
response:
checkin:
id:
50eeff78e4b0f8e9624ea5f8,createdAt:
1357840248,type:
checkin,shout:
Pharmacy#DRUGS!
#ToothPulled:
(,timeZone:
America/Detroit,timeZoneOffset:
-300,user:
venue:
source:
created_at:
ThuJan1008:
44:
59+00002013,id:
289291736440791040,id_str:
289291736440791040,text:
landlessnessheresoneforyou:
50-yearplantofixDetroitnnhttp:
/t.co/kJ2l1FZv,source:
TwitterforAndroid,truncated:
false,in_reply_to_status_id:
null,in_reply_to_status_id_str:
null,in_reply_to_user_id:
41020312,in_reply_to_user_id_str:
41020312,in_reply_to_screen_name:
landlessness,user:
geo:
coordinates:
place:
contributors”:
retweet_count:
0,entities:
favorited:
false,retweeted:
false,possibly_sensitive:
false,23,Howdowerepresentcollections?
25,Twitter,Foursquare,meta:
data:
attribution:
type:
image,location:
comments:
filter:
Sierra,created_time:
1357826573,link:
http:
/instagr.am/p/UTk5Xut3gN/,likes:
images:
caption:
user_has_liked:
false,id:
365798266911553549_3573549,user:
Instagram,meta:
notifications:
response:
recent:
id:
50eeff78e4b0f8e9624ea5f8,createdAt:
1357840248,type:
checkin,shout:
Pharmacy#DRUGS!
#ToothPulled:
(,timeZone:
America/Detroit,timeZoneOffset:
-300,user:
venue:
created_at:
ThuJan1008:
44:
59+00002013,id:
289291736440791040,id_str:
289291736440791040,text:
landlessnessheresoneforyou:
50-yearplantofixDetroitnnhttp:
/t.co/kJ2l1FZv,source:
TwitterforAndroid,truncated:
false,in_reply_to_status_id:
null,in_reply_to_status_id_str:
null,in_reply_to_user_id:
41020312,in_reply_to_user_id_str:
41020312,in_reply_to_screen_name:
landlessness,user:
geo:
coordinates:
place:
contributors”:
retweet_count:
0,entities:
favorited:
false,retweeted:
false,possibly_sensitive:
false,26,Howdowerepresentsearchresults?
29,BingSearch,GoogleCustomSearch,kind:
Listing,data:
after:
t3_qy342,before:
null,children:
data:
id:
f605o,num_comments:
943,score:
1146,ups:
3110,downs:
1964,created:
1295553753.0,url:
http:
/author:
jining,data:
id:
c9eng”,num_comments:
308,score:
59,ups:
128,downs:
69,created:
1275155900.0,url:
http:
/false,is_self:
true,permalink:
/r/IAmA/comments/c9eng/i_am_a_sushi_man_ama/,author:
IAmASushiMan”,RedditSearch,kind:
customsearch#search,url:
type:
application/json,template:
https:
/queries:
request:
title:
GoogleCustomSearch-sushi,totalResults:
15000000,searchTerms:
sushi,count:
10,startIndex:
1,context:
title:
CustomSearch,searchInformation:
searchTime:
0.314942,formattedSearchTime:
0.31,totalResults:
15000000,formattedTotalResults:
15,000,000,items:
kind:
customsearch#result,title:
StandardizedUsageStatisticsHarvestingInitiative(SUSHI.-NISO,htmlTitle:
u003cbu003eStandardizedUsageStatisticsHarvestingInitiativeu003c/bu003e(u003cbu003eSUSHIu003c/bu003eu003cbu003e.u003c/bu003e-NISO,link:
http:
/www.niso.org/workrooms/sushi,displayLink:
www.niso.org,snippet:
TheStandardizedUsageStatisticsHarvestingInitiative(SUSHI)Protocolstandard(ANSI/NISOZ39.93-2007)definesanautomatedrequestandresponsemodel.”,SearchResponse:
Version:
2.2,Query:
SearchTerms:
sushi,Web:
Total:
95200000,Offset:
0,Results:
Title:
TheSushiFAQ-Theultimateguidetosushiandsashimiandhowto.,Description:
Whatissushi?
.,Url:
http:
/CacheUrl:
http:
/DisplayUrl:
DateTime:
2013-01-08T15:
12:
00Z,Title:
WhatIsSushi?
-SushiGuide-E,Description:
E.,Url:
http:
/CacheUrl:
http:
/DisplayUrl:
DateTime:
2013-01-07T13:
51:
00Z,30,(Mostly)FollowGoogleCustomSearch,meta:
limit:
1,offset:
10,totalResults:
15000000,query:
sushi,searchTime:
0.314942,results:
Howdowerepresentlinks?
LinkingExamples,NetflixAPI,organization:
login:
octocat,id:
1,url:
https:
/type:
Organization”,GitHubAPI,PreferredLinking,FollowNetflixandtheWebLinkingspec,Howdowerepresentactions?
ActionExamples,GitHub,”actions:
“name”:
“edit-repo”,“method”:
“PATCH”,“href”:
“https:
/”fields”:
“name”:
“name”,“type”:
“text”,“name”:
“description”,“type”:
“text”,Form-basedAPI,PreferredAction,actions:
name:
edit-repo,“method”:
“PATCH”,“href”:
“https:
/”fields”:
“name”:
“name”,“type”:
“text”,“name”:
“description”,“type”:
“text”,Form-basedAPI,Howdowerepresentmetadata?
PreferredMetadata,FlickrAPI(inline),size:
225.4KB”,rev:
35e97029684fe”,bytes:
230783,modified:
Tue,19Jul201121:
55:
38+0000”,path:
/Getting_Started.pdf”,is_dir:
false,icon:
page_white_acrobat”,root:
dropbox”,mime_type:
application/pdf”,revision:
220823,DropboxAPI(/metadata),MetadataExamples,39,Whatcanwelearnfromhypermediatypes?
Atom/AtomPub,MyNewCollectionurn:
uuid:
de46e3a1-e489-41a6-88a6-21e7f0e8e2d82009-06-12T12:
13:
46ZDaffy,XHTML,kevin(kevin),HAL,“currentlyProcessing”:
14“shippedToday”:
20,“_links”:
“self”:
“href”:
“/orders?
page=2”,“next”:
“href”:
“/orders?
page=3”,“prev”:
“href”:
“/orders?
page=1”,Collection+JSON,“collection”:
“version”:
“1.0”,“href”:
“http:
/example.org/friends”,“items”:
“href”:
“http:
/example.org/friends/kevin”,“data”:
“name”:
“full-name”,“value”:
“KevinSwiber”,“queries”:
“rel”:
“search”,“href”:
“./search”,“data”:
“name”:
“search”,“value”:
“”,Siren,“class”:
“owner”,“vip”,“properties”:
“name”:
“Kevin”,“entities”:
“rel”:
“https:
/rels.x.io/dog”,“href”:
“https:
/api.x.io/dogs/1”,“actions”:
“name”:
“adopt”,“method”:
“POST”,“href”:
“https:
/api.x.io/owners/1/dogs”,“fields”:
“name”:
“dog-name”,“type”:
“text”,“links”:
“rel”:
“self”,“href”:
“https:
/api.x.io/owners/1”,Howdoweacceptbinarydata?
multipart/form-data,Content-Type:
multipart/form-data;boundary=AaB03x-AaB03xContent-Disposition:
form-data;name=“caption”Coolpictureofmycat.-AaB03xContent-Disposition:
form-data;name=“photo”;filename=“catpajamas.jpg”Content-Type:
image/jpegContent-Transfer-Encoding:
binarycontentsofcatpajamas.jpg-AaB03x,InlineBase64Encoding,POST/photos“caption”:
“Coolpictureofmycat.”“photo”:
“RHVkZSwgbXkgY2F0IGhhcyB0aGUgYmVzdCBwYWphbWFzLg=”,2-StepProcess,POST/photos“caption”:
“Coolpictureofmycat.”,PUT/photos/1234/dataContent-Type:
image/jpegContent-Length:
240Content-Transfer-Encoding:
binarybinarycontent,Optformultipart/form-data.Beconsistent.,Howdowesupportcaching?
Expiration,200OKCache-Control:
private,max-age=2592000,ETags,GET/dogs/1ETag:
“a7D92kda94aisdfG”,GET/dogs/1If-None-Match:
“a7D92kda94aisdfG”,Last-Modified,GET/dogs/1Last-Modified:
Thu,10Jan201319:
43:
31GMT,GET/dogs/1If-Modified-Since:
Thu,10Jan201319:
43:
31GMT,Thinkabouttheclient.,DoweneedaJavaScriptAPI?
Yes.FollowLinkedInslead.,Whataboutpostingdata?
application/x-www-form-urlencoded,breed=Dachshund&name=Hotdog&age=2,application/xml,DachshundHotdog2,application/json,“breed”:
“Dachshund”,“name”:
“Hotdog”,“age”:
2,Favorapplication/x-www-form-urlencodeddata.,Howdowehandletransactions?
CreateaTransaction,POST/carts201CreatedLocation:
/carts/1,AddItems,POST/carts/1/items/“productId”:
“mittens123”,“quantity”:
1201CreatedLocation:
/cartItems/1234,CommittheTransaction,POST/carts/1“message”:
“checkout”200OK,CheckoutpreviouseditionsforURIdesignStartwithAPImodelingUseOAuthforsecurityGoodmessagedesignisfordevelopersLearnfromhypermediaspecsMoreontransactionslater,Summary,Questions?
THANKYOU,SubscribetoAPIwebinarsat:
THANKYOU,Questionsandideasto:
THANKYOU,Contactusat:
apigee,
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算 api 理论 方法