Interface BadApis.Four

  • Enclosing class:
    BadApis

    public static interface BadApis.Four
    The interface Four.
    • 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<String> getGeometry​(String id)
      Gets geometry.
      org.springframework.http.ResponseEntity<Void> updateGeometry​(org.bremersee.geojson.model.Geometry geometry)
      Update geometry response entity.
    • Method Detail

      • updateGeometry

        @PutMapping(path="/api/geometries/{id}")
        org.springframework.http.ResponseEntity<Void> updateGeometry​(@RequestBody
                                                                     org.bremersee.geojson.model.Geometry geometry)
        Update geometry response entity.
        Parameters:
        geometry - the geometry
        Returns:
        the response entity
      • addGeometry

        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<String> getGeometry​(@PathVariable("id")
                                                                    String id)
        Gets geometry.
        Parameters:
        id - the id
        Returns:
        the geometry