Download as PDF, PPTX











![OpenAPI Spec
…
"/pets/{petId}" : {
"get" : {
"summary" : "A call to acquire a pet",
"operationId" : "fetchPet",
"parameters" : [
{
"name" : "petId",
"in" : "path",
"schema" : {
"type" : "integer"
}
}
],
"responses" : {
"200" : {
"content" : {
"application/json" : {
"schema" : …](https://image.slidesharecdn.com/openapi-190502094508/75/Easy-REST-with-OpenAPI-12-2048.jpg)





This document discusses using OpenAPI to easily create REST APIs. It introduces OpenAPI, which allows specifying API calls and data constraints in a JSON specification. This specification can then be serialized and consumed by clients to automatically generate spec-conform requests. The document also provides a link to a GitHub repository containing an example of using OpenAPI in Pharo.











![OpenAPI Spec
…
"/pets/{petId}" : {
"get" : {
"summary" : "A call to acquire a pet",
"operationId" : "fetchPet",
"parameters" : [
{
"name" : "petId",
"in" : "path",
"schema" : {
"type" : "integer"
}
}
],
"responses" : {
"200" : {
"content" : {
"application/json" : {
"schema" : …](https://image.slidesharecdn.com/openapi-190502094508/75/Easy-REST-with-OpenAPI-12-2048.jpg)



