removed personal / company details in the example swagger

This commit is contained in:
hongwei 2020-03-30 07:09:44 +02:00
parent 56968dba18
commit 8435a86348
2 changed files with 13 additions and 13 deletions

View File

@ -367,11 +367,11 @@ object ExampleValue {
| "swagger": "2.0",
| "info": {
| "version": "0.0.1",
| "title": "Portus EVS sandbox demo API",
| "description": "Portus EVS sandbox demo API",
| "title": "Example Title",
| "description": "Example Description",
| "contact": {
| "name": "Digital & FinTech, Grant Thornton",
| "email": "peng.xu@ie.gt.com",
| "name": "Example Company",
| "email": " simon@example.com",
| "url": "https://www.tesobe.com/"
| }
| },

View File

@ -72,9 +72,9 @@ class DynamicEndpointsTest extends V400ServerSetup {
responseWithRole.code should equal(201)
responseWithRole.body.toString contains("dynamic_endpoint_id") should be (true)
responseWithRole.body.toString contains("swagger_string") should be (true)
responseWithRole.body.toString contains("Portus EVS sandbox demo API") should be (true)
responseWithRole.body.toString contains("content user-friendly error message") should be (true)
responseWithRole.body.toString contains("create user successful and return created user object") should be (true)
responseWithRole.body.toString contains("Example Title") should be (true)
responseWithRole.body.toString contains("Example Description") should be (true)
responseWithRole.body.toString contains("Example Company") should be (true)
}
}
@ -123,9 +123,9 @@ class DynamicEndpointsTest extends V400ServerSetup {
val request400 = (v4_0_0_Request / "management" / "dynamic-endpoints").GET<@ (user1)
val response400 = makeGetRequest(request400)
response400.code should be (200)
response400.body.toString contains("Portus EVS sandbox demo API") should be (true)
response400.body.toString contains("content user-friendly error message") should be (true)
response400.body.toString contains("create user successful and return created user object") should be (true)
response400.body.toString contains("Example Title") should be (true)
response400.body.toString contains("Example Description") should be (true)
response400.body.toString contains("Example Company") should be (true)
}
}
@ -179,9 +179,9 @@ class DynamicEndpointsTest extends V400ServerSetup {
response400.code should be (200)
response400.body.toString contains("dynamic_endpoint_id") should be (true)
response400.body.toString contains("swagger_string") should be (true)
response400.body.toString contains("Portus EVS sandbox demo API") should be (true)
response400.body.toString contains("content user-friendly error message") should be (true)
response400.body.toString contains("create user successful and return created user object") should be (true)
response400.body.toString contains("Example Title") should be (true)
response400.body.toString contains("Example Description") should be (true)
response400.body.toString contains("Example Company") should be (true)
}
}