Add entitytypes delete method

This commit is contained in:
Matthew Kilgore
2025-09-11 22:18:15 -04:00
parent c0cb5794f3
commit ab1fd674ee
9 changed files with 119 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -746,6 +746,11 @@ definitions:
- isLocation
- name
type: object
repo.EntityTypeDelete:
properties:
replacementId:
$ref: '#/definitions/uuid.NullUUID'
type: object
repo.EntityTypeUpdate:
properties:
color:
@@ -1441,6 +1446,14 @@ definitions:
- DefaultRole
- RoleUser
- RoleOwner
uuid.NullUUID:
properties:
uuid:
type: string
valid:
description: Valid is true if UUID is not NULL
type: boolean
type: object
v1.APISummary:
properties:
allowRegistration:
@@ -1871,6 +1884,27 @@ paths:
tags:
- EntityTypes
/v1/entitytype/{id}:
delete:
parameters:
- description: Entity Type ID
in: path
name: id
required: true
type: string
- description: Entity Type Delete Options
in: body
name: payload
required: true
schema:
$ref: '#/definitions/repo.EntityTypeDelete'
responses:
"204":
description: No Content
security:
- Bearer: []
summary: Delete Entity Type
tags:
- EntityTypes
get:
parameters:
- description: Entity Type ID