SlideShare une entreprise Scribd logo
1  sur  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:

Contenu connexe

Tendances

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
 

Tendances (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
 

Similaire à 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
 
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
 
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
 
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
 

Similaire à 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
 
Are REST APIs Still Relevant Today?
Are REST APIs Still Relevant Today?Are REST APIs Still Relevant Today?
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?
Austin API Summit 2018: 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
 

Dernier

OpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full Recording
OpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full RecordingOpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full Recording
OpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full RecordingShane Coughlan
 
Not a Kubernetes fan? The state of PaaS in 2024
Not a Kubernetes fan? The state of PaaS in 2024Not a Kubernetes fan? The state of PaaS in 2024
Not a Kubernetes fan? The state of PaaS in 2024Anthony Dahanne
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...confluent
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxRTS corp
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...OnePlan Solutions
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldRoberto Pérez Alcolea
 
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesAmazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesKrzysztofKkol1
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalLionel Briand
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfRTS corp
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorTier1 app
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Developmentvyaparkranti
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 
Introduction to Firebase Workshop Slides
Introduction to Firebase Workshop SlidesIntroduction to Firebase Workshop Slides
Introduction to Firebase Workshop Slidesvaideheekore1
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...OnePlan Solutions
 
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxReal-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxRTS corp
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Cizo Technology Services
 
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonLeveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonApplitools
 
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingOpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingShane Coughlan
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringHironori Washizaki
 

Dernier (20)

OpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full Recording
OpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full RecordingOpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full Recording
OpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full Recording
 
Not a Kubernetes fan? The state of PaaS in 2024
Not a Kubernetes fan? The state of PaaS in 2024Not a Kubernetes fan? The state of PaaS in 2024
Not a Kubernetes fan? The state of PaaS in 2024
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
 
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
Tech Tuesday Slides - Introduction to Project Management with OnePlan's Work ...
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository world
 
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilitiesAmazon Bedrock in Action - presentation of the Bedrock's capabilities
Amazon Bedrock in Action - presentation of the Bedrock's capabilities
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive Goal
 
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdfEnhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
Enhancing Supply Chain Visibility with Cargo Cloud Solutions.pdf
 
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News UpdateVictoriaMetrics Q1 Meet Up '24 - Community & News Update
VictoriaMetrics Q1 Meet Up '24 - Community & News Update
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryError
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Development
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 
Introduction to Firebase Workshop Slides
Introduction to Firebase Workshop SlidesIntroduction to Firebase Workshop Slides
Introduction to Firebase Workshop Slides
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
 
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptxReal-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
Real-time Tracking and Monitoring with Cargo Cloud Solutions.pptx
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
 
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonLeveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
 
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full RecordingOpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
OpenChain AI Study Group - Europe and Asia Recap - 2024-04-11 - Full Recording
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their Engineering
 

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: