Skip to content
Snippets Groups Projects
Commit c9f2402c authored by Habfast's avatar Habfast
Browse files

fix models integration

parent e9f710d3
No related branches found
No related tags found
No related merge requests found
......@@ -98,10 +98,10 @@ public class ModelsApi {
}
@ApiOperation(value = "Create a model", response = Void.class)
@ApiOperation(value = "Create a model", response = Model.class)
@ApiResponses(value = { @ApiResponse(code = 200, message = "Model created") })
@RequestMapping(method = RequestMethod.POST)
public ResponseEntity<Void> addAModel(
public ResponseEntity<Model> addAModel(
@RequestBody @ApiParam(value = "Model to create", required = true) Model model,
Principal principal
) {
......@@ -129,7 +129,7 @@ public class ModelsApi {
session.getTransaction().rollback();
} }
return new ResponseEntity<Void>(HttpStatus.OK);
return new ResponseEntity<Model>(HttpStatus.OK).ok(model);
}
@ApiOperation(value = "Get a model", response = Model.class)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment