Newer
Older
drafter-groovy / src / uk / org / gss_data / pmd_drafter / api / UsersApi.groovy
package uk.org.gss_data.pmd_drafter.api

import uk.org.gss_data.pmd_drafter.model.User

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 )
                    
    }
}