Protecting Created Date, updating docs, changin errors to JSON
This commit is contained in:
@ -657,7 +657,7 @@
|
||||
"tags": [
|
||||
"user"
|
||||
],
|
||||
"description": "create CompanyUser",
|
||||
"description": "Create a new CompanyUser and his user company mapping",
|
||||
"operationId": "CompanyUserController.Post",
|
||||
"parameters": [
|
||||
{
|
||||
@ -680,6 +680,23 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/deletecompany": {
|
||||
"delete": {
|
||||
"tags": [
|
||||
"user"
|
||||
],
|
||||
"description": "Delete the entire Company",
|
||||
"operationId": "CompanyUserController.Delete Company",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{string} delete success!"
|
||||
},
|
||||
"403": {
|
||||
"description": "failed"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/user/{id}": {
|
||||
"get": {
|
||||
"tags": [
|
||||
|
@ -438,7 +438,7 @@ paths:
|
||||
post:
|
||||
tags:
|
||||
- user
|
||||
description: create CompanyUser
|
||||
description: Create a new CompanyUser and his user company mapping
|
||||
operationId: CompanyUserController.Post
|
||||
parameters:
|
||||
- in: body
|
||||
@ -511,6 +511,17 @@ paths:
|
||||
description: '{string} delete success!'
|
||||
"403":
|
||||
description: id is empty
|
||||
/user/deletecompany:
|
||||
delete:
|
||||
tags:
|
||||
- user
|
||||
description: Delete the entire Company
|
||||
operationId: CompanyUserController.Delete Company
|
||||
responses:
|
||||
"200":
|
||||
description: '{string} delete success!'
|
||||
"403":
|
||||
description: failed
|
||||
definitions:
|
||||
models.Auth:
|
||||
title: Auth
|
||||
|
Reference in New Issue
Block a user