Skip to content

Commit

Permalink
Merge pull request #1000 from Eastern-Research-Group/feature/778_swag…
Browse files Browse the repository at this point in the history
…ger-v3

HMW-778 Converted swagger file to OpenAPI v3
cschwinderg authored Aug 27, 2024
2 parents dcd9261 + bf22f23 commit ade51f9
Showing 1 changed file with 39 additions and 23 deletions.
62 changes: 39 additions & 23 deletions docs/hmw_swagger2.json → docs/hmw_openapi.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"swagger": "2.0",
"openapi": "3.0.1",
"info": {
"title": "US EPA How's My Waterway",
"contact": {
@@ -11,16 +11,11 @@
},
"version": "0.0.1"
},
"host": "mywaterway-stage.app.cloud.gov",
"basePath": "/",
"schemes": ["https"],
"consumes": ["application/json"],
"produces": ["application/json"],
"securityDefinitions": {
"basicAuth": {
"type": "basic"
"servers": [
{
"url": "https://mywaterway-stage.app.cloud.gov/"
}
},
],
"security": [
{
"basicAuth": []
@@ -33,8 +28,12 @@
"responses": {
"200": {
"description": "Placeholder.",
"schema": {
"$ref": "#/definitions/generic"
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/generic"
}
}
}
}
}
@@ -46,8 +45,12 @@
"responses": {
"200": {
"description": "Placeholder.",
"schema": {
"$ref": "#/definitions/generic"
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/generic"
}
}
}
}
}
@@ -59,22 +62,35 @@
"responses": {
"200": {
"description": "Placeholder.",
"schema": {
"$ref": "#/definitions/generic"
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/generic"
}
}
}
}
}
}
}
},
"definitions": {
"generic": {
"type": "object",
"properties": {
"Results": {
"type": "string"
"components": {
"schemas": {
"generic": {
"type": "object",
"properties": {
"Results": {
"type": "string"
}
}
}
},
"securitySchemes": {
"basicAuth": {
"type": "http",
"scheme": "basic"
}
}
}
},
"x-original-swagger-version": "2.0"
}

0 comments on commit ade51f9

Please sign in to comment.