pagination: add offset and limit to response
fix parameter handling for other methods than GET/POST