Skip to content
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

Merged
merged 1 commit into from
Sep 29, 2023
Merged

Conversation

EkaterinaKomar
Copy link
Contributor

No description provided.

@@ -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")
Copy link
Contributor

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")
Copy link
Contributor

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")
Copy link
Contributor

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")
Copy link
Contributor

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")
Copy link
Contributor

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")
Copy link
Contributor

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")
Copy link
Contributor

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")
Copy link
Contributor

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

@bdoubrov bdoubrov merged commit 588ec07 into integration Sep 29, 2023
7 checks passed
@EkaterinaKomar EkaterinaKomar deleted the feature/swagger branch October 23, 2023 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants