SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Getting to Grips
with
RESTful APIs
Beginner API Workshop
Petko Mikhailov
Content Strategist
PROS
COVERAGE
https://evolution-of-tc.com/ 2
• RESTful API basics
• Observe some APIs and their documentation
• Try some APIs and API tools
• Look at the OpenAPI specification
• Hopefully Form an API TechCom community
etc2018@mailinator.com
What we’ll be talking about:
RESTful API BASICS
https://evolution-of-tc.com/ 3
• API definition:
A set of rules (interface) that two sides (programs, components,
services) agree to follow
What are APIs?
RESTful API BASICS
You can think of an API
as of a friendly waiter
ready to serve you.
https://evolution-of-tc.com/ 4
RESTful API BASICS
https://evolution-of-tc.com/ 5
RESTful API BASICS
https://evolution-of-tc.com/ 6
• API definition:
A set of rules (interface) that two sides (programs, components,
services) agree to follow
What are APIs?
RESTful API BASICS
https://evolution-of-tc.com/ 7
• API definition:
A set of rules (interface) that two sides (programs, components,
services) agree to follow
• Web API definition:
A set of rules (interface) that the two sides (programs, components,
services) which communicate with the HTTP(S) protocol agree to follow
What are APIs?
RESTful API BASICS
https://evolution-of-tc.com/ 8
• API definition:
A set of rules (interface) that two sides (programs, components,
services) agree to follow
• Web API definition:
A set of rules (interface) that the two sides (programs, components,
services) which communicate with the HTTP(S) protocol agree to follow
• RESTful API definition:
A set of rules (interface) that the two sides (programs, components,
services) which communicate with the HTTP(S) protocol using the
REST standard agree to follow
What are APIs?
RESTful API BASICS
So, what’s the big deal?
https://evolution-of-
tc.com/
https://evolution-of-
tc.com/
https://evolution-of-tc.com/ 9
RESTful API BASICS
https://evolution-of-tc.com/ 10
Platform APIsAll APIs
Web APIs
RESTful APIs
SOAP APIs
RESTful APIs
RESTful API BASICS
https://evolution-of-tc.com/ 11
RESTful API BASICS
https://evolution-of-tc.com/ 12
RESTful API BASICS
Automotive industry analogy
https://evolution-of-tc.com/ 13
RESTful API BASICS
Automotive industry analogy
https://evolution-of-tc.com/ 14
RESTful API BASICS
Automotive industry analogy
https://evolution-of-tc.com/ 15
RESTful API BASICS
Computer industry disaggregation
https://evolution-of-tc.com/ 16
1960-1970
1970-1990
1990-2000
Mainframes
Software
PCs
Applications
OSs
RESTful API BASICS
Computer industry disaggregation
https://evolution-of-tc.com/ 17
Web APIs are now everywhere!
RESTful API BASICS
What does this mean?
https://evolution-of-
tc.com/
https://evolution-of-
tc.com/
https://evolution-of-tc.com/ 18
RESTful API BASICS
https://evolution-of-tc.com/ 19
• New business:
 Now there are APIs for everything  domain experts, not
computer experts can write programs  software easier to create
then ever  startup easier to create by ever  more innovation
than ever!
 New type of company whose product is API
• Existing businesses:
 Companies can interconnect internal resources
 Can expose valuable data for external use
 IT unit of operations moves to API
For the industry:
What does this mean?
RESTful API BASICS
https://evolution-of-tc.com/ 20
• Computers, mobile, wearable, and IoT devices become interconnected
• Big data is put to use  Boost in AI
• Whole new ecosystems around APIs
• $2.2 trillion economy by the end of 2018
For the industry (continued):
What does this mean?
RESTful API BASICS
Cambrian explosion in technology!
https://evolution-of-
tc.com/
https://evolution-of-
tc.com/
https://evolution-of-tc.com/ 21
And APIs are in the center of it!
RESTful API BASICS
https://evolution-of-tc.com/ 22
• TC profession keeps up with technology
• TC becomes more technical
• TC integrates with development
• TC is development
• Documentation becomes important
• TC can bring value
• TC can contribute to the whole development cycle
• Require “manual” documentation
• A stepping stone into programming
For Technical Communicators:
What does this mean?
RESTful API BASICS
https://evolution-of-tc.com/ 23
Documentation becomes important
RESTful API BASICS
Now is the right time to jump on the bandwagon!
https://evolution-of-
tc.com/
https://evolution-of-
tc.com/
https://evolution-of-tc.com/ 24
RESTful API BASICS
Now is the right time to jump on the bandwagon!
https://evolution-of-
tc.com/
https://evolution-of-
tc.com/
https://evolution-of-tc.com/ 25
But wait!
RESTful API BASICS
Are APIs difficult to learn?
https://evolution-of-
tc.com/
https://evolution-of-
tc.com/
https://evolution-of-tc.com/ 26
The learning curve
RESTful API BASICS
https://evolution-of-tc.com/ 27
• Meant to be consumed not by humans but programs
• REST is a style, not a standard
• Typically explained by devs
• New and inconsistent terminology
What makes them difficult:
Are APIs difficult to learn?
RESTful API BASICS
https://evolution-of-tc.com/ 28
• Easier to learn than platform APIs
• Only 4 methods
• Don’t require knowledge of programming languages
What makes them easy:
Are APIs difficult to learn?
RESTful API BASICS
How do RESTful APIs work?
https://evolution-of-
tc.com/
https://evolution-of-
tc.com/
https://evolution-of-tc.com/ 29
RESTful API BASICS
https://evolution-of-tc.com/ 30
• The methods
• The request
• The response
• The endpoints
• Header and body
• The parameters
• The data format (JSON, XML)
• Authentication
The main things:
RESTful APIs demystified
RESTful API BASICS
GET Asks the server to retrieve a resource.
POST Asks the server to create (and configure) a new
resource.
PUT Asks the server to edit/update an existing resource.
DELETE Asks the server to delete a resource.
https://evolution-of-tc.com/ 31
The four main REST methods
RESTful API BASICS
Request and response structures
https://evolution-of-
tc.com/
https://evolution-of-
tc.com/
https://evolution-of-tc.com/ 32
Activities
https://evolution-of-tc.com/ 33
Let’s try some things out!
Exploring APIs
• API request in the browser
• Numbers API
• Swagger Petstore API
• Post-Shift API
• Random Famous Quotes API
Exploring tools
• Postman
• cURL
• Open API specification
• YAML
• Stoplight
API Documentation
https://evolution-of-tc.com/ 34
What should be there in the API docs?
Minimum Viable
Documentation
(MVD)
• Schemas
• Overview
• Authentication
• Reference
• cURL examples
Full documentation
The MVD, plus:
• Getting Started
• Tutorials
• SDKs and sample apps
• Rate limiting and subscription plans
• Quick reference
• Best practices
• API glossary
• FAQ
API Documentation
https://evolution-of-tc.com/ 35
• MailJet
• MailChimp
• SendGrid
Check out these API docs:
Examples
TC API EXPERTISE
https://evolution-of-tc.com/ 36
• API methods
• How to pass parameters in the request
• How to interpret the response
• The JSON data format
• Postman
• cURL
• Open API spec
• YAML
• Swagger (and SwaggerHub)
• Stoplight
• What makes a good API documentation
• How to build API reference content out of the spec
• Git (and GitHub)
What does it take to become a TC API expert?
CREDITS
https://evolution-of-tc.com/ 37
• ProgrammableWeb
 I’d Rather Be Writing
 Swagger
 Kong
 Mashape
 Stoplight
 Mailinator
 MailChimp
 MailJet
 SendGrid
 Images’ copyrights belong to their respective holders.
This presentation has used material from:

Weitere ähnliche Inhalte

Was ist angesagt?

Another API-Blueprint, RAML and Swagger Comparison
Another API-Blueprint, RAML and Swagger ComparisonAnother API-Blueprint, RAML and Swagger Comparison
Another API-Blueprint, RAML and Swagger ComparisonSmartBear
 
Maintainable API Docs and Other Rainbow Colored Unicorns
Maintainable API Docs and Other Rainbow Colored UnicornsMaintainable API Docs and Other Rainbow Colored Unicorns
Maintainable API Docs and Other Rainbow Colored UnicornsNeil Mansilla
 
Oracle APEX, Oracle Autonomous Database, Always Free Oracle Cloud Services
Oracle APEX, Oracle Autonomous Database, Always Free Oracle Cloud ServicesOracle APEX, Oracle Autonomous Database, Always Free Oracle Cloud Services
Oracle APEX, Oracle Autonomous Database, Always Free Oracle Cloud ServicesMichael Hichwa
 
REST API Doc Best Practices
REST API Doc Best PracticesREST API Doc Best Practices
REST API Doc Best PracticesMarta Rauch
 
GraphQL Munich Meetup #1 - How We Use GraphQL At Commercetools
GraphQL Munich Meetup #1 - How We Use GraphQL At CommercetoolsGraphQL Munich Meetup #1 - How We Use GraphQL At Commercetools
GraphQL Munich Meetup #1 - How We Use GraphQL At CommercetoolsNicola Molinari
 
APIdays 2015 - The State of Web API Languages
APIdays 2015 - The State of Web API LanguagesAPIdays 2015 - The State of Web API Languages
APIdays 2015 - The State of Web API LanguagesJerome Louvel
 
DEVOXX UK 2018 - GraphQL as an alternative approach to REST
DEVOXX UK 2018 - GraphQL as an alternative approach to RESTDEVOXX UK 2018 - GraphQL as an alternative approach to REST
DEVOXX UK 2018 - GraphQL as an alternative approach to RESTluisw19
 
API Management For Building Software Applications Powerpoint Presentation Slides
API Management For Building Software Applications Powerpoint Presentation SlidesAPI Management For Building Software Applications Powerpoint Presentation Slides
API Management For Building Software Applications Powerpoint Presentation SlidesSlideTeam
 
GlueCon 2015 - How REST APIs can glue all types of devices together
GlueCon 2015 - How REST APIs can glue all types of devices togetherGlueCon 2015 - How REST APIs can glue all types of devices together
GlueCon 2015 - How REST APIs can glue all types of devices togetherRestlet
 
Mocking APIs Collaboratively with Postman
Mocking APIs Collaboratively with PostmanMocking APIs Collaboratively with Postman
Mocking APIs Collaboratively with PostmanNordic APIs
 
GraphQL - The new "Lingua Franca" for API-Development
GraphQL - The new "Lingua Franca" for API-DevelopmentGraphQL - The new "Lingua Franca" for API-Development
GraphQL - The new "Lingua Franca" for API-Developmentjexp
 
Zalando Tech: From Java to Scala in Less Than Three Months
Zalando Tech: From Java to Scala in Less Than Three MonthsZalando Tech: From Java to Scala in Less Than Three Months
Zalando Tech: From Java to Scala in Less Than Three MonthsZalando Technology
 
API Docs Made Right / RAML - Swagger rant
API Docs Made Right / RAML - Swagger rantAPI Docs Made Right / RAML - Swagger rant
API Docs Made Right / RAML - Swagger rantVladimir Shulyak
 
REST vs. GraphQL: Critical Look
REST vs. GraphQL: Critical LookREST vs. GraphQL: Critical Look
REST vs. GraphQL: Critical LookNordic APIs
 
4 Major Advantages of API Testing
4 Major Advantages of API Testing4 Major Advantages of API Testing
4 Major Advantages of API TestingQASource
 

Was ist angesagt? (20)

Another API-Blueprint, RAML and Swagger Comparison
Another API-Blueprint, RAML and Swagger ComparisonAnother API-Blueprint, RAML and Swagger Comparison
Another API-Blueprint, RAML and Swagger Comparison
 
Maintainable API Docs and Other Rainbow Colored Unicorns
Maintainable API Docs and Other Rainbow Colored UnicornsMaintainable API Docs and Other Rainbow Colored Unicorns
Maintainable API Docs and Other Rainbow Colored Unicorns
 
