updated swagger description
This commit is contained in:
@@ -34,7 +34,81 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"paths": {
|
"paths": {
|
||||||
"/authenticate": {
|
"/register/step_1": {
|
||||||
|
"post": {
|
||||||
|
"tags": [
|
||||||
|
"auth-controller"
|
||||||
|
],
|
||||||
|
"summary": "doRegisterStep1",
|
||||||
|
"operationId": "doRegisterStep1UsingPOST",
|
||||||
|
"consumes": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"produces": [
|
||||||
|
"*/*"
|
||||||
|
],
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"in": "body",
|
||||||
|
"name": "request",
|
||||||
|
"description": "request",
|
||||||
|
"required": true,
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/RegisterStep1Request"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "OK",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/CustomerResponse"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"description": "Validation error"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"/register/step_2": {
|
||||||
|
"post": {
|
||||||
|
"tags": [
|
||||||
|
"auth-controller"
|
||||||
|
],
|
||||||
|
"summary": "doRegisterStep1",
|
||||||
|
"operationId": "doRegisterStep1UsingPOST",
|
||||||
|
"consumes": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"produces": [
|
||||||
|
"*/*"
|
||||||
|
],
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"in": "body",
|
||||||
|
"name": "request",
|
||||||
|
"description": "request",
|
||||||
|
"required": true,
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/RegisterStep2Request"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"200": {
|
||||||
|
"description": "OK",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/CustomerResponse"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"description": "Validation error"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"/login": {
|
||||||
"post": {
|
"post": {
|
||||||
"tags": [
|
"tags": [
|
||||||
"auth-controller"
|
"auth-controller"
|
||||||
@@ -217,7 +291,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"CustomerInfo": {
|
"CustomerInfo": {
|
||||||
"required": [ "email", "ssn", "phoneNumber", "address" ],
|
"required": [ "email" ],
|
||||||
"properties": {
|
"properties": {
|
||||||
"email": {
|
"email": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@@ -274,6 +348,34 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"RegisterStep1Request": {
|
||||||
|
"required": [ "email" ],
|
||||||
|
"properties": {
|
||||||
|
"firstName": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"lastName": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"email": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"RegisterStep2Request": {
|
||||||
|
"required": [ "ssn", "phoneNumber" ],
|
||||||
|
"properties": {
|
||||||
|
"ssn": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"phoneNumber": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"address": {
|
||||||
|
"$ref": "#/definitions/Address"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"Address": {
|
"Address": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"street1": {
|
"street1": {
|
||||||
|
|||||||
Reference in New Issue
Block a user