SlideShare a Scribd company logo
1 of 21
API
Documentation
Your best quote that reflects your
approach… “It’s one small step for
man, one giant leap for mankind.”
- NEIL ARMSTRONG
What is API
API stands for application programming interface, which is a set of definitions and protocols
for building and integrating application software.
Generating API documentation
◦ The API Builder provides one place to view, create, and manage all of your API's documentation
Sending your first request
•Send a request to an endpoint, retrieve data from a data source, or test an API's functionality.
•Create a new request and select Send, and the API response appears right inside Postman.
API requests defined
•APIs provide a structured way for one application to access the capabilities of another
application
•A client application (like a mobile app) sends a request to the server, and after the request
processes the server returns a response to the client.
•A request includes the URL of the API endpoint and an HTTP request method. The method
indicates the action you want the API to perform.
• GET retrieves data from an API.
• POST sends new data to an API.
• PATCH and PUT update existing data.
• DELETE removes existing data.
Sending a Request
•Select + in the workbench to open a new tab
•Enter postman-echo.com/get for the request URL.
•Select Send.
• Postman displays the response data sent from the server in the lower pane.
What Happend
•Postman sent a GET request to the Postman Echo API server located at postman-echo.com.
•The API server received the request, processed it, and returned a response to Postman.
•Postman received the response and displayed it in the Response pane.
•You used Postman to send an API request and got a response from the API server.
• What is API Documentation
• What are the benefits from using APIs?
• How does an API Work?
• Who and How creates the API and the API Documentation
• Which tools to use to try an API or to automatically generate API Documentation
What is an API?
APIs stands for an application programming interface
The API allows two different software applications to interact with each other. Using the API, these applications can
exchange data in a reliable way.
PUT A IMAGE of API
Benefits from using an API?
By using an API, the applications can gain immediate access to software modules and functionality that is already
developed by another application. This way you can leverage and reuse existing functionality from another application in
the context of your own app, allows you to offer more functionality to your customers.
How does an API Work?
When using an API, an applications first sends a request to use the functionality. The receiving application performs all
the work and in the end, returns a response.
Who creates API and API Documentation?
Usually, you must be the developer who created the API to be able to explain how the API works. Usually, the technical
writers are not developers, but are a part of the team of developers who creates the API.
As a consequence as a technical writer would focus on writing documentation about using the API.
What is an API Documentation?
• What the API can do for me? What functionality does it offer and what work can it do for my application?
It’s a piece of documentation. Once the API is developed and the writer doesn’t know what is the API being
developed and what is the function of it.
• How to connect to the API?
• How to authenticate myself, once connected to the API?
• What are the types of requests I can send to this API? What are their parameters?
• What are the types of responses I can expect to receive once the API requests is being processed? What will be the
result I can expect to get in the end?
Types of APIs
• “Standard” API- direct connection protocol
• Web API- transfers the request and response via HTTP ( Hypertext Transfer Protocol) on the WEB
Who reads API Documentation?
Documentation about the API is what I call “developers documentation” – It is for a target audience of Software
developers. To properly use the API, developers need to know the technical details of API.
Note, that the end users would not need API documentation; for them you provide end user guides where you aim
to reduce technical details and implementation information.
Examples of API Documentation
https://stripe.com/docs/api
Stripe is cited frequently as one the best examples of a high-quality API documentation
SAP’s API documentation sample:
https://api.sap.com/api/storage_manager/resource
User Swagger tool to auto create API Documenation
Link: https://swagger.io/solutions/api-documentation/
API Documentation –Framework
Where to start- First step is to automatically generate documentation from the API design annotations themselves.
What is a tech writer to do next ? Write the rest of the documentation!
What is the information you must provide in your API documentation to complement the automatically generated
one make it a great user experience:
• How to access the API?
• What types of requests the API accepts?
• What types of responses the API returns?

More Related Content

What's hot

What's hot (20)

Designing APIs with OpenAPI Spec
Designing APIs with OpenAPI SpecDesigning APIs with OpenAPI Spec
Designing APIs with OpenAPI Spec
 
C# REST API
C# REST APIC# REST API
C# REST API
 
API documentation
API documentationAPI documentation
API documentation
 
Api application programming interface
Api application programming interfaceApi application programming interface
Api application programming interface
 
Api Testing
Api TestingApi Testing
Api Testing
 
