Package org.bremersee.test.web
Interface BadApis.Three
-
- Enclosing class:
- BadApis
public static interface BadApis.Three
The interface Three.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Void>
addGeometry(org.bremersee.geojson.model.Geometry geometry)
Add geometry response entity.org.springframework.http.ResponseEntity<List<org.bremersee.geojson.model.Geometry>>
getGeometries(String query)
Gets geometries.org.springframework.http.ResponseEntity<org.bremersee.geojson.model.Geometry>
getGeometry(String id)
Gets geometry.org.springframework.http.ResponseEntity<Void>
updateGeometry(String id, org.bremersee.geojson.model.Geometry geometry)
Update geometry response entity.
-
-
-
Method Detail
-
getGeometries
@RequestMapping(value="/api/geometries", produces="application/json", method=GET) org.springframework.http.ResponseEntity<List<org.bremersee.geojson.model.Geometry>> getGeometries(@RequestParam(name="q",required=false) String query)
Gets geometries.- Parameters:
query
- the query- Returns:
- the geometries
-
updateGeometry
@PutMapping(path="/api/geometries/{id}") org.springframework.http.ResponseEntity<Void> updateGeometry(@PathVariable("id") String id, @RequestBody org.bremersee.geojson.model.Geometry geometry)
Update geometry response entity.- Parameters:
id
- the idgeometry
- the geometry- Returns:
- the response entity
-
addGeometry
@PostMapping(path="/api/geometries") org.springframework.http.ResponseEntity<Void> addGeometry(@RequestBody org.bremersee.geojson.model.Geometry geometry)
Add geometry response entity.- Parameters:
geometry
- the geometry- Returns:
- the response entity
-
getGeometry
@GetMapping(path="/api/geometries/{id}") org.springframework.http.ResponseEntity<org.bremersee.geojson.model.Geometry> getGeometry(@PathVariable("id") String id)
Gets geometry.- Parameters:
id
- the id- Returns:
- the geometry
-
-