Renamed swagger file
RENAME
src/assets/server/rest/v1/docs/open-api-standard.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
"properties": {
"email": {
"type": "string",
- "example": "loan.alouache@sap.com"
+ "example": "firstname.name@sap.com"
},
"password": {
"type": "string",
"properties": {
"email": {
"type": "string",
- "example": "loan.alouache@sap.com"
+ "example": "firstname.name@sap.com"
},
"name": {
"type": "string",
"properties": {
"email": {
"type": "string",
- "example": "loan.alouache@sap.com"
+ "example": "firstname.name@sap.com"
},
"captcha": {
"type": "string",
"properties": {
"email": {
"type": "string",
- "example": "loan.alouache@sap.com"
+ "example": "firstname.name@sap.com"
},
"tenant": {
"type": "string",

MODIFY
src/server/rest/v1/router/doc/SwaggerRouter.ts
src/server/rest/v1/router/doc/SwaggerRouter.ts
@@ -15,7 +15,7 @@ export default class SwaggerRouter {
}
public buildRoutes(): express.Router {
- const oasDocument = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/docs/open-api-standard.json`, 'utf8'));
+ const oasDocument = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/docs/e-mobility-oas.json`, 'utf8'));
this.router.use('/', swaggerUi.serve);
this.router.get('/', swaggerUi.setup(oasDocument, options));
return this.router;

Renamed swagger file