API for Beginners
API for BeginnersAPI for Beginners
API for Beginners
 
Web API Basics
Web API BasicsWeb API Basics
Web API Basics
 
Introduction to the Web API
Introduction to the Web APIIntroduction to the Web API
Introduction to the Web API
 
Web API 2 Token Based Authentication
Web API 2 Token Based AuthenticationWeb API 2 Token Based Authentication
Web API 2 Token Based Authentication
 
REST API
REST APIREST API
REST API
 
Building APIs with the OpenApi Spec
Building APIs with the OpenApi SpecBuilding APIs with the OpenApi Spec
Building APIs with the OpenApi Spec
 
Rest API with Swagger and NodeJS
Rest API with Swagger and NodeJSRest API with Swagger and NodeJS
Rest API with Swagger and NodeJS
 
C# ASP.NET WEB API APPLICATION DEVELOPMENT
C# ASP.NET WEB API APPLICATION DEVELOPMENTC# ASP.NET WEB API APPLICATION DEVELOPMENT
C# ASP.NET WEB API APPLICATION DEVELOPMENT
 
REST-API introduction for developers
REST-API introduction for developersREST-API introduction for developers
REST-API introduction for developers
 
API Docs with OpenAPI 3.0
API Docs with OpenAPI 3.0API Docs with OpenAPI 3.0
API Docs with OpenAPI 3.0
 
Web api
Web apiWeb api
Web api
 
What's an api
What's an apiWhat's an api
What's an api
 
Api types
Api typesApi types
Api types
 
Api-First service design
Api-First service designApi-First service design
Api-First service design
 
API Presentation
API PresentationAPI Presentation
API Presentation
 

Similar to API Documentation.pptx

API-Consumption compressed (1)
API-Consumption compressed (1)API-Consumption compressed (1)
API-Consumption compressed (1)
Rahul Ghai
 

Similar to API Documentation.pptx (20)

Apiw.pptx
Apiw.pptxApiw.pptx
Apiw.pptx
 
Top 20 API Testing Interview Questions.pdf
Top 20 API Testing Interview Questions.pdfTop 20 API Testing Interview Questions.pdf
Top 20 API Testing Interview Questions.pdf
 
Effective API Design
Effective API DesignEffective API Design
Effective API Design
 
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
 
A_Complete_Guide_to_API_Development.pdf
A_Complete_Guide_to_API_Development.pdfA_Complete_Guide_to_API_Development.pdf
A_Complete_Guide_to_API_Development.pdf
 
Best practices and advantages of REST APIs
Best practices and advantages of REST APIsBest practices and advantages of REST APIs
Best practices and advantages of REST APIs
 
AWS API Gateway
AWS API GatewayAWS API Gateway
AWS API Gateway
 
INTERFACE, by apidays - How to Win Friends and Influence People with API First
INTERFACE, by apidays - How to Win Friends and Influence People with API FirstINTERFACE, by apidays - How to Win Friends and Influence People with API First
INTERFACE, by apidays - How to Win Friends and Influence People with API First
 
API-Consumption compressed (1)
API-Consumption compressed (1)API-Consumption compressed (1)
API-Consumption compressed (1)
 
Smartone v1.0
Smartone v1.0Smartone v1.0
Smartone v1.0
 
How to design effective APIs
How to design effective APIsHow to design effective APIs
How to design effective APIs
 
Guide To API Development – Cost, Importance, Types, Tools, Terminology, and B...
Guide To API Development – Cost, Importance, Types, Tools, Terminology, and B...Guide To API Development – Cost, Importance, Types, Tools, Terminology, and B...
Guide To API Development – Cost, Importance, Types, Tools, Terminology, and B...
 
API (Application program interface)
API (Application program interface)API (Application program interface)
API (Application program interface)
 
Api design part 1
Api design part 1Api design part 1
Api design part 1
 
How To Get Started With API Testing In Your Organization.pdf
How To Get Started With API Testing In Your Organization.pdfHow To Get Started With API Testing In Your Organization.pdf
How To Get Started With API Testing In Your Organization.pdf
 
API Versioning for Zero Downtime | Devoxx Belgium 2017
API Versioning for Zero Downtime | Devoxx Belgium 2017API Versioning for Zero Downtime | Devoxx Belgium 2017
API Versioning for Zero Downtime | Devoxx Belgium 2017
 
Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...
Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...
Understanding API Architectures: Web API vs. Minimal API – An In-Depth Compar...
 
Api Testing.pdf
Api Testing.pdfApi Testing.pdf
Api Testing.pdf
 
Moving into API documentation writing
Moving into API documentation writingMoving into API documentation writing
Moving into API documentation writing
 
Webservicex.pdf
Webservicex.pdfWebservicex.pdf
Webservicex.pdf
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Recently uploaded (20)

On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 

API Documentation.pptx

  • 2. Your best quote that reflects your approach… “It’s one small step for man, one giant leap for mankind.” - NEIL ARMSTRONG
  • 3. What is API API stands for application programming interface, which is a set of definitions and protocols for building and integrating application software.
  • 4. Generating API documentation ◦ The API Builder provides one place to view, create, and manage all of your API's documentation
  • 5. Sending your first request •Send a request to an endpoint, retrieve data from a data source, or test an API's functionality. •Create a new request and select Send, and the API response appears right inside Postman.
  • 6. API requests defined •APIs provide a structured way for one application to access the capabilities of another application •A client application (like a mobile app) sends a request to the server, and after the request processes the server returns a response to the client. •A request includes the URL of the API endpoint and an HTTP request method. The method indicates the action you want the API to perform. • GET retrieves data from an API. • POST sends new data to an API. • PATCH and PUT update existing data. • DELETE removes existing data.
  • 7. Sending a Request •Select + in the workbench to open a new tab •Enter postman-echo.com/get for the request URL. •Select Send. • Postman displays the response data sent from the server in the lower pane.
  • 8.
  • 9. What Happend •Postman sent a GET request to the Postman Echo API server located at postman-echo.com. •The API server received the request, processed it, and returned a response to Postman. •Postman received the response and displayed it in the Response pane. •You used Postman to send an API request and got a response from the API server.
  • 10.
  • 11.
  • 12. • What is API Documentation • What are the benefits from using APIs? • How does an API Work? • Who and How creates the API and the API Documentation • Which tools to use to try an API or to automatically generate API Documentation
  • 13. What is an API? APIs stands for an application programming interface The API allows two different software applications to interact with each other. Using the API, these applications can exchange data in a reliable way. PUT A IMAGE of API
  • 14. Benefits from using an API? By using an API, the applications can gain immediate access to software modules and functionality that is already developed by another application. This way you can leverage and reuse existing functionality from another application in the context of your own app, allows you to offer more functionality to your customers.
  • 15. How does an API Work? When using an API, an applications first sends a request to use the functionality. The receiving application performs all the work and in the end, returns a response.
  • 16. Who creates API and API Documentation? Usually, you must be the developer who created the API to be able to explain how the API works. Usually, the technical writers are not developers, but are a part of the team of developers who creates the API. As a consequence as a technical writer would focus on writing documentation about using the API.
  • 17. What is an API Documentation? • What the API can do for me? What functionality does it offer and what work can it do for my application? It’s a piece of documentation. Once the API is developed and the writer doesn’t know what is the API being developed and what is the function of it. • How to connect to the API? • How to authenticate myself, once connected to the API? • What are the types of requests I can send to this API? What are their parameters? • What are the types of responses I can expect to receive once the API requests is being processed? What will be the result I can expect to get in the end?
  • 18. Types of APIs • “Standard” API- direct connection protocol • Web API- transfers the request and response via HTTP ( Hypertext Transfer Protocol) on the WEB
  • 19. Who reads API Documentation? Documentation about the API is what I call “developers documentation” – It is for a target audience of Software developers. To properly use the API, developers need to know the technical details of API. Note, that the end users would not need API documentation; for them you provide end user guides where you aim to reduce technical details and implementation information. Examples of API Documentation https://stripe.com/docs/api Stripe is cited frequently as one the best examples of a high-quality API documentation SAP’s API documentation sample: https://api.sap.com/api/storage_manager/resource
  • 20. User Swagger tool to auto create API Documenation Link: https://swagger.io/solutions/api-documentation/
  • 21. API Documentation –Framework Where to start- First step is to automatically generate documentation from the API design annotations themselves. What is a tech writer to do next ? Write the rest of the documentation! What is the information you must provide in your API documentation to complement the automatically generated one make it a great user experience: • How to access the API? • What types of requests the API accepts? • What types of responses the API returns?