Skip to content

Commit

Permalink
Fix error code for profiles endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Mar 25, 2024
1 parent b97b653 commit 0dc4f1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/purge-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Delete all PR containers older than a week
uses: snok/container-retention-policy@v2
with:
image-names: verapdf-rest, rest
image-names: rest
cut-off: 1 week ago UTC
account-type: org
org-name: veraPDF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static ComponentDetails getDetails() {
@Content(mediaType = "text/html", schema = @Schema(implementation = BatchSummary.class)) }) })
@Consumes(MediaType.MULTIPART_FORM_DATA)
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON, MediaType.TEXT_HTML })
public static Response validateXml(
public static Response validate(
@Parameter(description = PARAM_PROFILE_DESC) @PathParam("profileId") String profileId,
@Parameter(description = "the hex String representation of the file's SHA-1 hash", required = false, allowEmptyValue = true) @FormDataParam("sha1Hex") String sha1Hex,
@Parameter(name = "file", schema = @Schema(implementation = File.class), style = ParameterStyle.FORM, description = "a PDF file uploaded to be validated") @FormDataParam("file") InputStream uploadedInputStream,
Expand All @@ -139,7 +139,7 @@ public static Response validateXml(
@Content(mediaType = "text/html", schema = @Schema(implementation = BatchSummary.class)) }) })
@Consumes(MediaType.MULTIPART_FORM_DATA)
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON, MediaType.TEXT_HTML })
public static Response validateXml(
public static Response validate(
@Parameter(description = PARAM_PROFILE_DESC) @PathParam("profileId") String profileId,
@Parameter(description = "a URL that resolves to PDF resource to be validated") @FormDataParam("url") String urlLink,
@Parameter(name = FILE_SIZE_HEADER, description = PARAM_FILE_SIZE_DESC) @HeaderParam(FILE_SIZE_HEADER) Integer fileSize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
</form>
<div>
<h4>Disclaimer</h4>
<p>This demo service is based on the offical veraPDF Docker image <a href="https://hub.docker.com/r/verapdf/rest" target="_blank">veraPDF/rest</a> and is
<p>This demo service is based on the official veraPDF Docker image <a href="https://hub.docker.com/r/verapdf/rest" target="_blank">veraPDF/rest</a> and is
only intended to be used for testing. More details on the configuration of this service and tweaking its parameters for production use can be found at
<a href="https://github.com/verapdf/verapdf-rest" target="_blank">https://github.com/verapdf/verapdf-rest</a>.</p>
<h4>Supported validation profiles</h4>
Expand Down

0 comments on commit 0dc4f1f

Please sign in to comment.