Writing REST APIs with OpenAPI and Swagger Ada
[Pages:37]Writing REST APIs with OpenAPI and Swagger Ada
St?phane Carrez
FOSDEM 2018
OpenAPI and Swagger Ada
Introduction to OpenAPI and Swagger Writing a REST Ada client Writing a REST Ada server Handling security with OAuth2 Demo
2
30 years of RPC
Sun RPC (RFC 1057) in 1988 CORBA IDL in 1991 Ada95 Distributed Annex E in 1995 Java RMI in 2000 WSDL and SOAP in 2000 Google gRPC with Protocol Buffers since 2001
3
30 years but same goals
Simplify the developer's job Describe the protocol between client & server Generate client stubs and server skeleton Handle and hide communication details Document the client & server interaction
4
Why REST and OpenAPI?
REST as an alternative to SOAP since 2000
(Roy Thomas Fielding)
Easier to use, write, implement, debug Can easily be used from browsers Increasing usage of REST with mobile applications Need for description, documentation Need for client language bindings
5
OpenAPI Specification
Started in 2010 to describe REST APIs OpenAPI Initiative created in Nov 5, 2015
(Google, Microsoft, IBM, Paypal, ...) OpenAPI 3.0 released July 26, 2017
6
OpenAPI 2.0 Document Structure
info
YAML or JSON file with well defined keywords
host basePath schemes
security securityDefinitions
Describes security aspects
produces
consumes
paths
tags
externalDocs
definitions parameters responses
What the API accepts as input, what it produces
Describes REST APIs paths, operations, can reference definitions, parameters, responses
Describes data types, parameters, responses
7
OpenAPI benefits
info
host basePath schemes
security securityDefinitions
produces
consumes
paths
tags
externalDocs
definitions parameters responses
Documentation Online Documentation
Client Binding
Server Skeleton
Server Configuration
API Validation
8
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- generate pdf from swagger api documentation
- rest api schedmd
- writing rest apis with openapi and swagger ada
- docker asset tracker codec v1
- dotnet swagger tofile
- restful services imag
- understanding restful apis and documenting them with swagger
- drive new business opportunities through naturally restful
- kubernetes resources reference from the openapi
- api calls how to use
Related searches
- mortgage calculator with taxes and insurance
- english words with meaning and sentence
- words with synonym and antonym
- dictionary with synonyms and antonyms
- passage with questions and answers
- mortgage calculator with taxes and insur
- mortgage calculator with taxes and pmi
- auto loan calculator with interest and tax
- comprehension with questions and answers
- car payment calculator with interest and tax
- help with grammar and writing
- writing an essay with citations