Node and Mysql swagger documentation

Login

login

Returns access token


/api/login

Usage and SDK Samples

curl -X POST "http://dev.itjunkies.in/api/login"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.LoginApi;

import java.io.File;
import java.util.*;

public class LoginApiExample {

    public static void main(String[] args) {
        
        LoginApi apiInstance = new LoginApi();
        String contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
        Auth request = ; // Auth | 
        try {
            authTokenResponse result = apiInstance.login(contentType, request);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginApi#login");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.LoginApi;

public class LoginApiExample {

    public static void main(String[] args) {
        LoginApi apiInstance = new LoginApi();
        String contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
        Auth request = ; // Auth | 
        try {
            authTokenResponse result = apiInstance.login(contentType, request);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling LoginApi#login");
            e.printStackTrace();
        }
    }
}
String *contentType = contentType_example; // Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
Auth *request = ; // 

LoginApi *apiInstance = [[LoginApi alloc] init];

[apiInstance loginWith:contentType
    request:request
              completionHandler: ^(authTokenResponse output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NodeAndMysqlSwaggerDocumentation = require('node_and_mysql_swagger_documentation');

var api = new NodeAndMysqlSwaggerDocumentation.LoginApi()

var contentType = contentType_example; // {String} Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'

var request = ; // {Auth} 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.login(contentType, request, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class loginExample
    {
        public void main()
        {
            
            var apiInstance = new LoginApi();
            var contentType = contentType_example;  // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
            var request = new Auth(); // Auth | 

            try
            {
                authTokenResponse result = apiInstance.login(contentType, request);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LoginApi.login: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\LoginApi();
$contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
$request = ; // Auth | 

try {
    $result = $api_instance->login($contentType, $request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LoginApi->login: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::LoginApi;

my $api_instance = WWW::SwaggerClient::LoginApi->new();
my $contentType = contentType_example; # String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
my $request = WWW::SwaggerClient::Object::Auth->new(); # Auth | 

eval { 
    my $result = $api_instance->login(contentType => $contentType, request => $request);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling LoginApi->login: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LoginApi()
contentType = contentType_example # String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
request =  # Auth | 

try: 
    api_response = api_instance.login(contentType, request)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LoginApi->login: %s\n" % e)

Parameters

Header parameters
Name Description
Content-Type*
String
Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
Required
Body parameters
Name Description
request *

Responses

Status: 201 - Login Response

Status: 401 - Bad Request

Status: 404 - Not Found

Status: 500 - Internal Server Error


UserModel

delete User

Add a new user


/secureApi/user/{userId}

Usage and SDK Samples

curl -X DELETE "http://dev.itjunkies.in/secureApi/user/{userId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserModelApi;

import java.io.File;
import java.util.*;

public class UserModelApiExample {

    public static void main(String[] args) {
        
        UserModelApi apiInstance = new UserModelApi();
        String contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
        String accessToken = accessToken_example; // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 String userId = userId_example; // String | userId UserRequest request = ; // UserRequest | Feedback object needs to be saved try { userResponse result = apiInstance.delete User(contentType, accessToken, userId, request); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserModelApi#delete User"); e.printStackTrace(); } } }
import io.swagger.client.api.UserModelApi;

public class UserModelApiExample {

    public static void main(String[] args) {
        UserModelApi apiInstance = new UserModelApi();
        String contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
        String accessToken = accessToken_example; // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 String userId = userId_example; // String | userId UserRequest request = ; // UserRequest | Feedback object needs to be saved try { userResponse result = apiInstance.delete User(contentType, accessToken, userId, request); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserModelApi#delete User"); e.printStackTrace(); } } }
String *contentType = contentType_example; // Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
String *accessToken = accessToken_example; // access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 String *userId = userId_example; // userId UserRequest *request = ; // Feedback object needs to be saved UserModelApi *apiInstance = [[UserModelApi alloc] init]; [apiInstance delete UserWith:contentType accessToken:accessToken userId:userId request:request completionHandler: ^(userResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } if (error) { NSLog(@"Error: %@", error); } }];
var NodeAndMysqlSwaggerDocumentation = require('node_and_mysql_swagger_documentation');

var api = new NodeAndMysqlSwaggerDocumentation.UserModelApi()

var contentType = contentType_example; // {String} Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'

var accessToken = accessToken_example; // {String} access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 var userId = userId_example; // {String} userId var request = ; // {UserRequest} Feedback object needs to be saved var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; api.delete User(contentType, accessToken, userId, request, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class delete UserExample
    {
        public void main()
        {
            
            var apiInstance = new UserModelApi();
            var contentType = contentType_example;  // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
            var accessToken = accessToken_example;  // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 var userId = userId_example; // String | userId var request = new UserRequest(); // UserRequest | Feedback object needs to be saved try { userResponse result = apiInstance.delete User(contentType, accessToken, userId, request); Debug.WriteLine(result); } catch (Exception e) { Debug.Print("Exception when calling UserModelApi.delete User: " + e.Message ); } } } }
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserModelApi();
$contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
$accessToken = accessToken_example; // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 $userId = userId_example; // String | userId $request = ; // UserRequest | Feedback object needs to be saved try { $result = $api_instance->delete User($contentType, $accessToken, $userId, $request); print_r($result); } catch (Exception $e) { echo 'Exception when calling UserModelApi->delete User: ', $e->getMessage(), PHP_EOL; } ?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserModelApi;

my $api_instance = WWW::SwaggerClient::UserModelApi->new();
my $contentType = contentType_example; # String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
my $accessToken = accessToken_example; # String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 my $userId = userId_example; # String | userId my $request = WWW::SwaggerClient::Object::UserRequest->new(); # UserRequest | Feedback object needs to be saved eval { my $result = $api_instance->delete User(contentType => $contentType, accessToken => $accessToken, userId => $userId, request => $request); print Dumper($result); }; if ($@) { warn "Exception when calling UserModelApi->delete User: $@\n"; }
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UserModelApi()
contentType = contentType_example # String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
accessToken = accessToken_example # String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 userId = userId_example # String | userId request = # UserRequest | Feedback object needs to be saved try: api_response = api_instance.delete user(contentType, accessToken, userId, request) pprint(api_response) except ApiException as e: print("Exception when calling UserModelApi->delete User: %s\n" % e)

Parameters

Path parameters
Name Description
userId*
String
userId
Required
Header parameters
Name Description
Content-Type*
String
Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
Required
access_token*
String
access token can be generated using auth/login end point. <br/>ex: access_token = kQ60GIXXXXoG8x8
Required
Body parameters
Name Description
request *

Responses

Status: 201 - Successful operation

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 404 - Not Found

Status: 422 - Validation Error

Status: 500 - Internal Server Error


get User

get all user


/secureApi/user

Usage and SDK Samples

curl -X GET "http://dev.itjunkies.in/secureApi/user"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserModelApi;

import java.io.File;
import java.util.*;

public class UserModelApiExample {

    public static void main(String[] args) {
        
        UserModelApi apiInstance = new UserModelApi();
        String contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
        String token = token_example; // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 try { userResponse result = apiInstance.get User(contentType, token); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserModelApi#get User"); e.printStackTrace(); } } }
import io.swagger.client.api.UserModelApi;

public class UserModelApiExample {

    public static void main(String[] args) {
        UserModelApi apiInstance = new UserModelApi();
        String contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
        String token = token_example; // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 try { userResponse result = apiInstance.get User(contentType, token); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserModelApi#get User"); e.printStackTrace(); } } }
String *contentType = contentType_example; // Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
String *token = token_example; // access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 UserModelApi *apiInstance = [[UserModelApi alloc] init]; [apiInstance get UserWith:contentType token:token completionHandler: ^(userResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } if (error) { NSLog(@"Error: %@", error); } }];
var NodeAndMysqlSwaggerDocumentation = require('node_and_mysql_swagger_documentation');

var api = new NodeAndMysqlSwaggerDocumentation.UserModelApi()

var contentType = contentType_example; // {String} Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'

var token = token_example; // {String} access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; api.get User(contentType, token, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class get UserExample
    {
        public void main()
        {
            
            var apiInstance = new UserModelApi();
            var contentType = contentType_example;  // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
            var token = token_example;  // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 try { userResponse result = apiInstance.get User(contentType, token); Debug.WriteLine(result); } catch (Exception e) { Debug.Print("Exception when calling UserModelApi.get User: " + e.Message ); } } } }
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserModelApi();
$contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
$token = token_example; // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 try { $result = $api_instance->get User($contentType, $token); print_r($result); } catch (Exception $e) { echo 'Exception when calling UserModelApi->get User: ', $e->getMessage(), PHP_EOL; } ?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserModelApi;

my $api_instance = WWW::SwaggerClient::UserModelApi->new();
my $contentType = contentType_example; # String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
my $token = token_example; # String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 eval { my $result = $api_instance->get User(contentType => $contentType, token => $token); print Dumper($result); }; if ($@) { warn "Exception when calling UserModelApi->get User: $@\n"; }
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UserModelApi()
contentType = contentType_example # String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
token = token_example # String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 try: api_response = api_instance.get user(contentType, token) pprint(api_response) except ApiException as e: print("Exception when calling UserModelApi->get User: %s\n" % e)

Parameters

Header parameters
Name Description
Content-Type*
String
Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
Required
token*
String
access token can be generated using auth/login end point. <br/>ex: access_token = kQ60GIXXXXoG8x8
Required

Responses

Status: 201 - Successful operation

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 404 - Not Found

Status: 422 - Validation Error

Status: 500 - Internal Server Error


update User

get all user


/secureApi/user/{userId}

Usage and SDK Samples

curl -X PUT "http://dev.itjunkies.in/secureApi/user/{userId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserModelApi;

import java.io.File;
import java.util.*;

public class UserModelApiExample {

    public static void main(String[] args) {
        
        UserModelApi apiInstance = new UserModelApi();
        String contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
        String token = token_example; // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 String userId = userId_example; // String | userId try { userResponse result = apiInstance.update User(contentType, token, userId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserModelApi#update User"); e.printStackTrace(); } } }
import io.swagger.client.api.UserModelApi;

public class UserModelApiExample {

    public static void main(String[] args) {
        UserModelApi apiInstance = new UserModelApi();
        String contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
        String token = token_example; // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 String userId = userId_example; // String | userId try { userResponse result = apiInstance.update User(contentType, token, userId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserModelApi#update User"); e.printStackTrace(); } } }
String *contentType = contentType_example; // Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
String *token = token_example; // access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 String *userId = userId_example; // userId UserModelApi *apiInstance = [[UserModelApi alloc] init]; [apiInstance update UserWith:contentType token:token userId:userId completionHandler: ^(userResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } if (error) { NSLog(@"Error: %@", error); } }];
var NodeAndMysqlSwaggerDocumentation = require('node_and_mysql_swagger_documentation');

var api = new NodeAndMysqlSwaggerDocumentation.UserModelApi()

var contentType = contentType_example; // {String} Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'

var token = token_example; // {String} access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 var userId = userId_example; // {String} userId var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; api.update User(contentType, token, userId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class update UserExample
    {
        public void main()
        {
            
            var apiInstance = new UserModelApi();
            var contentType = contentType_example;  // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
            var token = token_example;  // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 var userId = userId_example; // String | userId try { userResponse result = apiInstance.update User(contentType, token, userId); Debug.WriteLine(result); } catch (Exception e) { Debug.Print("Exception when calling UserModelApi.update User: " + e.Message ); } } } }
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserModelApi();
$contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
$token = token_example; // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 $userId = userId_example; // String | userId try { $result = $api_instance->update User($contentType, $token, $userId); print_r($result); } catch (Exception $e) { echo 'Exception when calling UserModelApi->update User: ', $e->getMessage(), PHP_EOL; } ?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserModelApi;

my $api_instance = WWW::SwaggerClient::UserModelApi->new();
my $contentType = contentType_example; # String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
my $token = token_example; # String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 my $userId = userId_example; # String | userId eval { my $result = $api_instance->update User(contentType => $contentType, token => $token, userId => $userId); print Dumper($result); }; if ($@) { warn "Exception when calling UserModelApi->update User: $@\n"; }
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UserModelApi()
contentType = contentType_example # String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
token = token_example # String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 userId = userId_example # String | userId try: api_response = api_instance.update user(contentType, token, userId) pprint(api_response) except ApiException as e: print("Exception when calling UserModelApi->update User: %s\n" % e)

Parameters

Path parameters
Name Description
userId*
String
userId
Required
Header parameters
Name Description
Content-Type*
String
Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
Required
token*
String
access token can be generated using auth/login end point. <br/>ex: access_token = kQ60GIXXXXoG8x8
Required

Responses

Status: 201 - Successful operation

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 404 - Not Found

Status: 422 - Validation Error

Status: 500 - Internal Server Error


user

Add a new user


/secureApi/user

Usage and SDK Samples

curl -X POST "http://dev.itjunkies.in/secureApi/user"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.UserModelApi;

import java.io.File;
import java.util.*;

public class UserModelApiExample {

    public static void main(String[] args) {
        
        UserModelApi apiInstance = new UserModelApi();
        String contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
        String accessToken = accessToken_example; // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 UserRequest request = ; // UserRequest | Feedback object needs to be saved try { userResponse result = apiInstance.user(contentType, accessToken, request); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserModelApi#user"); e.printStackTrace(); } } }
import io.swagger.client.api.UserModelApi;

public class UserModelApiExample {

    public static void main(String[] args) {
        UserModelApi apiInstance = new UserModelApi();
        String contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
        String accessToken = accessToken_example; // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 UserRequest request = ; // UserRequest | Feedback object needs to be saved try { userResponse result = apiInstance.user(contentType, accessToken, request); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling UserModelApi#user"); e.printStackTrace(); } } }
String *contentType = contentType_example; // Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
String *accessToken = accessToken_example; // access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 UserRequest *request = ; // Feedback object needs to be saved UserModelApi *apiInstance = [[UserModelApi alloc] init]; [apiInstance userWith:contentType accessToken:accessToken request:request completionHandler: ^(userResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } if (error) { NSLog(@"Error: %@", error); } }];
var NodeAndMysqlSwaggerDocumentation = require('node_and_mysql_swagger_documentation');

var api = new NodeAndMysqlSwaggerDocumentation.UserModelApi()

var contentType = contentType_example; // {String} Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'

var accessToken = accessToken_example; // {String} access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 var request = ; // {UserRequest} Feedback object needs to be saved var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; api.user(contentType, accessToken, request, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class userExample
    {
        public void main()
        {
            
            var apiInstance = new UserModelApi();
            var contentType = contentType_example;  // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
            var accessToken = accessToken_example;  // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 var request = new UserRequest(); // UserRequest | Feedback object needs to be saved try { userResponse result = apiInstance.user(contentType, accessToken, request); Debug.WriteLine(result); } catch (Exception e) { Debug.Print("Exception when calling UserModelApi.user: " + e.Message ); } } } }
<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\UserModelApi();
$contentType = contentType_example; // String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
$accessToken = accessToken_example; // String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 $request = ; // UserRequest | Feedback object needs to be saved try { $result = $api_instance->user($contentType, $accessToken, $request); print_r($result); } catch (Exception $e) { echo 'Exception when calling UserModelApi->user: ', $e->getMessage(), PHP_EOL; } ?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::UserModelApi;

my $api_instance = WWW::SwaggerClient::UserModelApi->new();
my $contentType = contentType_example; # String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
my $accessToken = accessToken_example; # String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 my $request = WWW::SwaggerClient::Object::UserRequest->new(); # UserRequest | Feedback object needs to be saved eval { my $result = $api_instance->user(contentType => $contentType, accessToken => $accessToken, request => $request); print Dumper($result); }; if ($@) { warn "Exception when calling UserModelApi->user: $@\n"; }
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UserModelApi()
contentType = contentType_example # String | Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
accessToken = accessToken_example # String | access token can be generated using auth/login end point. 
ex: access_token = kQ60GIXXXXoG8x8 request = # UserRequest | Feedback object needs to be saved try: api_response = api_instance.user(contentType, accessToken, request) pprint(api_response) except ApiException as e: print("Exception when calling UserModelApi->user: %s\n" % e)

Parameters

Header parameters
Name Description
Content-Type*
String
Content-Type entity header is used to indicate the media type of the resource. Accepted value 'application/x-www-form-urlencoded'
Required
access_token*
String
access token can be generated using auth/login end point. <br/>ex: access_token = kQ60GIXXXXoG8x8
Required
Body parameters
Name Description
request *

Responses

Status: 201 - Successful operation

Status: 400 - Bad Request

Status: 401 - Unauthorized

Status: 404 - Not Found

Status: 422 - Validation Error

Status: 500 - Internal Server Error


Generated 2017-12-19T05:51:51.203Z