-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
knollfear/bcda-553 Swagger doc improvements (#86)
* Minor changes to swagger docs to make it clear how to use the authorize function and make exploring the API a little easier. * changed document title to BCDA documentation instead of swagger ui
- Loading branch information
Showing
3 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,11 @@ | |
The Beneficiary Claims Data API (BCDA) allows downloading of claims data in accordance with the FHIR Bulk Data Export specification. | ||
Terms Of Service: | ||
If you have a token you can use this page to explore the API. To do this click the green "Authorize" button below and enter "Bearer {YOUR_TOKEN}" | ||
in the "Value" field and click authorize. Until you click logout your token will be presented with every request made. To make requests click on the | ||
"Try it out" button for the desired endpoint. | ||
there are no TOS at this moment, use at your own risk we take no responsibility | ||
Schemes: http, https | ||
Host: localhost | ||
BasePath: /api/v1 | ||
Version: 1.0.0 | ||
License: https://github.com/CMSgov/bcda-app/blob/master/LICENSE.md | ||
Contact: [email protected] | ||
|
@@ -57,7 +55,7 @@ import ( | |
) | ||
|
||
/* | ||
swagger:route GET /ExplanationOfBenefit/$export bulkData bulkRequest | ||
swagger:route GET /api/v1/ExplanationOfBenefit/$export bulkData bulkRequest | ||
Start explanation of benefit export | ||
|
@@ -66,7 +64,7 @@ import ( | |
Produces: | ||
- application/fhir+json | ||
Schemes: http, https | ||
Schemes: [http, https] | ||
Security: | ||
api_key | ||
|
@@ -183,7 +181,7 @@ func bulkRequest(w http.ResponseWriter, r *http.Request) { | |
} | ||
|
||
/* | ||
swagger:route GET /jobs/{jobId} bulkData jobStatus | ||
swagger:route GET /api/v1/jobs/{jobId} bulkData jobStatus | ||
Get job status | ||
|
@@ -308,11 +306,11 @@ func jobStatus(w http.ResponseWriter, r *http.Request) { | |
} | ||
|
||
/* | ||
swagger:route GET /data/{jobId}/{filename}.ndjson bulkData serveData | ||
swagger:route GET /data/{jobId}/{filename} bulkData serveData | ||
Get data file | ||
Returns the NDJSON file of data generated by an export job. | ||
Returns the NDJSON file of data generated by an export job. Will be in the format <UUID>.ndjson. Get the full value from the job status response | ||
Produces: | ||
- application/fhir+json | ||
|
@@ -413,7 +411,7 @@ func blueButtonMetadata(w http.ResponseWriter, r *http.Request) { | |
} | ||
|
||
/* | ||
swagger:route GET /metadata metadata metadata | ||
swagger:route GET /api/v1/metadata metadata metadata | ||
Get metadata | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters