Skip to content

Commit

Permalink
Update return types in OpenAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
vedran-kasalica committed Mar 4, 2024
1 parent 7a50598 commit 93845cf
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import java.util.List;
import java.util.Map;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.semanticweb.owlapi.model.OWLOntologyCreationException;
Expand Down Expand Up @@ -43,7 +42,6 @@
/**
* This class represents the RESTful APE controller. It provides the RESTful API for the APE library.
*
* @author Vedran
*/
@RestController
public class RestApeController {
Expand Down Expand Up @@ -188,9 +186,8 @@ public ResponseEntity<String> getConstraints(@RequestParam("config_path") String
description = "More information about the APE configuration file can be found here.",
url = "https://ape-framework.readthedocs.io/en/latest/docs/specifications/setup.html#configuration-file"),
responses = {
@ApiResponse(responseCode = "200", description = "Successful operation. A list of synthesized workflow solutions is returned.",
content = @Content(mediaType = "application/json",
schema = @Schema(implementation = APEWorkflowMetadata[].class))),
@ApiResponse(responseCode = "200", description = "Successful operation. A list of synthesized workflow solutions is returned."
),
@ApiResponse(responseCode = "400", description = "Invalid input"),
@ApiResponse(responseCode = "404", description = "Not found"),
@ApiResponse(responseCode = "500", description = "Internal server error")
Expand Down Expand Up @@ -219,9 +216,7 @@ public ResponseEntity<List<APEWorkflowMetadata>> runSynthesis(
requestBody = @io.swagger.v3.oas.annotations.parameters.RequestBody(description = "JSON object containing the configuration for the synthesis.",
content = @Content(schema = @Schema(implementation = APEConfig.class))),
responses = {
@ApiResponse(responseCode = "200", description = "Successful operation. A list of synthesized workflow solutions is returned.",
content = @Content(mediaType = "application/json",
schema = @Schema(implementation = APEWorkflowMetadata[].class))),
@ApiResponse(responseCode = "200", description = "Successful operation. A list of synthesized workflow solutions is returned."),
@ApiResponse(responseCode = "400", description = "Invalid input. The request body does not match the expected schema."),
@ApiResponse(responseCode = "404", description = "Not found. The specified resource could not be found."),
@ApiResponse(responseCode = "500", description = "Internal server error. An unexpected error occurred.")
Expand Down

0 comments on commit 93845cf

Please sign in to comment.