Skip to content

Commit 14def2c

Browse files
committed
Fix wrong type in browser postman tests and @RequestBody descriptions
1 parent d4f6449 commit 14def2c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dotCMS/src/main/java/com/dotcms/ai/rest/EmbeddingsResource.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public final Response textResource(@Context final HttpServletRequest request,
110110
@Consumes(MediaType.APPLICATION_JSON)
111111
public final Response embed(@Context final HttpServletRequest request,
112112
@Context final HttpServletResponse response,
113-
@RequestBody(description = "JSON Response containing time to embeddings, total to embed and index name",
113+
@RequestBody(description = "Embeddings form containing query, limit, offset, indexName, model, velocityTemplate, and fields",
114114
required = true,
115115
content = @Content(schema = @Schema(implementation = EmbeddingsForm.class)))
116116
final EmbeddingsForm embeddingsForm) {
@@ -186,7 +186,7 @@ public final Response embed(@Context final HttpServletRequest request,
186186
@Consumes(MediaType.APPLICATION_JSON)
187187
public final Response delete(@Context final HttpServletRequest request,
188188
@Context final HttpServletResponse response,
189-
@RequestBody(description = "JSON object containing deleted key",
189+
@RequestBody(description = "JSON object containing deletion criteria such as query, identifier, inode, or content type",
190190
required = true,
191191
content = @Content(schema = @Schema(type = "object", description = "Deletion criteria including query, identifier, inode, or content type")))
192192
final JSONObject json) {
@@ -244,7 +244,7 @@ public final Response delete(@Context final HttpServletRequest request,
244244
@Consumes(MediaType.APPLICATION_JSON)
245245
public final Response dropAndRecreateTables(@Context final HttpServletRequest request,
246246
@Context final HttpServletResponse response,
247-
@RequestBody(description = "JSON object with created boolean key",
247+
@RequestBody(description = "Empty JSON object to trigger table recreation",
248248
required = true,
249249
content = @Content(schema = @Schema(type = "object", description = "Empty JSON object for triggering table recreation")))
250250
final JSONObject json) {
@@ -345,7 +345,7 @@ public final Response count(@Context final HttpServletRequest request,
345345
@Consumes(MediaType.APPLICATION_JSON)
346346
public final Response count(@Context final HttpServletRequest request,
347347
@Context final HttpServletResponse response,
348-
@RequestBody(description = "JSON Object containing embeddingsCount key",
348+
@RequestBody(description = "Completion form containing search criteria for counting embeddings",
349349
required = false,
350350
content = @Content(schema = @Schema(implementation = CompletionsForm.class)))
351351
final CompletionsForm form) {

dotCMS/src/main/java/com/dotcms/auth/providers/saml/v1/DotSamlResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public Response doLogin(@Parameter(description = "Identity Provider configuratio
198198
@Produces( { MediaType.APPLICATION_XML, "text/html" } )
199199
@NoCache
200200
public void processLogin(@Parameter(description = "Identity Provider configuration ID (typically host ID)", required = true) @PathParam("idpConfigId") final String idpConfigId,
201-
@RequestBody(description = "SAML assertion response from the Identity Provider", required = true) @Context final HttpServletRequest httpServletRequest,
201+
@Context final HttpServletRequest httpServletRequest,
202202
@Context final HttpServletResponse httpServletResponse) throws IOException {
203203

204204
if (DotSamlProxyFactory.getInstance().isAnyHostConfiguredAsSAML()) {

dotcms-postman/src/main/resources/postman/Browser_Resource.postman_collection.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
"raw": "{\n\t\"showLinks\":true,\n\t\"showDotAssets\":true,\n\t\"showPages\":true,\n\t\"showFiles\":true,\n\t\"showFolders\":true,\n\t\"showWorking\":true\n}",
286286
"options": {
287287
"raw": {
288-
"language": "javascript"
288+
"language": "json"
289289
}
290290
}
291291
},
@@ -344,7 +344,7 @@
344344
"raw": "{\n\t\"showLinks\":true,\n\t\"showDotAssets\":true,\n\t\"showPages\":true,\n\t\"showFiles\":true,\n\t\"showWorking\":true\n}",
345345
"options": {
346346
"raw": {
347-
"language": "javascript"
347+
"language": "json"
348348
}
349349
}
350350
},

0 commit comments

Comments
 (0)