Api Testing
Api TestingApi Testing
Api Testing
 
Oracle APEX, Oracle Autonomous Database, Always Free Oracle Cloud Services
Oracle APEX, Oracle Autonomous Database, Always Free Oracle Cloud ServicesOracle APEX, Oracle Autonomous Database, Always Free Oracle Cloud Services
Oracle APEX, Oracle Autonomous Database, Always Free Oracle Cloud Services
 
REST API Doc Best Practices
REST API Doc Best PracticesREST API Doc Best Practices
REST API Doc Best Practices
 
GraphQL Munich Meetup #1 - How We Use GraphQL At Commercetools
GraphQL Munich Meetup #1 - How We Use GraphQL At CommercetoolsGraphQL Munich Meetup #1 - How We Use GraphQL At Commercetools
GraphQL Munich Meetup #1 - How We Use GraphQL At Commercetools
 
APIdays 2015 - The State of Web API Languages
APIdays 2015 - The State of Web API LanguagesAPIdays 2015 - The State of Web API Languages
APIdays 2015 - The State of Web API Languages
 
DEVOXX UK 2018 - GraphQL as an alternative approach to REST
DEVOXX UK 2018 - GraphQL as an alternative approach to RESTDEVOXX UK 2018 - GraphQL as an alternative approach to REST
DEVOXX UK 2018 - GraphQL as an alternative approach to REST
 
API Management For Building Software Applications Powerpoint Presentation Slides
API Management For Building Software Applications Powerpoint Presentation SlidesAPI Management For Building Software Applications Powerpoint Presentation Slides
API Management For Building Software Applications Powerpoint Presentation Slides
 
GraphQL Europe Recap
GraphQL Europe RecapGraphQL Europe Recap
GraphQL Europe Recap
 
GlueCon 2015 - How REST APIs can glue all types of devices together
GlueCon 2015 - How REST APIs can glue all types of devices togetherGlueCon 2015 - How REST APIs can glue all types of devices together
GlueCon 2015 - How REST APIs can glue all types of devices together
 
Meetup #5 API Testing World
Meetup #5 API Testing WorldMeetup #5 API Testing World
Meetup #5 API Testing World
 
Mocking APIs Collaboratively with Postman
Mocking APIs Collaboratively with PostmanMocking APIs Collaboratively with Postman
Mocking APIs Collaboratively with Postman
 
2.3.anypoint exchange
2.3.anypoint exchange2.3.anypoint exchange
2.3.anypoint exchange
 
GraphQL - The new "Lingua Franca" for API-Development
GraphQL - The new "Lingua Franca" for API-DevelopmentGraphQL - The new "Lingua Franca" for API-Development
GraphQL - The new "Lingua Franca" for API-Development
 
Zalando Tech: From Java to Scala in Less Than Three Months
Zalando Tech: From Java to Scala in Less Than Three MonthsZalando Tech: From Java to Scala in Less Than Three Months
Zalando Tech: From Java to Scala in Less Than Three Months
 
API Docs Made Right / RAML - Swagger rant
API Docs Made Right / RAML - Swagger rantAPI Docs Made Right / RAML - Swagger rant
API Docs Made Right / RAML - Swagger rant
 
REST vs. GraphQL: Critical Look
REST vs. GraphQL: Critical LookREST vs. GraphQL: Critical Look
REST vs. GraphQL: Critical Look
 
Scribe Online CDK & Connector Development
Scribe Online CDK & Connector DevelopmentScribe Online CDK & Connector Development
Scribe Online CDK & Connector Development
 
4 Major Advantages of API Testing
4 Major Advantages of API Testing4 Major Advantages of API Testing
4 Major Advantages of API Testing
 

Ähnlich wie Getting to Grips with RESTful APIs

Top 7 wrong common beliefs about Enterprise API implementation
Top 7 wrong common beliefs about Enterprise API implementationTop 7 wrong common beliefs about Enterprise API implementation
Top 7 wrong common beliefs about Enterprise API implementationOCTO Technology
 
