Skip to content

Commit

Permalink
#30771 add swagger schema
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinogiardino committed Nov 26, 2024
1 parent e9c8559 commit 2718697
Showing 1 changed file with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package com.dotcms.rest.api.v1.content._import;

import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "Schema for content import parameters.")
public class ContentImportParamsSchema {

@Schema(
description = "The CSV file to import.",
type = "string",
format = "binary",
required = true
)
private String file;

@Schema(
description = "JSON string representing import settings.",
type = "string",
required = true,
example = "{\n" +
" \"contentType\": \"activity\",\n" +
" \"language\": \"en-US\",\n" +
" \"workflowActionId\": \"1234\",\n" +
" \"fields\": [\"title\"]\n" +
"}"
)
private String form;

public String getFile() {
return file;
}

public void setFile(String file) {
this.file = file;
}

public String getForm() {
return form;
}

public void setForm(String form) {
this.form = form;
}
}

0 comments on commit 2718697

Please sign in to comment.