diff --git a/app/swagger/digifi_swagger.json b/app/swagger/digifi_swagger.json index 6d2a195..c573cfb 100644 --- a/app/swagger/digifi_swagger.json +++ b/app/swagger/digifi_swagger.json @@ -77,6 +77,14 @@ "description": "Find out more", "url": "https://www.simbrellang.net" } + }, + { + "name": "Authorize", + "description": "This new feature will be used for authorizing customers.", + "externalDocs": { + "description": "Find out more", + "url": "https://www.simbrellang.net" + } } ], "paths": { @@ -100,6 +108,9 @@ }, "/NotificationCallback": { "$ref": "swagger/paths/NotificationCallback.json" + }, + "/Authorize": { + "$ref": "swagger/paths/Authorize.json" } }, "components": { @@ -142,12 +153,15 @@ }, "ApiResponse": { "$ref": "swagger/schemas/ApiResponse.json" + }, + "AuthorizeResponse": { + "$ref": "swagger/schemas/AuthorizeResponse.json" } }, "securitySchemes": { "basicAuth": { - "type": "http", - "scheme": "basic" + "type": "http", + "scheme": "basic" } } }, @@ -156,4 +170,4 @@ "basicAuth": [] } ] -} \ No newline at end of file +} diff --git a/app/swagger/schemas/AuthorizeRequest.json b/app/swagger/schemas/AuthorizeRequest.json new file mode 100644 index 0000000..9d9a7ca --- /dev/null +++ b/app/swagger/schemas/AuthorizeRequest.json @@ -0,0 +1,16 @@ +{ + "type": "object", + "properties": { + "username": { + "type": "string", + "example": "username" + }, + "password": { + "type": "string", + "example": "password" + } + }, + "xml": { + "name": "AuthorizeRequest" + } +} diff --git a/app/swagger/schemas/AuthorizeResponse.json b/app/swagger/schemas/AuthorizeResponse.json new file mode 100644 index 0000000..8a0f7b6 --- /dev/null +++ b/app/swagger/schemas/AuthorizeResponse.json @@ -0,0 +1,16 @@ +{ + "type": "object", + "properties": { + "resultCode": { + "type": "string", + "example": "00" + }, + "resultDescription": { + "type": "string", + "example": "Successful" + } + }, + "xml": { + "name": "AuthorizeResponse" + } +}