What’s behind a high quality web API? Ensure your APIs are more than just a ...
What’s behind a high quality web API? Ensure your APIs are more than just a ...What’s behind a high quality web API? Ensure your APIs are more than just a ...
What’s behind a high quality web API? Ensure your APIs are more than just a ...Kim Clark
 
Creating a mule project with raml and api
Creating a mule project with raml and apiCreating a mule project with raml and api
Creating a mule project with raml and apiBhargav Ranjit
 
OpenAPI v.Next - Events, Alternative Schemas & the Road Ahead
OpenAPI v.Next - Events, Alternative Schemas & the Road AheadOpenAPI v.Next - Events, Alternative Schemas & the Road Ahead
OpenAPI v.Next - Events, Alternative Schemas & the Road AheadTed Epstein
 
IBM Integration Bus and REST APIs - Sanjay Nagchowdhury
IBM Integration Bus and REST APIs - Sanjay NagchowdhuryIBM Integration Bus and REST APIs - Sanjay Nagchowdhury
IBM Integration Bus and REST APIs - Sanjay NagchowdhuryKaren Broughton-Mabbitt
 
Austin API Summit 2018: Are REST APIs Still Relevant Today?
Austin API Summit 2018: Are REST APIs Still Relevant Today?Austin API Summit 2018: Are REST APIs Still Relevant Today?
Austin API Summit 2018: Are REST APIs Still Relevant Today?LaunchAny
 
Are REST APIs Still Relevant Today?
Are REST APIs Still Relevant Today?Are REST APIs Still Relevant Today?
Are REST APIs Still Relevant Today?Nordic APIs
 
Documenting an API for the First Time? Quick-Start Tips for Your First API Do...
Documenting an API for the First Time? Quick-Start Tips for Your First API Do...Documenting an API for the First Time? Quick-Start Tips for Your First API Do...
Documenting an API for the First Time? Quick-Start Tips for Your First API Do...Petko Mikhailov
 
REST-API's for architects and managers
REST-API's for architects and managersREST-API's for architects and managers
REST-API's for architects and managersPatrick Savalle
 
API Workshop Amsterdam presented by API Architect Ronnie Mitra
API Workshop Amsterdam presented by API Architect Ronnie MitraAPI Workshop Amsterdam presented by API Architect Ronnie Mitra
API Workshop Amsterdam presented by API Architect Ronnie MitraCA API Management
 
API Product Opportunity Responsibility Nicolas Sierro 2015.pptx
API Product Opportunity Responsibility Nicolas Sierro 2015.pptxAPI Product Opportunity Responsibility Nicolas Sierro 2015.pptx
API Product Opportunity Responsibility Nicolas Sierro 2015.pptxBlockchainizator
 
A Snapshot of API Design Trends In 2019
A Snapshot of API Design Trends In 2019A Snapshot of API Design Trends In 2019
A Snapshot of API Design Trends In 2019Bill Doerrfeld
 
GlueCon 2018: Are REST APIs Still Relevant Today?
GlueCon 2018: Are REST APIs Still Relevant Today?GlueCon 2018: Are REST APIs Still Relevant Today?
GlueCon 2018: Are REST APIs Still Relevant Today?LaunchAny
 
API Documentation.pptx
API Documentation.pptxAPI Documentation.pptx
API Documentation.pptxRahulCR31
 
API Documentation.pptx
API Documentation.pptxAPI Documentation.pptx
API Documentation.pptxRahulCR31
 
Accelerating API Development With OpenAPI and Serverless
Accelerating API Development With OpenAPI and ServerlessAccelerating API Development With OpenAPI and Serverless
Accelerating API Development With OpenAPI and ServerlessSmartBear
 
RefCard API Architecture Strategy
RefCard API Architecture StrategyRefCard API Architecture Strategy
RefCard API Architecture StrategyOCTO Technology
 
Building a REST API for Longevity
Building a REST API for LongevityBuilding a REST API for Longevity
Building a REST API for LongevityMuleSoft
 

Ähnlich wie Getting to Grips with RESTful APIs (20)

Top 7 wrong common beliefs about Enterprise API implementation
Top 7 wrong common beliefs about Enterprise API implementationTop 7 wrong common beliefs about Enterprise API implementation
Top 7 wrong common beliefs about Enterprise API implementation
 
Octo API-days 2015
Octo API-days 2015Octo API-days 2015
Octo API-days 2015
 
What’s behind a high quality web API? Ensure your APIs are more than just a ...
What’s behind a high quality web API? Ensure your APIs are more than just a ...What’s behind a high quality web API? Ensure your APIs are more than just a ...
What’s behind a high quality web API? Ensure your APIs are more than just a ...
 
Creating a mule project with raml and api
Creating a mule project with raml and apiCreating a mule project with raml and api
Creating a mule project with raml and api
 
OpenAPI v.Next - Events, Alternative Schemas & the Road Ahead
OpenAPI v.Next - Events, Alternative Schemas & the Road AheadOpenAPI v.Next - Events, Alternative Schemas & the Road Ahead
OpenAPI v.Next - Events, Alternative Schemas & the Road Ahead
 
IBM Integration Bus and REST APIs - Sanjay Nagchowdhury
IBM Integration Bus and REST APIs - Sanjay NagchowdhuryIBM Integration Bus and REST APIs - Sanjay Nagchowdhury
IBM Integration Bus and REST APIs - Sanjay Nagchowdhury
 
Austin API Summit 2018: Are REST APIs Still Relevant Today?
Austin API Summit 2018: Are REST APIs Still Relevant Today?Austin API Summit 2018: Are REST APIs Still Relevant Today?
Austin API Summit 2018: Are REST APIs Still Relevant Today?
 
Are REST APIs Still Relevant Today?
Are REST APIs Still Relevant Today?Are REST APIs Still Relevant Today?
Are REST APIs Still Relevant Today?
 
Documenting an API for the First Time? Quick-Start Tips for Your First API Do...
Documenting an API for the First Time? Quick-Start Tips for Your First API Do...Documenting an API for the First Time? Quick-Start Tips for Your First API Do...
Documenting an API for the First Time? Quick-Start Tips for Your First API Do...
 
REST-API's for architects and managers
REST-API's for architects and managersREST-API's for architects and managers
REST-API's for architects and managers
 
API Workshop Amsterdam presented by API Architect Ronnie Mitra
API Workshop Amsterdam presented by API Architect Ronnie MitraAPI Workshop Amsterdam presented by API Architect Ronnie Mitra
API Workshop Amsterdam presented by API Architect Ronnie Mitra
 
API Product Opportunity Responsibility Nicolas Sierro 2015.pptx
API Product Opportunity Responsibility Nicolas Sierro 2015.pptxAPI Product Opportunity Responsibility Nicolas Sierro 2015.pptx
API Product Opportunity Responsibility Nicolas Sierro 2015.pptx
 
Open Banking & Open Insurance
Open Banking & Open InsuranceOpen Banking & Open Insurance
Open Banking & Open Insurance
 
A Snapshot of API Design Trends In 2019
A Snapshot of API Design Trends In 2019A Snapshot of API Design Trends In 2019
A Snapshot of API Design Trends In 2019
 
GlueCon 2018: Are REST APIs Still Relevant Today?
GlueCon 2018: Are REST APIs Still Relevant Today?GlueCon 2018: Are REST APIs Still Relevant Today?
GlueCon 2018: Are REST APIs Still Relevant Today?
 
API Documentation.pptx
API Documentation.pptxAPI Documentation.pptx
API Documentation.pptx
 
API Documentation.pptx
API Documentation.pptxAPI Documentation.pptx
API Documentation.pptx
 
Accelerating API Development With OpenAPI and Serverless
Accelerating API Development With OpenAPI and ServerlessAccelerating API Development With OpenAPI and Serverless
Accelerating API Development With OpenAPI and Serverless
 
RefCard API Architecture Strategy
RefCard API Architecture StrategyRefCard API Architecture Strategy
RefCard API Architecture Strategy
 
