Interface BadApis.Three

Enclosing class:
BadApis

public static interface BadApis.Three
The interface Three.
  • 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
    • updateExampleModel

      @PutMapping(path="/api/models/{id}") org.springframework.http.ResponseEntity<Void> updateExampleModel(@PathVariable("id") String id, @RequestBody ExampleModel model)
      Update model response entity.
      Parameters:
      id - the id
      model - the model
      Returns:
      the response entity
    • addExampleModel

      @PostMapping(path="/api/models") org.springframework.http.ResponseEntity<Void> addExampleModel(@RequestBody ExampleModel model)
      Add model response entity.
      Parameters:
      model - the model
      Returns:
      the response entity
    • getExampleModel

      @GetMapping(path="/api/models/{id}") org.springframework.http.ResponseEntity<ExampleModel> getExampleModel(@PathVariable("id") String id)
      Gets model.
      Parameters:
      id - the id
      Returns:
      the model