Interface GoodRestApiOne


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

    • getExampleModels

      @RequestMapping(value="/api/models", produces="application/json", method=GET) org.springframework.http.ResponseEntity<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) org.springframework.http.ResponseEntity<ExampleModel> addExampleModel(@RequestBody ExampleModel model)
      Add model response entity.
      Parameters:
      model - the model
      Returns:
      the response entity
    • getExampleModel

      @RequestMapping(value="/api/models/{id}", produces="application/json", method=GET) org.springframework.http.ResponseEntity<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) org.springframework.http.ResponseEntity<ExampleModel> updateExampleModel(@PathVariable("id") String id, @RequestBody ExampleModel model)
      Update model response entity.
      Parameters:
      id - the id
      model - the model
      Returns:
      the response entity
    • deleteExampleModel

      @RequestMapping(value="/api/models/{id}", produces="application/json", method=DELETE) org.springframework.http.ResponseEntity<Void> deleteExampleModel(@PathVariable("id") String id)
      Delete model response entity.
      Parameters:
      id - the id
      Returns:
      the response entity