Interface BadApis.Three
- Enclosing class:
BadApis
public static interface BadApis.Three
The interface Three.
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> addExampleModel(ExampleModel model) Add model response entity.org.springframework.http.ResponseEntity<ExampleModel> Gets model.org.springframework.http.ResponseEntity<List<ExampleModel>> getExampleModels(String query) Gets models.org.springframework.http.ResponseEntity<Void> updateExampleModel(String id, ExampleModel model) Update model response entity.
-
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 idmodel- 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
-