Building a REST API for Longevity
Building a REST API for LongevityBuilding a REST API for Longevity
Building a REST API for Longevity
 

Kürzlich hochgeladen

AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
tonesoftg
tonesoftgtonesoftg
tonesoftglanshi9
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024VictoriaMetrics
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benonimasabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxAnnaArtyushina1
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...SelfMade bd
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastPapp Krisztián
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...masabamasaba
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisamasabamasaba
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareJim McKeeth
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyviewmasabamasaba
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...Jittipong Loespradit
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2
 

Kürzlich hochgeladen (20)

AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 

Getting to Grips with RESTful APIs

  • 1. Getting to Grips with RESTful APIs Beginner API Workshop Petko Mikhailov Content Strategist PROS
  • 2. COVERAGE https://evolution-of-tc.com/ 2 • RESTful API basics • Observe some APIs and their documentation • Try some APIs and API tools • Look at the OpenAPI specification • Hopefully Form an API TechCom community etc2018@mailinator.com What we’ll be talking about:
  • 3. RESTful API BASICS https://evolution-of-tc.com/ 3 • API definition: A set of rules (interface) that two sides (programs, components, services) agree to follow What are APIs?
  • 4. RESTful API BASICS You can think of an API as of a friendly waiter ready to serve you. https://evolution-of-tc.com/ 4
  • 6. RESTful API BASICS https://evolution-of-tc.com/ 6 • API definition: A set of rules (interface) that two sides (programs, components, services) agree to follow What are APIs?
  • 7. RESTful API BASICS https://evolution-of-tc.com/ 7 • API definition: A set of rules (interface) that two sides (programs, components, services) agree to follow • Web API definition: A set of rules (interface) that the two sides (programs, components, services) which communicate with the HTTP(S) protocol agree to follow What are APIs?
  • 8. RESTful API BASICS https://evolution-of-tc.com/ 8 • API definition: A set of rules (interface) that two sides (programs, components, services) agree to follow • Web API definition: A set of rules (interface) that the two sides (programs, components, services) which communicate with the HTTP(S) protocol agree to follow • RESTful API definition: A set of rules (interface) that the two sides (programs, components, services) which communicate with the HTTP(S) protocol using the REST standard agree to follow What are APIs?
  • 9. RESTful API BASICS So, what’s the big deal? https://evolution-of- tc.com/ https://evolution-of- tc.com/ https://evolution-of-tc.com/ 9
  • 10. RESTful API BASICS https://evolution-of-tc.com/ 10 Platform APIsAll APIs Web APIs RESTful APIs SOAP APIs RESTful APIs
  • 13. RESTful API BASICS Automotive industry analogy https://evolution-of-tc.com/ 13
  • 14. RESTful API BASICS Automotive industry analogy https://evolution-of-tc.com/ 14
  • 15. RESTful API BASICS Automotive industry analogy https://evolution-of-tc.com/ 15
  • 16. RESTful API BASICS Computer industry disaggregation https://evolution-of-tc.com/ 16 1960-1970 1970-1990 1990-2000 Mainframes Software PCs Applications OSs
  • 17. RESTful API BASICS Computer industry disaggregation https://evolution-of-tc.com/ 17 Web APIs are now everywhere!
  • 18. RESTful API BASICS What does this mean? https://evolution-of- tc.com/ https://evolution-of- tc.com/ https://evolution-of-tc.com/ 18
  • 19. RESTful API BASICS https://evolution-of-tc.com/ 19 • New business:  Now there are APIs for everything  domain experts, not computer experts can write programs  software easier to create then ever  startup easier to create by ever  more innovation than ever!  New type of company whose product is API • Existing businesses:  Companies can interconnect internal resources  Can expose valuable data for external use  IT unit of operations moves to API For the industry: What does this mean?
  • 20. RESTful API BASICS https://evolution-of-tc.com/ 20 • Computers, mobile, wearable, and IoT devices become interconnected • Big data is put to use  Boost in AI • Whole new ecosystems around APIs • $2.2 trillion economy by the end of 2018 For the industry (continued): What does this mean?
  • 21. RESTful API BASICS Cambrian explosion in technology! https://evolution-of- tc.com/ https://evolution-of- tc.com/ https://evolution-of-tc.com/ 21 And APIs are in the center of it!
  • 22. RESTful API BASICS https://evolution-of-tc.com/ 22 • TC profession keeps up with technology • TC becomes more technical • TC integrates with development • TC is development • Documentation becomes important • TC can bring value • TC can contribute to the whole development cycle • Require “manual” documentation • A stepping stone into programming For Technical Communicators: What does this mean?
  • 23. RESTful API BASICS https://evolution-of-tc.com/ 23 Documentation becomes important
  • 24. RESTful API BASICS Now is the right time to jump on the bandwagon! https://evolution-of- tc.com/ https://evolution-of- tc.com/ https://evolution-of-tc.com/ 24
  • 25. RESTful API BASICS Now is the right time to jump on the bandwagon! https://evolution-of- tc.com/ https://evolution-of- tc.com/ https://evolution-of-tc.com/ 25 But wait!
  • 26. RESTful API BASICS Are APIs difficult to learn? https://evolution-of- tc.com/ https://evolution-of- tc.com/ https://evolution-of-tc.com/ 26 The learning curve
  • 27. RESTful API BASICS https://evolution-of-tc.com/ 27 • Meant to be consumed not by humans but programs • REST is a style, not a standard • Typically explained by devs • New and inconsistent terminology What makes them difficult: Are APIs difficult to learn?
  • 28. RESTful API BASICS https://evolution-of-tc.com/ 28 • Easier to learn than platform APIs • Only 4 methods • Don’t require knowledge of programming languages What makes them easy: Are APIs difficult to learn?
  • 29. RESTful API BASICS How do RESTful APIs work? https://evolution-of- tc.com/ https://evolution-of- tc.com/ https://evolution-of-tc.com/ 29
  • 30. RESTful API BASICS https://evolution-of-tc.com/ 30 • The methods • The request • The response • The endpoints • Header and body • The parameters • The data format (JSON, XML) • Authentication The main things: RESTful APIs demystified
  • 31. RESTful API BASICS GET Asks the server to retrieve a resource. POST Asks the server to create (and configure) a new resource. PUT Asks the server to edit/update an existing resource. DELETE Asks the server to delete a resource. https://evolution-of-tc.com/ 31 The four main REST methods
  • 32. RESTful API BASICS Request and response structures https://evolution-of- tc.com/ https://evolution-of- tc.com/ https://evolution-of-tc.com/ 32
  • 33. Activities https://evolution-of-tc.com/ 33 Let’s try some things out! Exploring APIs • API request in the browser • Numbers API • Swagger Petstore API • Post-Shift API • Random Famous Quotes API Exploring tools • Postman • cURL • Open API specification • YAML • Stoplight
  • 34. API Documentation https://evolution-of-tc.com/ 34 What should be there in the API docs? Minimum Viable Documentation (MVD) • Schemas • Overview • Authentication • Reference • cURL examples Full documentation The MVD, plus: • Getting Started • Tutorials • SDKs and sample apps • Rate limiting and subscription plans • Quick reference • Best practices • API glossary • FAQ
  • 35. API Documentation https://evolution-of-tc.com/ 35 • MailJet • MailChimp • SendGrid Check out these API docs: Examples
  • 36. TC API EXPERTISE https://evolution-of-tc.com/ 36 • API methods • How to pass parameters in the request • How to interpret the response • The JSON data format • Postman • cURL • Open API spec • YAML • Swagger (and SwaggerHub) • Stoplight • What makes a good API documentation • How to build API reference content out of the spec • Git (and GitHub) What does it take to become a TC API expert?
  • 37. CREDITS https://evolution-of-tc.com/ 37 • ProgrammableWeb  I’d Rather Be Writing  Swagger  Kong  Mashape  Stoplight  Mailinator  MailChimp  MailJet  SendGrid  Images’ copyrights belong to their respective holders. This presentation has used material from: