Skip to content
Snippets Groups Projects
Commit 8ae22402 authored by VidyaDharani Lokam's avatar VidyaDharani Lokam
Browse files

Merge branch 'az/vl-fix-preship-issue' into 'master'

Fix content-type as application/json for system-schema api

See merge request !591
parents 3e8f1c54 a21712fa
No related branches found
No related tags found
1 merge request!591Fix content-type as application/json for system-schema api
Pipeline #227345 failed
......@@ -38,7 +38,7 @@ import javax.validation.Valid;
import static org.opengroup.osdu.schema.constants.SchemaConstants.GET_SCHEMA_200_RESPONSE;
@RestController
@RequestMapping("schema")
@RequestMapping(value = "schema", produces = "application/json")
@Tag(name = "schema-api", description = "Schema API - Core Schema related endpoints")
public class SchemaController {
......
......@@ -37,7 +37,7 @@ public class SystemSchemaController {
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "Schema updated", content = { @Content(schema = @Schema(implementation = SchemaInfo.class)) }),
@ApiResponse(responseCode = "201", description = "Schema created", content = { @Content(schema = @Schema(implementation = SchemaInfo.class)) }),
@ApiResponse(responseCode = "400", description = "Bad user input. Mandatory fields missing or unacceptable value passed to API", content = {@Content(schema = @Schema(implementation = AppError.class ))}),
@ApiResponse(responseCode = "400", description = "Bad user input. Mandatory fields missing or unacceptable value passed to API", content = {@Content(mediaType = "application/json", schema = @Schema(implementation = AppError.class ))}),
@ApiResponse(responseCode = "401", description = "Unauthorized", content = {@Content(schema = @Schema(implementation = AppError.class ))}),
@ApiResponse(responseCode = "403", description = "User not authorized to perform the action.", content = {@Content(schema = @Schema(implementation = AppError.class ))}),
@ApiResponse(responseCode = "404", description = "Not Found", content = {@Content(schema = @Schema(implementation = AppError.class ))}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment