Newer
Older
drafter-groovy / src / main / groovy / io / swagger / api / UsersApi.groovy
package io.swagger.api;

import groovyx.net.http.*
import static groovyx.net.http.ContentType.*
import static groovyx.net.http.Method.*
import io.swagger.api.ApiUtils

import io.swagger.model.User

import java.util.*;

@Mixin(ApiUtils)
class UsersApi {
    String basePath = "https://localhost/v1"
    String versionPath = "/api/v1"

    def usersGet ( Closure onSuccess, Closure onFailure)  {
        // create path and map path parameters (TODO)
        String resourcePath = "/users"

        // query params
        def queryParams = [:]
        def headerParams = [:]
    

        

        // Also still TODO: form params, body param

        invokeApi(onSuccess, onFailure, basePath, versionPath, resourcePath, queryParams, headerParams,
                    "GET", "array",
                    User.class )
                    
    }
}