Added tag ref
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
"content": {
"application/json": {
"schema": {
- "type": "object",
- "properties": {
- "id": {
- "type": "string",
- "example": "T12345678"
- },
- "userID": {
- "type": "string",
- "example": "5db815731fdcb70006e0a8ce"
- },
- "issuer": {
- "type": "boolean",
- "example": true
- },
- "active": {
- "type": "boolean",
- "example": true
- },
- "description": {
- "type": "string",
- "example": "Badge description"
- },
- "default": {
- "type": "boolean",
- "example": true
- }
- }
+ "$ref": "#/components/schemas/Tag"
}
}
}
"$ref": "#/components/parameters/tagID"
}
],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Tag"
+ }
+ }
+ }
+ },
"tags": [
"Tags"
],
"content": {
"application/json": {
"example": {
- "userID": "###",
- "issuer": true,
- "active": true,
- "description": "###########",
- "default": true,
- "user": {
- "email": "###",
- "firstName": "###",
- "name": "###",
- "id": "###"
- },
- "id": "###"
+ "status": "Success"
}
}
}
},
"550": {
"$ref": "#/components/responses/ResourceDoesNotExists"
+ },
+ "575": {
+ "$ref": "#/components/responses/TagHasTransactionsError"
}
}
}
},
"ResourceDoesNotExists": {
"description": "Resource does not exist"
+ },
+ "TagHasTransactionsError": {
+ "description": "Cannot change user or delete a tag having transactions"
}
},
"schemas": {
"Tag": {
"type": "object",
"properties": {
+ "id": {
+ "type": "string",
+ "example": "T12345678"
+ },
"userID": {
"type": "string",
- "example": "###"
+ "example": "5db815731fdcb70006e0a8ce"
},
"issuer": {
"type": "boolean",

Added tag ref