Skip to content

Commit

Permalink
Add edit name to orgs, depts, teams (#567)
Browse files Browse the repository at this point in the history
Resolves #547
  • Loading branch information
StevenWeathers committed Apr 9, 2024
1 parent 95683a5 commit ab9b8e7
Show file tree
Hide file tree
Showing 23 changed files with 1,223 additions and 21 deletions.
240 changes: 238 additions & 2 deletions docs/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -2020,6 +2020,71 @@ const docTemplate = `{
}
}
},
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Update organization",
"produces": [
"application/json"
],
"tags": [
"organization"
],
"summary": "Update Organization",
"parameters": [
{
"type": "string",
"description": "organization id",
"name": "orgId",
"in": "path",
"required": true
},
{
"description": "updated organization object",
"name": "organization",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/http.teamCreateRequestBody"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/http.standardJsonResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/thunderdome.Organization"
}
}
}
]
}
},
"403": {
"description": "Forbidden",
"schema": {
"$ref": "#/definitions/http.standardJsonResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/http.standardJsonResponse"
}
}
}
},
"delete": {
"security": [
{
Expand Down Expand Up @@ -2231,6 +2296,72 @@ const docTemplate = `{
}
}
},
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Update an organization department",
"produces": [
"application/json"
],
"tags": [
"organization"
],
"summary": "Update Department",
"parameters": [
{
"type": "string",
"description": "the organization ID",
"name": "orgId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the department ID",
"name": "deptId",
"in": "path",
"required": true
},
{
"description": "updated department object",
"name": "department",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/http.teamCreateRequestBody"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/http.standardJsonResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/thunderdome.Department"
}
}
}
]
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/http.standardJsonResponse"
}
}
}
},
"delete": {
"security": [
{
Expand Down Expand Up @@ -4394,6 +4525,71 @@ const docTemplate = `{
}
}
},
"put": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Updates a team",
"produces": [
"application/json"
],
"tags": [
"team"
],
"summary": "Update Team",
"parameters": [
{
"type": "string",
"description": "the team ID",
"name": "teamId",
"in": "path",
"required": true
},
{
"description": "updated team object",
"name": "team",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/http.teamCreateRequestBody"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"allOf": [
{
"$ref": "#/definitions/http.standardJsonResponse"
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/definitions/thunderdome.Team"
}
}
}
]
}
},
"403": {
"description": "Forbidden",
"schema": {
"$ref": "#/definitions/http.standardJsonResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/http.standardJsonResponse"
}
}
}
},
"delete": {
"security": [
{
Expand Down Expand Up @@ -6711,7 +6907,7 @@ const docTemplate = `{
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/thunderdome.Organization"
"$ref": "#/definitions/thunderdome.UserOrganization"
}
}
}
Expand Down Expand Up @@ -7305,7 +7501,7 @@ const docTemplate = `{
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/thunderdome.Team"
"$ref": "#/definitions/thunderdome.UserTeam"
}
}
}
Expand Down Expand Up @@ -9731,6 +9927,46 @@ const docTemplate = `{
}
}
},
"thunderdome.UserOrganization": {
"type": "object",
"properties": {
"createdDate": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"role": {
"type": "string"
},
"updatedDate": {
"type": "string"
}
}
},
"thunderdome.UserTeam": {
"type": "object",
"properties": {
"createdDate": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"role": {
"type": "string"
},
"updatedDate": {
"type": "string"
}
}
},
"thunderdome.Vote": {
"type": "object",
"properties": {
Expand Down
Loading

0 comments on commit ab9b8e7

Please sign in to comment.