Skip to content

Commit fc6b610

Browse files
jhutarlampajr
authored andcommitted
docs: Add a note that label id is only required when updating label
1 parent 85482d8 commit fc6b610

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/site/content/en/openapi/openapi.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,8 @@ paths:
15511551
post:
15521552
tags:
15531553
- Schema
1554-
description: Save new or update existing Label for a Schema
1554+
description: Save new or update existing Label for a Schema (Label id only required
1555+
when updating existing one)
15551556
operationId: addOrUpdateLabel
15561557
parameters:
15571558
- name: schemaId

horreum-api/src/main/java/io/hyperfoil/tools/horreum/api/services/SchemaService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ int addOrUpdateTransformer(@PathParam("schemaId") int schemaId,
168168
@POST
169169
@Path("{schemaId}/labels")
170170
@Consumes(MediaType.APPLICATION_JSON)
171-
@Operation(description = "Save new or update existing Label for a Schema")
171+
@Operation(description = "Save new or update existing Label for a Schema (Label id only required when updating existing one)")
172172
@Parameters(value = {
173173
@Parameter(name = "schemaId", description = "Schema ID", example = "101"),
174174
})

0 commit comments

Comments
 (0)