Skip to content

Instantly share code, notes, and snippets.

@PradeepLoganathan
Last active June 21, 2020 10:11
Show Gist options
  • Select an option

  • Save PradeepLoganathan/bb954d1116cbb443693edf5cbb5c385d to your computer and use it in GitHub Desktop.

Select an option

Save PradeepLoganathan/bb954d1116cbb443693edf5cbb5c385d to your computer and use it in GitHub Desktop.
Openapi sample path object
"paths": {
"/api/candidates": {
"post": {
"tags": [
"Candidates"
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/theta.JobSeeker.Models.Core.Candidate"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/theta.JobSeeker.Models.Core.Candidate"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/theta.JobSeeker.Models.Core.Candidate"
}
}
}
},
"responses": {
"200": {
"description": "Success"
}
}
},
"get": {
"tags": [
"Candidates"
],
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/theta.JobSeeker.Repository.Core.Candidate"
}
}
},
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/theta.JobSeeker.Repository.Core.Candidate"
}
}
},
"text/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/theta.JobSeeker.Repository.Core.Candidate"
}
}
},
"application/xml": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/theta.JobSeeker.Repository.Core.Candidate"
}
}
},
"text/xml": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/theta.JobSeeker.Repository.Core.Candidate"
}
}
}
}
}
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment