Class ContributionsCountController


  • @RestController
    @RequestMapping("/contributions/count")
    public class ContributionsCountController
    extends Object
    REST controller containing the methods, which are mapped to "/contributions/count" and used to return the count of each contribution (creation, modification, deletion) of the OSM data.
    • Constructor Detail

      • ContributionsCountController

        public ContributionsCountController()
    • Method Detail

      • contributionsCount

        @RequestMapping(value="",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response contributionsCount​(javax.servlet.http.HttpServletRequest servletRequest,
                                           javax.servlet.http.HttpServletResponse servletResponse)
                                    throws Exception
        Gives the count of OSM contributions.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        DefaultAggregationResponse
        Throws:
        Exception - thrown by count
      • contributionsCountDensity

        @RequestMapping(value="/density",
                        method={GET,POST},
                        produces={"application/json","text/csv"})
        public Response contributionsCountDensity​(javax.servlet.http.HttpServletRequest servletRequest,
                                                  javax.servlet.http.HttpServletResponse servletResponse)
                                           throws Exception
        Gives the density of OSM contributions.
        Parameters:
        servletRequest - HttpServletRequest of the incoming request
        servletResponse - HttpServletResponse of the outgoing response
        Returns:
        DefaultAggregationResponse
        Throws:
        Exception - thrown by count