Skip to content

Instantly share code, notes, and snippets.

@hansenms
Created February 19, 2019 05:19
Show Gist options
  • Save hansenms/2cf6692186d98084343020244b2affaf to your computer and use it in GitHub Desktop.
Save hansenms/2cf6692186d98084343020244b2affaf to your computer and use it in GitHub Desktop.
Example OpenAPI description
{
"openapi": "3.0.0",
"servers": [
{
"url": "myserver.fhir.org"
}
],
"paths": {
"/Patient/{id}": {
"get": {
"operationId": "GetPatientById",
"summary": "Get patient by Id",
"parameters": [
{
"name": "id",
"schema": {
"type": "string"
},
"in": "path",
"description": "id of resource",
"required": true
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"$ref": "https://build.fhir.org/fhir.schema.json#/definitions/Patient"
}
}
}
}
}
}
}
},
"info": {
"description": "My FHIR Server",
"title": "MyFhirServer",
"version": "3.0.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment