-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add endpoints and parameters description #123
Conversation
@@ -40,7 +42,15 @@ public class ProfileResource { | |||
* @return the set of validation profile details | |||
*/ | |||
@GET | |||
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) | |||
@Operation(summary = "Get set of validation profile details") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get the set of validation profile details
@@ -50,7 +60,15 @@ public static Set<ProfileDetails> getProfileDetails() { | |||
*/ | |||
@GET | |||
@Path("/ids") | |||
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) | |||
@Operation(summary = "Get set of validation profile ids") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get the set of validation profile ids
@@ -60,7 +78,15 @@ public static Set<String> getProfileIds() { | |||
*/ | |||
@GET | |||
@Path("/flavours") | |||
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) | |||
@Operation(summary = "Get set of flavours") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get the set of supported PDF/A and PDF/UA flavours
@@ -73,8 +99,18 @@ public static Set<PDFAFlavour> getFlavours() { | |||
*/ | |||
@GET | |||
@Path("/{profileId}") | |||
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) | |||
public static ValidationProfile getProfile(@PathParam("profileId") String profileId) { | |||
@Operation(summary = "Get validation profile selected by id") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get the validation profile selected by id (validation flavour)
@@ -88,8 +124,18 @@ public static ValidationProfile getProfile(@PathParam("profileId") String profil | |||
*/ | |||
@GET | |||
@Path("/{profileId}/ruleids") | |||
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) | |||
public static Set<RuleId> getProfileRules(@PathParam("profileId") String profileId) { | |||
@Operation(summary = "Get set of rule ids for the selected validation profiles") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get the set of rule id's for the selected validation profiles
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) | ||
public static Set<Rule> getRulesForClause(@PathParam("profileId") String profileId, | ||
@PathParam("clause") String clause) { | ||
@Operation(summary = "Get set of rules for the selected profile and clause") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get the set of rules for the selected profile and clause
@Parameter(description = "the hex String representation of the file's SHA-1 hash") | ||
@FormDataParam("sha1Hex") String sha1Hex, | ||
@Parameter(name = "file", schema = @Schema(implementation = File.class), | ||
style = ParameterStyle.FORM, description = "an InputStream to the PDF to be validated") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an InputStream of the PDF to be validated
public static InputStream validateJson(@Parameter(description = "the String id of the Validation profile" + | ||
"(auto, 1b, 1a, 2b, 2a, 2u, 3b, 3a. 3u, 4, 4e, 4f or ua1)") | ||
@PathParam("profileId") String profileId, | ||
@Parameter(description = "an URL of PDF to be validated") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a URL of PDF to be validated
4995143
to
fa72885
Compare
fa72885
to
d937851
Compare
No description provided.