Interface GoodRestApiTwo


@Tag("GoodRestApiController") public interface GoodRestApiTwo
Rest api two for testing.
Author:
Christian Bremer
  • Method Details

    • getExampleModels

      @RequestMapping(value="/api/models", produces="application/json", method=GET) List<ExampleModel> getExampleModels(@RequestParam(name="q",required=false) String query)
      Gets models.
      Parameters:
      query - the query
      Returns:
      the models
    • addExampleModel

      @RequestMapping(value="/api/models", produces="application/json", consumes="application/json", method=POST) ExampleModel addExampleModel(@RequestBody ExampleModel model)
      Add model model.
      Parameters:
      model - the model
      Returns:
      the model
    • getExampleModel

      @RequestMapping(value="/api/models/{id}", produces="application/json", method=GET) ExampleModel getExampleModel(@PathVariable("id") String id)
      Gets model.
      Parameters:
      id - the id
      Returns:
      the model
    • updateExampleModel

      @RequestMapping(value="/api/models/{id}", produces="application/json", consumes="application/json", method=PUT) ExampleModel updateExampleModel(@PathVariable("id") String id, @RequestBody ExampleModel model)
      Update model model.
      Parameters:
      id - the id
      model - the model
      Returns:
      the model
    • deleteExampleModel

      @RequestMapping(value="/api/models/{id}", produces="application/json", method=DELETE) void deleteExampleModel(@PathVariable("id") String id)
      Delete model.
      Parameters:
      id - the id