Soumettre la recherche
Mettre en ligne
REST API
•
1 j'aime
•
365 vues
Elias Hasnat
Suivre
REST API
Lire moins
Lire la suite
Internet
Signaler
Partager
Signaler
Partager
1 sur 27
Télécharger maintenant
Télécharger pour lire hors ligne
Recommandé
Reinforcement learning
Reinforcement learning
Elias Hasnat
Dalvikよりart
Dalvikよりart
Elias Hasnat
Cocos2dx
Cocos2dx
Elias Hasnat
Java8 features
Java8 features
Elias Hasnat
Mqtt
Mqtt
Elias Hasnat
Keynote: Announcing API and Microservice Innovations that Drive Business Agil...
Keynote: Announcing API and Microservice Innovations that Drive Business Agil...
CA Technologies
How APIs Transform Both Your Business and Technology
How APIs Transform Both Your Business and Technology
WSO2
apidays LIVE Singapore 2021 - Re-imagining the investment workflow using APIs...
apidays LIVE Singapore 2021 - Re-imagining the investment workflow using APIs...
apidays
Recommandé
Reinforcement learning
Reinforcement learning
Elias Hasnat
Dalvikよりart
Dalvikよりart
Elias Hasnat
Cocos2dx
Cocos2dx
Elias Hasnat
Java8 features
Java8 features
Elias Hasnat
Mqtt
Mqtt
Elias Hasnat
Keynote: Announcing API and Microservice Innovations that Drive Business Agil...
Keynote: Announcing API and Microservice Innovations that Drive Business Agil...
CA Technologies
How APIs Transform Both Your Business and Technology
How APIs Transform Both Your Business and Technology
WSO2
apidays LIVE Singapore 2021 - Re-imagining the investment workflow using APIs...
apidays LIVE Singapore 2021 - Re-imagining the investment workflow using APIs...
apidays
Tracxn Research - ERP Landscape, February 2017
Tracxn Research - ERP Landscape, February 2017
Tracxn
A Complete Guide to NetSuite API Integration in 2023
A Complete Guide to NetSuite API Integration in 2023
Hassan RB
TEC-Roundtable-API
TEC-Roundtable-API
Patrick Emmons
Upload PPT Browse in IE with presenter
Upload PPT Browse in IE with presenter
techweb08
Application Portfolio Management
Application Portfolio Management
Magdalena Bezuidenhout
Rsmart Corporate Overview_LinkedIn
Rsmart Corporate Overview_LinkedIn
Vinay Nerli
App Development Disrupted: Answers and results from the 2017 State Of App Dev...
App Development Disrupted: Answers and results from the 2017 State Of App Dev...
OutSystems
Everest Group FIT matrix for Robotic Process Automation (rpa) technology
Everest Group FIT matrix for Robotic Process Automation (rpa) technology
UiPath
Breakthrough DevOps - Successful DevOps Adoption Strategies
Breakthrough DevOps - Successful DevOps Adoption Strategies
DevOps.com
Getting the most from your API management platform: A case study
Getting the most from your API management platform: A case study
Rogue Wave Software
API Strategy in Cloud
API Strategy in Cloud
PavanPardeshi1
Collecting and analyzing data for valuable decision making in a service orien...
Collecting and analyzing data for valuable decision making in a service orien...
SpagoWorld
Enterprise Customer Cloud Consumption – Operating in a Hybrid Model – Alex Ne...
Enterprise Customer Cloud Consumption – Operating in a Hybrid Model – Alex Ne...
Amazon Web Services
[WSO2 Integration Summit Nairobi 2019] API-Driven World
[WSO2 Integration Summit Nairobi 2019] API-Driven World
WSO2
Case study and demo empowering robotic process automation with machine vision...
Case study and demo empowering robotic process automation with machine vision...
NUS-ISS
Why Digital Transformations are Failing at Scale
Why Digital Transformations are Failing at Scale
Tasktop
Innovation at scale - key drivers and pitfalls to building API driven agile b...
Innovation at scale - key drivers and pitfalls to building API driven agile b...
All Things Open
Innovation and scale - drivers and pitfalls to building API driven business p...
Innovation and scale - drivers and pitfalls to building API driven business p...
Mifan Careem
[WSO2Con USA 2018] Integration Is The New App Foundation
[WSO2Con USA 2018] Integration Is The New App Foundation
WSO2
Role of API in Fintech Industry - Bahaa Abdul Hussein.pdf
Role of API in Fintech Industry - Bahaa Abdul Hussein.pdf
Bahaa Abdul Hussein
BLE.pdf
BLE.pdf
Elias Hasnat
FacialRecognition-May-8-2020.pdf
FacialRecognition-May-8-2020.pdf
Elias Hasnat
Contenu connexe
Similaire à REST API
Tracxn Research - ERP Landscape, February 2017
Tracxn Research - ERP Landscape, February 2017
Tracxn
A Complete Guide to NetSuite API Integration in 2023
A Complete Guide to NetSuite API Integration in 2023
Hassan RB
TEC-Roundtable-API
TEC-Roundtable-API
Patrick Emmons
Upload PPT Browse in IE with presenter
Upload PPT Browse in IE with presenter
techweb08
Application Portfolio Management
Application Portfolio Management
Magdalena Bezuidenhout
Rsmart Corporate Overview_LinkedIn
Rsmart Corporate Overview_LinkedIn
Vinay Nerli
App Development Disrupted: Answers and results from the 2017 State Of App Dev...
App Development Disrupted: Answers and results from the 2017 State Of App Dev...
OutSystems
Everest Group FIT matrix for Robotic Process Automation (rpa) technology
Everest Group FIT matrix for Robotic Process Automation (rpa) technology
UiPath
Breakthrough DevOps - Successful DevOps Adoption Strategies
Breakthrough DevOps - Successful DevOps Adoption Strategies
DevOps.com
Getting the most from your API management platform: A case study
Getting the most from your API management platform: A case study
Rogue Wave Software
API Strategy in Cloud
API Strategy in Cloud
PavanPardeshi1
Collecting and analyzing data for valuable decision making in a service orien...
Collecting and analyzing data for valuable decision making in a service orien...
SpagoWorld
Enterprise Customer Cloud Consumption – Operating in a Hybrid Model – Alex Ne...
Enterprise Customer Cloud Consumption – Operating in a Hybrid Model – Alex Ne...
Amazon Web Services
[WSO2 Integration Summit Nairobi 2019] API-Driven World
[WSO2 Integration Summit Nairobi 2019] API-Driven World
WSO2
Case study and demo empowering robotic process automation with machine vision...
Case study and demo empowering robotic process automation with machine vision...
NUS-ISS
Why Digital Transformations are Failing at Scale
Why Digital Transformations are Failing at Scale
Tasktop
Innovation at scale - key drivers and pitfalls to building API driven agile b...
Innovation at scale - key drivers and pitfalls to building API driven agile b...
All Things Open
Innovation and scale - drivers and pitfalls to building API driven business p...
Innovation and scale - drivers and pitfalls to building API driven business p...
Mifan Careem
[WSO2Con USA 2018] Integration Is The New App Foundation
[WSO2Con USA 2018] Integration Is The New App Foundation
WSO2
Role of API in Fintech Industry - Bahaa Abdul Hussein.pdf
Role of API in Fintech Industry - Bahaa Abdul Hussein.pdf
Bahaa Abdul Hussein
Similaire à REST API
(20)
Tracxn Research - ERP Landscape, February 2017
Tracxn Research - ERP Landscape, February 2017
A Complete Guide to NetSuite API Integration in 2023
A Complete Guide to NetSuite API Integration in 2023
TEC-Roundtable-API
TEC-Roundtable-API
Upload PPT Browse in IE with presenter
Upload PPT Browse in IE with presenter
Application Portfolio Management
Application Portfolio Management
Rsmart Corporate Overview_LinkedIn
Rsmart Corporate Overview_LinkedIn
App Development Disrupted: Answers and results from the 2017 State Of App Dev...
App Development Disrupted: Answers and results from the 2017 State Of App Dev...
Everest Group FIT matrix for Robotic Process Automation (rpa) technology
Everest Group FIT matrix for Robotic Process Automation (rpa) technology
Breakthrough DevOps - Successful DevOps Adoption Strategies
Breakthrough DevOps - Successful DevOps Adoption Strategies
Getting the most from your API management platform: A case study
Getting the most from your API management platform: A case study
API Strategy in Cloud
API Strategy in Cloud
Collecting and analyzing data for valuable decision making in a service orien...
Collecting and analyzing data for valuable decision making in a service orien...
Enterprise Customer Cloud Consumption – Operating in a Hybrid Model – Alex Ne...
Enterprise Customer Cloud Consumption – Operating in a Hybrid Model – Alex Ne...
[WSO2 Integration Summit Nairobi 2019] API-Driven World
[WSO2 Integration Summit Nairobi 2019] API-Driven World
Case study and demo empowering robotic process automation with machine vision...
Case study and demo empowering robotic process automation with machine vision...
Why Digital Transformations are Failing at Scale
Why Digital Transformations are Failing at Scale
Innovation at scale - key drivers and pitfalls to building API driven agile b...
Innovation at scale - key drivers and pitfalls to building API driven agile b...
Innovation and scale - drivers and pitfalls to building API driven business p...
Innovation and scale - drivers and pitfalls to building API driven business p...
[WSO2Con USA 2018] Integration Is The New App Foundation
[WSO2Con USA 2018] Integration Is The New App Foundation
Role of API in Fintech Industry - Bahaa Abdul Hussein.pdf
Role of API in Fintech Industry - Bahaa Abdul Hussein.pdf
Plus de Elias Hasnat
BLE.pdf
BLE.pdf
Elias Hasnat
FacialRecognition-May-8-2020.pdf
FacialRecognition-May-8-2020.pdf
Elias Hasnat
Smart City IoT Solution Improved
Smart City IoT Solution Improved
Elias Hasnat
Connected vehicle mobility as a service (maas)
Connected vehicle mobility as a service (maas)
Elias Hasnat
Lorawan for agriculture, haccp hazard analysis and critical control point
Lorawan for agriculture, haccp hazard analysis and critical control point
Elias Hasnat
IoT Security with Azure
IoT Security with Azure
Elias Hasnat
産業向け AWS IoT ソリューション
産業向け AWS IoT ソリューション
Elias Hasnat
Soap vs REST-API
Soap vs REST-API
Elias Hasnat
AIIoT組み込みシステム向けIEEE1888通信スタック
AIIoT組み込みシステム向けIEEE1888通信スタック
Elias Hasnat
IoT security reference architecture
IoT security reference architecture
Elias Hasnat
Intelligent video stream detection platform
Intelligent video stream detection platform
Elias Hasnat
Machine Learning Algorithms
Machine Learning Algorithms
Elias Hasnat
K means
K means
Elias Hasnat
Unity sdk-plugin
Unity sdk-plugin
Elias Hasnat
China Mobile Market
China Mobile Market
Elias Hasnat
Plus de Elias Hasnat
(15)
BLE.pdf
BLE.pdf
FacialRecognition-May-8-2020.pdf
FacialRecognition-May-8-2020.pdf
Smart City IoT Solution Improved
Smart City IoT Solution Improved
Connected vehicle mobility as a service (maas)
Connected vehicle mobility as a service (maas)
Lorawan for agriculture, haccp hazard analysis and critical control point
Lorawan for agriculture, haccp hazard analysis and critical control point
IoT Security with Azure
IoT Security with Azure
産業向け AWS IoT ソリューション
産業向け AWS IoT ソリューション
Soap vs REST-API
Soap vs REST-API
AIIoT組み込みシステム向けIEEE1888通信スタック
AIIoT組み込みシステム向けIEEE1888通信スタック
IoT security reference architecture
IoT security reference architecture
Intelligent video stream detection platform
Intelligent video stream detection platform
Machine Learning Algorithms
Machine Learning Algorithms
K means
K means
Unity sdk-plugin
Unity sdk-plugin
China Mobile Market
China Mobile Market
Dernier
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
SUHANI PANDEY
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
rahman018755
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
Escorts Call Girls
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Seo
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
SUHANI PANDEY
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
tanu pandey
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
Escorts Call Girls
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
Neha Pandey
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
Diya Sharma
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
tanu pandey
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
ruhi
Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls Dubai
Escorts Call Girls
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Dubai call girls 971524965298 Call girls in Bur Dubai
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
rahman018755
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
@Chandigarh #call #Girls 9053900678 @Call #Girls in @Punjab 9053900678
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
soniya singh
Dernier
(20)
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
valsad Escorts Service ☎️ 6378878445 ( Sakshi Sinha ) High Profile Call Girls...
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
Real Escorts in Al Nahda +971524965298 Dubai Escorts Service
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VVIP Pune Call Girls Mohammadwadi WhatSapp Number 8005736733 With Elite Staff...
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Connaught Place ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
Al Barsha Night Partner +0567686026 Call Girls Dubai
Al Barsha Night Partner +0567686026 Call Girls Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
6.High Profile Call Girls In Punjab +919053900678 Punjab Call GirlHigh Profil...
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Sarai Rohilla Escort Service Delhi N.C.R.
REST API
1.
REST-API InsideREST-API InsideREST-API InsideREST-API InsideREST-API InsideREST-API Inside REST-API Inside REST-API Inside REST-API Inside REST-API Inside REST-API Inside REST-API Inside REST-API Inside REST-API Inside REST-API InsideREST-API Inside Software Architects' Guide to REST API Design Elias Hasnat | 2016-12-27 1 / 27
2.
IntroductionIntroductionIntroductionIntroductionIntroductionIntroduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction Introduction IntroductionIntroduction 1. REST (Representational State Transfer) 2. API (Application Program Interfacing) 3.
Digital Strategy 4. B2B Strategy 5. Security 2 / 27
3.
Strategy andStrategy andStrategy andStrategy andStrategy andStrategy and Strategy and Strategy and Strategy and Strategy and Strategy and Strategy and Strategy and Strategy and Strategy andStrategy and EmpowermentEmpowermentEmpowermentEmpowermentEmpowermentEmpowerment Empowerment Empowerment Empowerment Empowerment Empowerment Empowerment Empowerment Empowerment EmpowermentEmpowerment 1. The main goal of RESTful API is Business Strategy and B2B strategy empowerment. 2. Rest API helps to provide access of the core software application in any type of computing devices (desktop, laptop, portable and mobile). This is the solution to the Business Agility. 3
/ 27
4.
Properties of RESTful APIProperties of RESTful APIProperties of RESTful APIProperties of RESTful APIProperties of RESTful APIProperties of RESTful API Properties of RESTful API Properties of RESTful API Properties of RESTful API Properties of RESTful API Properties of RESTful API Properties of RESTful API Properties of RESTful API Properties of RESTful API Properties of RESTful APIProperties of RESTful API 1. Cross device
information sharing 2. Cross channel information exchange 3. Web oriented architecture 4. Supported protocols are * HATEOAS(Hypermedia as the Engine of Application State) and * REST (Represtational State Transfer) 5. Stateless decoupled micro-services 6. Asynchronous pattern 7. Open authentication Oauth2, OpenID 8. B2B capability, BPO bunisness process outsourcing and New Business logic opportunities 4 / 27
5.
AUTHENTICATIONAUTHENTICATIONAUTHENTICATIONAUTHENTICATIONAUTHENTICATIONAUTHENTICATION AUTHENTICATION AUTHENTICATION AUTHENTICATION AUTHENTICATION AUTHENTICATION AUTHENTICATION AUTHENTICATION AUTHENTICATION AUTHENTICATIONAUTHENTICATION 1. OAuth2 to manage Authentication 2. HTTPS for every API, OAuth2 request 3.
Use of OpenID connect for authentication 5 / 27
6.
CORE DESIGNCORE DESIGNCORE DESIGNCORE DESIGNCORE DESIGNCORE DESIGN CORE DESIGN CORE DESIGN CORE DESIGN CORE DESIGN CORE DESIGN CORE DESIGN CORE DESIGN CORE DESIGN CORE DESIGNCORE DESIGN 1. Follow the KISS principle 2. Use standard, concrete and shared syntaxes for the general and easy utilization 3.
Objective of the API design for clients (application developers), more specificly no data 4. Priority given to the main use cases initially then to the exceptions later 6 / 27
7.
DOMAIN STRUCTUREDOMAIN STRUCTUREDOMAIN STRUCTUREDOMAIN STRUCTUREDOMAIN STRUCTUREDOMAIN STRUCTURE DOMAIN STRUCTURE DOMAIN STRUCTURE DOMAIN STRUCTURE DOMAIN STRUCTURE DOMAIN STRUCTURE DOMAIN STRUCTURE DOMAIN STRUCTURE DOMAIN STRUCTURE DOMAIN STRUCTUREDOMAIN STRUCTURE > Production :
https://api.example.com > Staging : https://api.sandbox.example.com > Dev Portal : https://dev.example.com > Authentication domains > Production : https://outh2.example.com > Staging : https://oauth2.sandbox.example.com 7 / 27
8.
API ACCESS METHODAPI ACCESS METHODAPI ACCESS METHODAPI ACCESS METHODAPI ACCESS METHODAPI ACCESS METHOD API ACCESS METHOD API ACCESS METHOD API ACCESS METHOD API ACCESS METHOD API ACCESS METHOD API ACCESS METHOD API ACCESS METHOD API ACCESS METHOD API ACCESS METHODAPI ACCESS METHOD General method of sharing example use is CURL method CURL -X POST
-H "Accept: application/json" -H "Authorization: Bearer BCD-AAA-KKK-ETC" -d '{"status":"start"}' https://api.example.com/v1/application/app_1/execution 8 / 27
9.
USE OF NESTS inUSE OF NESTS inUSE OF NESTS inUSE OF NESTS inUSE OF NESTS inUSE OF NESTS in USE OF NESTS in USE OF NESTS in USE OF NESTS in USE OF NESTS in USE OF NESTS in USE OF NESTS in USE OF NESTS in USE OF NESTS in USE OF NESTS inUSE OF NESTS in RESPONSERESPONSERESPONSERESPONSERESPONSERESPONSE RESPONSE RESPONSE RESPONSE RESPONSE RESPONSE RESPONSE RESPONSE RESPONSE RESPONSERESPONSE The resources should
not me nested more than two steps deep > GET /applications/app_1 RESPONSE: { "id": "app_1", "name": "app_1", "location": { "memory":"2", "hdd":{"offset":"zxc"} } } 9 / 27
10.
CAREFULCAREFULCAREFULCAREFULCAREFULCAREFUL CAREFUL CAREFUL CAREFUL CAREFUL CAREFUL CAREFUL CAREFUL CAREFUL CAREFULCAREFUL AUTHENTICATIONAUTHENTICATIONAUTHENTICATIONAUTHENTICATIONAUTHENTICATIONAUTHENTICATION AUTHENTICATION AUTHENTICATION AUTHENTICATION AUTHENTICATION AUTHENTICATION AUTHENTICATION AUTHENTICATION AUTHENTICATION AUTHENTICATIONAUTHENTICATION 1. Web crawler or bots are used for DDoS attacks and so on, 2. Hence for each API access is sould be ensured to use >
OAuth2 Access_Token > OAuth2 Client_ID 10 / 27
11.
CORS OPTIONCORS OPTIONCORS OPTIONCORS OPTIONCORS OPTIONCORS OPTION CORS OPTION CORS OPTION CORS OPTION CORS OPTION CORS OPTION CORS OPTION CORS OPTION CORS OPTION CORS OPTIONCORS OPTION 1. Use CORS(Cross origin requests) for accessing from SPA(Single Page Application), Landing Page, js etc. 2. For IE 7,8,9 JSONP is suitable but the limitation is that JSONP can not do content negotiation using Accept Header. Another limitation is Data could not be sent using Payload. Overall every request should be sent using GET method. 11
/ 27
12.
CONTENT NEGOTIATIONCONTENT NEGOTIATIONCONTENT NEGOTIATIONCONTENT NEGOTIATIONCONTENT NEGOTIATIONCONTENT NEGOTIATION CONTENT NEGOTIATION CONTENT NEGOTIATION CONTENT NEGOTIATION CONTENT NEGOTIATION CONTENT NEGOTIATION CONTENT NEGOTIATION CONTENT NEGOTIATION CONTENT NEGOTIATION CONTENT NEGOTIATIONCONTENT NEGOTIATION 1. Content negotiation is done by providing the required content header from the client. 2. The default format of Accept Header is JSON. >
Accept: application/json > Accept: text/plain > Accept: application/xml 12 / 27
13.
HATEOASHATEOASHATEOASHATEOASHATEOASHATEOAS HATEOAS HATEOAS HATEOAS HATEOAS HATEOAS HATEOAS HATEOAS HATEOAS HATEOASHATEOAS 1. For discoverability every API should be provided with the Hypermedia links using every possible state of the application. 2. RFC5988 Link notation could be used for HATEOAS implementation. GET
/app/app_1 < 200 Ok < { "id":"app_1", " rstname":"Application One",...} <Link:<https://api.example.com/v1/apps>; rel="self"; method:"GET", <https://api.example.com/v1/locations/app_1>; rel="locations"; method:"GET" 13 / 27
14.
i18N Localizationi18N Localizationi18N Localizationi18N Localizationi18N Localizationi18N Localization i18N Localization i18N Localization i18N Localization i18N Localization i18N Localization i18N Localization i18N Localization i18N Localization i18N Localizationi18N Localization 1. ISO 8601 for Date/Time/Timestamp: 1978-05- 10T06:06:06+00:00 2. RFC 7231 Languages Accept-Language:
de Accept-Language: de-CH Accept-Language: en-US,en;q=0.5 14 / 27
15.
SEARCHSEARCHSEARCHSEARCHSEARCHSEARCH SEARCH SEARCH SEARCH SEARCH SEARCH SEARCH SEARCH SEARCH SEARCHSEARCH "/search" keyword should be used for search operation. GET /applications/search?type=cron 15 /
27
16.
FILTERFILTERFILTERFILTERFILTERFILTER FILTER FILTER FILTER FILTER FILTER FILTER FILTER FILTER FILTERFILTER "?" should be used as filter keyword. GET /application/app_1/status?state=running GET /applications/status?state=running&app_id=app_1 16
/ 27
17.
PAGINATIONPAGINATIONPAGINATIONPAGINATIONPAGINATIONPAGINATION PAGINATION PAGINATION PAGINATION PAGINATION PAGINATION PAGINATION PAGINATION PAGINATION PAGINATIONPAGINATION 1. For pagination purposes query range should be used and also there should be a default pagination range for example range=0-10. 2. The response header must contain the range information as follows Link, Content-Range, Accept-Range. /applications?range=13-27 206
Partial Content Content-Range: 13-27/89 Accept-Range: order 10 Link:<https://api.example.com/v1/applications?range=0-9>; rel="first", <https://api.example.com/v1/applications?range=10-19>; rel="prev", <https://api.example.com/v1/applications?range=20-29>; rel="next", <https://api.example.com/v1/applications?range=80-89>; rel="last" 17 / 27
18.
PARTIAL RESPONSEPARTIAL RESPONSEPARTIAL RESPONSEPARTIAL RESPONSEPARTIAL RESPONSEPARTIAL RESPONSE PARTIAL RESPONSE PARTIAL RESPONSE PARTIAL RESPONSE PARTIAL RESPONSE PARTIAL RESPONSE PARTIAL RESPONSE PARTIAL RESPONSE PARTIAL RESPONSE PARTIAL RESPONSEPARTIAL RESPONSE For the better use of bandwidth the partial response is used rather than showing all huge data. /applications/app_1?fields= name,location 200 OK { "name":
"app_1", "location": { "memory":"2", "hdd":{"offset":"zxc"} } } 18 / 27
19.
SORTSORTSORTSORTSORTSORT SORT SORT SORT SORT SORT SORT SORT SORT SORTSORT 1. For sorting the query result "?sort=atribute1,atributeN" is used. 2. By default resources are sorted in ascending order. Use
of "?desc=atribute1,atributeN" to sort resources in descending order GET /applications?sort=rating,reviews,name;desc=rate,reviews 19 / 27
20.
FIRSTFIRSTFIRSTFIRSTFIRSTFIRST FIRST FIRST FIRST FIRST FIRST FIRST FIRST FIRST FIRSTFIRST "first" keyword is used to get the first element. >GET /applications/first 200 OK {"id":"app_1",
"state":"free"} 20 / 27
21.
LASTLASTLASTLASTLASTLAST LAST LAST LAST LAST LAST LAST LAST LAST LASTLAST "last" keyword is used to get the last element. >GET /applications/last 200 OK {"id":"app_89",
"state":"in-app-purchase"} 21 / 27
22.
COUNTCOUNTCOUNTCOUNTCOUNTCOUNT COUNT COUNT COUNT COUNT COUNT COUNT COUNT COUNT COUNTCOUNT "count" keyword is used to get the count of the resulting elements. GET /applications/count 200 OK {"count":"89"} 22
/ 27
23.
REST API METHODSREST API METHODSREST API METHODSREST API METHODSREST API METHODSREST API METHODS REST API METHODS REST API METHODS REST API METHODS REST API METHODS REST API METHODS REST API METHODS REST API METHODS REST API METHODS REST API METHODSREST API METHODS GET - Read a
specific resource (by an identifier) or a collection of resources. PUT - Update a specific resource (by an identifier) or a collection of resources. Can also be used to create a specific resource if the resource identifier is prior known. DELETE - Remove/delete a specific resource by an identifier. POST - Create a new resource. Also a catch-all verb for operations that do not fit into the other categories. 23 / 27
24.
SUCCESSSUCCESSSUCCESSSUCCESSSUCCESSSUCCESS SUCCESS SUCCESS SUCCESS SUCCESS SUCCESS SUCCESS SUCCESS SUCCESS SUCCESSSUCCESS 200 OK 201 Created 202
Accepted 204 No Content 206 Partial Content 24 / 27
25.
CLIENT SIDE ERRORCLIENT SIDE ERRORCLIENT SIDE ERRORCLIENT SIDE ERRORCLIENT SIDE ERRORCLIENT SIDE ERROR CLIENT SIDE ERROR CLIENT SIDE ERROR CLIENT SIDE ERROR CLIENT SIDE ERROR CLIENT SIDE ERROR CLIENT SIDE ERROR CLIENT SIDE ERROR CLIENT SIDE ERROR CLIENT SIDE ERRORCLIENT SIDE ERROR 400 Bad Request
: {"error":"invalid_request", "error_description":"There is no ‘purchase’ property"} 401 Unauthorized : {"error”:"no_credentials", "error_description":"You must be authenticated"} 403 Forbidden : {"error":"protected_resource", "error_description":"You need application cient rights"} 404 Not Found : {"error":"not_found", "error_description": "The application ‘app_872’ does not exist"} 405 Method Not Allowed : {"error":"not_implemented", "error_description":"Device creation not implemented"} 406 Not Acceptable : {"error": "not_acceptable", "error_description":"Available languages: en, ja"} 25 / 27
26.
SERVER SIDE ERRORSERVER SIDE ERRORSERVER SIDE ERRORSERVER SIDE ERRORSERVER SIDE ERRORSERVER SIDE ERROR SERVER SIDE ERROR SERVER SIDE ERROR SERVER SIDE ERROR SERVER SIDE ERROR SERVER SIDE ERROR SERVER SIDE ERROR SERVER SIDE ERROR SERVER SIDE ERROR SERVER SIDE ERRORSERVER SIDE ERROR 500 Internal Server
Error : {"error":"server_error", "error_description":"Oops! Something went wrong..."} 503 Service Unavailable : {"error":"service_error", "error_description":"Oops! Something went wrong..."} 26 / 27
27.
Thank You 27 / 27
Télécharger maintenant