1、,Apigeeapigee,Brian Mulloylandlessness,landlessness,kevinswiber,“,http:/,Agenda,Recap Previous EditionAPI ModelingSecurityMessage DesignHypermediaTransactions,http:/,How do we get started with our API?,Build an API Model,http:/,Dont Go Cowboy,http:/,How do we secure our API?,Preferred Authorization,
2、How do approach message design?,Support multiple formats JSON and XML,Make JSON the default,How do we represent single items?,21,Twitter,Foursquare,meta:,data:,Instagram,meta:,notifications:,response:,created_at:Thu Jan 10 08:44:59+0000 2013,id:289291736440791040,id_str:289291736440791040,text:landl
3、essness heres one for you:50-year plan to fix Detroitnnhttp:/t.co/kJ2l1FZv,source:Twitter for Android,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:,p
4、lace:,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,
5、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:Thu Jan 10 08:44:59+0000 2013,id:28929173
6、6440791040,id_str:289291736440791040,text:landlessness heres one for you:50-year plan to fix Detroitnnhttp:/t.co/kJ2l1FZv,source:Twitter for Android,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_scr
7、een_name:landlessness,user:,geo:,coordinates:,place:,contributors”:,retweet_count:0,entities:,favorited:false,retweeted:false,possibly_sensitive:false,23,How do we represent collections?,25,Twitter,Foursquare,meta:,data:attribution:,type:image,location:,comments:,filter:Sierra,created_time:135782657
8、3,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,timeZoneOff
9、set:-300,user:,venue:,created_at:Thu Jan 10 08:44:59+0000 2013,id:289291736440791040,id_str:289291736440791040,text:landlessness heres one for you:50-year plan to fix Detroitnnhttp:/t.co/kJ2l1FZv,source:Twitter for Android,truncated:false,in_reply_to_status_id:null,in_reply_to_status_id_str:null,in_
10、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,How do we represent search results?,29,Bing Search,Google Custom Search,
11、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/c9en
12、g/i_am_a_sushi_man_ama/,author:IAmASushiMan”,Reddit Search,kind:customsearch#search,url:type:application/json,template:https:/queries:request:title:Google Custom Search-sushi,totalResults:15000000,searchTerms:sushi,count:10,startIndex:1,context:title:Custom Search,searchInformation:searchTime:0.3149
13、42,formattedSearchTime:0.31,totalResults:15000000,formattedTotalResults:15,000,000,items:kind:customsearch#result,title:Standardized Usage Statistics Harvesting Initiative(SUSHI.-NISO,htmlTitle:u003cbu003eStandardized Usage Statistics Harvesting Initiativeu003c/bu003e(u003cbu003eSUSHIu003c/bu003e u0
14、03cbu003e.u003c/bu003e-NISO,link:http:/www.niso.org/workrooms/sushi,displayLink:www.niso.org,snippet:The Standardized Usage Statistics Harvesting Initiative(SUSHI)Protocol standard(ANSI/NISO Z39.93-2007)defines an automated request and response model.”,SearchResponse:Version:2.2,Query:SearchTerms:su
15、shi,Web:Total:95200000,Offset:0,Results:Title:The Sushi FAQ-The ultimate guide to sushi and sashimi and how to.,Description:What is sushi?.,Url:http:/CacheUrl:http:/DisplayUrl:,DateTime:2013-01-08T15:12:00Z,Title:What Is Sushi?-Sushi Guide-E,Description:E.,Url:http:/CacheUrl:http:/DisplayUrl:DateTim
16、e:2013-01-07T13:51:00Z,30,(Mostly)Follow Google Custom Search,meta:limit:1,offset:10,totalResults:15000000,query:sushi,searchTime:0.314942,results:,How do we represent links?,Linking Examples,Netflix API,organization:login:octocat,id:1,url:https:/type:Organization”,GitHub API,Preferred Linking,Follow Netflix and the Web Linking spec,How do we represent actions?,Action Examples,GitHub,”actions:“name”:“edit-repo”,“method”:“PATCH”,“href”:“https:/”fields”:“name”:“name”,“type”:“text”,“name”:“descript
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1