Nail Case API

DemoLoginController

loginAdmin


/demo-login/admin

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: application/json"\
"http://localhost:8081/api/v1/demo-login/admin"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DemoLoginControllerApi;

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

public class DemoLoginControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        DemoLoginControllerApi apiInstance = new DemoLoginControllerApi();
        try {
            com.nailcase.model.dto.MemberDto result = apiInstance.loginAdmin();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DemoLoginControllerApi#loginAdmin");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DemoLoginControllerApi;

public class DemoLoginControllerApiExample {

    public static void main(String[] args) {
        DemoLoginControllerApi apiInstance = new DemoLoginControllerApi();
        try {
            com.nailcase.model.dto.MemberDto result = apiInstance.loginAdmin();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DemoLoginControllerApi#loginAdmin");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

[apiInstance loginAdminWithCompletionHandler: 
              ^(com.nailcase.model.dto.MemberDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

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

namespace Example
{
    public class loginAdminExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new DemoLoginControllerApi();

            try
            {
                com.nailcase.model.dto.MemberDto result = apiInstance.loginAdmin();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DemoLoginControllerApi.loginAdmin: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiDemoLoginControllerApi();

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

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::DemoLoginControllerApi->new();

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.DemoLoginControllerApi()

try: 
    api_response = api_instance.login_admin()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DemoLoginControllerApi->loginAdmin: %s\n" % e)

Parameters

Responses

Status: 200 - OK


loginUser


/demo-login/member

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: application/json"\
"http://localhost:8081/api/v1/demo-login/member"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DemoLoginControllerApi;

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

public class DemoLoginControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        DemoLoginControllerApi apiInstance = new DemoLoginControllerApi();
        try {
            com.nailcase.model.dto.MemberDto result = apiInstance.loginUser();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DemoLoginControllerApi#loginUser");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.DemoLoginControllerApi;

public class DemoLoginControllerApiExample {

    public static void main(String[] args) {
        DemoLoginControllerApi apiInstance = new DemoLoginControllerApi();
        try {
            com.nailcase.model.dto.MemberDto result = apiInstance.loginUser();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DemoLoginControllerApi#loginUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

[apiInstance loginUserWithCompletionHandler: 
              ^(com.nailcase.model.dto.MemberDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

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

namespace Example
{
    public class loginUserExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new DemoLoginControllerApi();

            try
            {
                com.nailcase.model.dto.MemberDto result = apiInstance.loginUser();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DemoLoginControllerApi.loginUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiDemoLoginControllerApi();

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

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::DemoLoginControllerApi->new();

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.DemoLoginControllerApi()

try: 
    api_response = api_instance.login_user()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DemoLoginControllerApi->loginUser: %s\n" % e)

Parameters

Responses

Status: 200 - OK


MemberController

expireToken


/member/expire

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/member/expire"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MemberControllerApi;

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

public class MemberControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        MemberControllerApi apiInstance = new MemberControllerApi();
        String authorization = authorization_example; // String | 
        try {
            apiInstance.expireToken(authorization);
        } catch (ApiException e) {
            System.err.println("Exception when calling MemberControllerApi#expireToken");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MemberControllerApi;

public class MemberControllerApiExample {

    public static void main(String[] args) {
        MemberControllerApi apiInstance = new MemberControllerApi();
        String authorization = authorization_example; // String | 
        try {
            apiInstance.expireToken(authorization);
        } catch (ApiException e) {
            System.err.println("Exception when calling MemberControllerApi#expireToken");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *authorization = authorization_example; // 

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

[apiInstance expireTokenWith:authorization
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.MemberControllerApi()
var authorization = authorization_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.expireToken(authorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class expireTokenExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MemberControllerApi();
            var authorization = authorization_example;  // String | 

            try
            {
                apiInstance.expireToken(authorization);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MemberControllerApi.expireToken: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMemberControllerApi();
$authorization = authorization_example; // String | 

try {
    $api_instance->expireToken($authorization);
} catch (Exception $e) {
    echo 'Exception when calling MemberControllerApi->expireToken: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MemberControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MemberControllerApi->new();
my $authorization = authorization_example; # String | 

eval { 
    $api_instance->expireToken(authorization => $authorization);
};
if ($@) {
    warn "Exception when calling MemberControllerApi->expireToken: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MemberControllerApi()
authorization = authorization_example # String | 

try: 
    api_instance.expire_token(authorization)
except ApiException as e:
    print("Exception when calling MemberControllerApi->expireToken: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Required

Responses

Status: 200 - OK


logout


/member/logout

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/member/logout"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MemberControllerApi;

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

public class MemberControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        MemberControllerApi apiInstance = new MemberControllerApi();
        String authorization = authorization_example; // String | 
        try {
            apiInstance.logout(authorization);
        } catch (ApiException e) {
            System.err.println("Exception when calling MemberControllerApi#logout");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MemberControllerApi;

public class MemberControllerApiExample {

    public static void main(String[] args) {
        MemberControllerApi apiInstance = new MemberControllerApi();
        String authorization = authorization_example; // String | 
        try {
            apiInstance.logout(authorization);
        } catch (ApiException e) {
            System.err.println("Exception when calling MemberControllerApi#logout");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *authorization = authorization_example; // 

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

[apiInstance logoutWith:authorization
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.MemberControllerApi()
var authorization = authorization_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.logout(authorization, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class logoutExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MemberControllerApi();
            var authorization = authorization_example;  // String | 

            try
            {
                apiInstance.logout(authorization);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MemberControllerApi.logout: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMemberControllerApi();
$authorization = authorization_example; // String | 

try {
    $api_instance->logout($authorization);
} catch (Exception $e) {
    echo 'Exception when calling MemberControllerApi->logout: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MemberControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MemberControllerApi->new();
my $authorization = authorization_example; # String | 

eval { 
    $api_instance->logout(authorization => $authorization);
};
if ($@) {
    warn "Exception when calling MemberControllerApi->logout: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MemberControllerApi()
authorization = authorization_example # String | 

try: 
    api_instance.logout(authorization)
except ApiException as e:
    print("Exception when calling MemberControllerApi->logout: %s\n" % e)

Parameters

Header parameters
Name Description
Authorization*
String
Required

Responses

Status: 200 - OK


MonthlyArtController

deleteMonthlyArt


/shops/{shopId}/monthly-art/{monthlyArtId}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/monthly-art/{monthlyArtId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MonthlyArtControllerApi;

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

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        Long shopId = 789; // Long | 
        Long monthlyArtId = 789; // Long | 
        try {
            apiInstance.deleteMonthlyArt(shopId, monthlyArtId);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#deleteMonthlyArt");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MonthlyArtControllerApi;

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        Long shopId = 789; // Long | 
        Long monthlyArtId = 789; // Long | 
        try {
            apiInstance.deleteMonthlyArt(shopId, monthlyArtId);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#deleteMonthlyArt");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 
Long *monthlyArtId = 789; // 

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

[apiInstance deleteMonthlyArtWith:shopId
    monthlyArtId:monthlyArtId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.MonthlyArtControllerApi()
var shopId = 789; // {{Long}} 
var monthlyArtId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteMonthlyArt(shopId, monthlyArtId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteMonthlyArtExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MonthlyArtControllerApi();
            var shopId = 789;  // Long | 
            var monthlyArtId = 789;  // Long | 

            try
            {
                apiInstance.deleteMonthlyArt(shopId, monthlyArtId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MonthlyArtControllerApi.deleteMonthlyArt: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMonthlyArtControllerApi();
$shopId = 789; // Long | 
$monthlyArtId = 789; // Long | 

try {
    $api_instance->deleteMonthlyArt($shopId, $monthlyArtId);
} catch (Exception $e) {
    echo 'Exception when calling MonthlyArtControllerApi->deleteMonthlyArt: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MonthlyArtControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MonthlyArtControllerApi->new();
my $shopId = 789; # Long | 
my $monthlyArtId = 789; # Long | 

eval { 
    $api_instance->deleteMonthlyArt(shopId => $shopId, monthlyArtId => $monthlyArtId);
};
if ($@) {
    warn "Exception when calling MonthlyArtControllerApi->deleteMonthlyArt: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MonthlyArtControllerApi()
shopId = 789 # Long | 
monthlyArtId = 789 # Long | 

try: 
    api_instance.delete_monthly_art(shopId, monthlyArtId)
except ApiException as e:
    print("Exception when calling MonthlyArtControllerApi->deleteMonthlyArt: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
monthlyArtId*
Long (int64)
Required

Responses

Status: 204 - No Content


likeMonthlyArt


/shops/{shopId}/monthly-art/{monthlyArtId}/like

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/monthly-art/{monthlyArtId}/like"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MonthlyArtControllerApi;

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

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        Long shopId = 789; // Long | 
        Long monthlyArtId = 789; // Long | 
        try {
            apiInstance.likeMonthlyArt(shopId, monthlyArtId);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#likeMonthlyArt");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MonthlyArtControllerApi;

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        Long shopId = 789; // Long | 
        Long monthlyArtId = 789; // Long | 
        try {
            apiInstance.likeMonthlyArt(shopId, monthlyArtId);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#likeMonthlyArt");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 
Long *monthlyArtId = 789; // 

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

[apiInstance likeMonthlyArtWith:shopId
    monthlyArtId:monthlyArtId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.MonthlyArtControllerApi()
var shopId = 789; // {{Long}} 
var monthlyArtId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.likeMonthlyArt(shopId, monthlyArtId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class likeMonthlyArtExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MonthlyArtControllerApi();
            var shopId = 789;  // Long | 
            var monthlyArtId = 789;  // Long | 

            try
            {
                apiInstance.likeMonthlyArt(shopId, monthlyArtId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MonthlyArtControllerApi.likeMonthlyArt: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMonthlyArtControllerApi();
$shopId = 789; // Long | 
$monthlyArtId = 789; // Long | 

try {
    $api_instance->likeMonthlyArt($shopId, $monthlyArtId);
} catch (Exception $e) {
    echo 'Exception when calling MonthlyArtControllerApi->likeMonthlyArt: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MonthlyArtControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MonthlyArtControllerApi->new();
my $shopId = 789; # Long | 
my $monthlyArtId = 789; # Long | 

eval { 
    $api_instance->likeMonthlyArt(shopId => $shopId, monthlyArtId => $monthlyArtId);
};
if ($@) {
    warn "Exception when calling MonthlyArtControllerApi->likeMonthlyArt: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MonthlyArtControllerApi()
shopId = 789 # Long | 
monthlyArtId = 789 # Long | 

try: 
    api_instance.like_monthly_art(shopId, monthlyArtId)
except ApiException as e:
    print("Exception when calling MonthlyArtControllerApi->likeMonthlyArt: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
monthlyArtId*
Long (int64)
Required

Responses

Status: 204 - No Content


listMonthlyArt


/shops/{shopId}/monthly-art

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/{shopId}/monthly-art"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MonthlyArtControllerApi;

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

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        Long shopId = 789; // Long | 
        try {
            array[com.nailcase.model.dto.MonthlyArtDto$Response] result = apiInstance.listMonthlyArt(shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#listMonthlyArt");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MonthlyArtControllerApi;

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        Long shopId = 789; // Long | 
        try {
            array[com.nailcase.model.dto.MonthlyArtDto$Response] result = apiInstance.listMonthlyArt(shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#listMonthlyArt");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 

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

[apiInstance listMonthlyArtWith:shopId
              completionHandler: ^(array[com.nailcase.model.dto.MonthlyArtDto$Response] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.MonthlyArtControllerApi()
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class listMonthlyArtExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MonthlyArtControllerApi();
            var shopId = 789;  // Long | 

            try
            {
                array[com.nailcase.model.dto.MonthlyArtDto$Response] result = apiInstance.listMonthlyArt(shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MonthlyArtControllerApi.listMonthlyArt: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMonthlyArtControllerApi();
$shopId = 789; // Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MonthlyArtControllerApi->new();
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MonthlyArtControllerApi()
shopId = 789 # Long | 

try: 
    api_response = api_instance.list_monthly_art(shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MonthlyArtControllerApi->listMonthlyArt: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required

Responses

Status: 200 - OK


registerMonthlyArt


/shops/{shopId}/monthly-art

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/monthly-art"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MonthlyArtControllerApi;

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

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        Com.nailcase.model.dto.MonthlyArtDto$Request body = ; // Com.nailcase.model.dto.MonthlyArtDto$Request | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.MonthlyArtDto$Response result = apiInstance.registerMonthlyArt(body, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#registerMonthlyArt");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MonthlyArtControllerApi;

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        Com.nailcase.model.dto.MonthlyArtDto$Request body = ; // Com.nailcase.model.dto.MonthlyArtDto$Request | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.MonthlyArtDto$Response result = apiInstance.registerMonthlyArt(body, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#registerMonthlyArt");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.MonthlyArtDto$Request *body = ; // 
Long *shopId = 789; // 

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

[apiInstance registerMonthlyArtWith:body
    shopId:shopId
              completionHandler: ^(com.nailcase.model.dto.MonthlyArtDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.MonthlyArtControllerApi()
var body = ; // {{Com.nailcase.model.dto.MonthlyArtDto$Request}} 
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class registerMonthlyArtExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MonthlyArtControllerApi();
            var body = new Com.nailcase.model.dto.MonthlyArtDto$Request(); // Com.nailcase.model.dto.MonthlyArtDto$Request | 
            var shopId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.MonthlyArtDto$Response result = apiInstance.registerMonthlyArt(body, shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MonthlyArtControllerApi.registerMonthlyArt: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMonthlyArtControllerApi();
$body = ; // Com.nailcase.model.dto.MonthlyArtDto$Request | 
$shopId = 789; // Long | 

try {
    $result = $api_instance->registerMonthlyArt($body, $shopId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MonthlyArtControllerApi->registerMonthlyArt: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MonthlyArtControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MonthlyArtControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.MonthlyArtDto$Request->new(); # Com.nailcase.model.dto.MonthlyArtDto$Request | 
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MonthlyArtControllerApi()
body =  # Com.nailcase.model.dto.MonthlyArtDto$Request | 
shopId = 789 # Long | 

try: 
    api_response = api_instance.register_monthly_art(body, shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MonthlyArtControllerApi->registerMonthlyArt: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 201 - Created


unlikeMonthlyArt


/shops/{shopId}/monthly-art/{monthlyArtId}/unlike

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/monthly-art/{monthlyArtId}/unlike"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MonthlyArtControllerApi;

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

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        Long shopId = 789; // Long | 
        Long monthlyArtId = 789; // Long | 
        try {
            apiInstance.unlikeMonthlyArt(shopId, monthlyArtId);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#unlikeMonthlyArt");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MonthlyArtControllerApi;

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        Long shopId = 789; // Long | 
        Long monthlyArtId = 789; // Long | 
        try {
            apiInstance.unlikeMonthlyArt(shopId, monthlyArtId);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#unlikeMonthlyArt");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 
Long *monthlyArtId = 789; // 

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

[apiInstance unlikeMonthlyArtWith:shopId
    monthlyArtId:monthlyArtId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.MonthlyArtControllerApi()
var shopId = 789; // {{Long}} 
var monthlyArtId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.unlikeMonthlyArt(shopId, monthlyArtId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class unlikeMonthlyArtExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MonthlyArtControllerApi();
            var shopId = 789;  // Long | 
            var monthlyArtId = 789;  // Long | 

            try
            {
                apiInstance.unlikeMonthlyArt(shopId, monthlyArtId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MonthlyArtControllerApi.unlikeMonthlyArt: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMonthlyArtControllerApi();
$shopId = 789; // Long | 
$monthlyArtId = 789; // Long | 

try {
    $api_instance->unlikeMonthlyArt($shopId, $monthlyArtId);
} catch (Exception $e) {
    echo 'Exception when calling MonthlyArtControllerApi->unlikeMonthlyArt: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MonthlyArtControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MonthlyArtControllerApi->new();
my $shopId = 789; # Long | 
my $monthlyArtId = 789; # Long | 

eval { 
    $api_instance->unlikeMonthlyArt(shopId => $shopId, monthlyArtId => $monthlyArtId);
};
if ($@) {
    warn "Exception when calling MonthlyArtControllerApi->unlikeMonthlyArt: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MonthlyArtControllerApi()
shopId = 789 # Long | 
monthlyArtId = 789 # Long | 

try: 
    api_instance.unlike_monthly_art(shopId, monthlyArtId)
except ApiException as e:
    print("Exception when calling MonthlyArtControllerApi->unlikeMonthlyArt: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
monthlyArtId*
Long (int64)
Required

Responses

Status: 204 - No Content


updateMonthlyArt


/shops/{shopId}/monthly-art/{monthlyArtId}

Usage and SDK Samples

curl -X PUT\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/monthly-art/{monthlyArtId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MonthlyArtControllerApi;

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

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        Com.nailcase.model.dto.MonthlyArtDto$Request body = ; // Com.nailcase.model.dto.MonthlyArtDto$Request | 
        Long shopId = 789; // Long | 
        Long monthlyArtId = 789; // Long | 
        try {
            com.nailcase.model.dto.MonthlyArtDto$Response result = apiInstance.updateMonthlyArt(body, shopId, monthlyArtId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#updateMonthlyArt");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MonthlyArtControllerApi;

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        Com.nailcase.model.dto.MonthlyArtDto$Request body = ; // Com.nailcase.model.dto.MonthlyArtDto$Request | 
        Long shopId = 789; // Long | 
        Long monthlyArtId = 789; // Long | 
        try {
            com.nailcase.model.dto.MonthlyArtDto$Response result = apiInstance.updateMonthlyArt(body, shopId, monthlyArtId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#updateMonthlyArt");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.MonthlyArtDto$Request *body = ; // 
Long *shopId = 789; // 
Long *monthlyArtId = 789; // 

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

[apiInstance updateMonthlyArtWith:body
    shopId:shopId
    monthlyArtId:monthlyArtId
              completionHandler: ^(com.nailcase.model.dto.MonthlyArtDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.MonthlyArtControllerApi()
var body = ; // {{Com.nailcase.model.dto.MonthlyArtDto$Request}} 
var shopId = 789; // {{Long}} 
var monthlyArtId = 789; // {{Long}} 

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

namespace Example
{
    public class updateMonthlyArtExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MonthlyArtControllerApi();
            var body = new Com.nailcase.model.dto.MonthlyArtDto$Request(); // Com.nailcase.model.dto.MonthlyArtDto$Request | 
            var shopId = 789;  // Long | 
            var monthlyArtId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.MonthlyArtDto$Response result = apiInstance.updateMonthlyArt(body, shopId, monthlyArtId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MonthlyArtControllerApi.updateMonthlyArt: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMonthlyArtControllerApi();
$body = ; // Com.nailcase.model.dto.MonthlyArtDto$Request | 
$shopId = 789; // Long | 
$monthlyArtId = 789; // Long | 

try {
    $result = $api_instance->updateMonthlyArt($body, $shopId, $monthlyArtId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MonthlyArtControllerApi->updateMonthlyArt: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MonthlyArtControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MonthlyArtControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.MonthlyArtDto$Request->new(); # Com.nailcase.model.dto.MonthlyArtDto$Request | 
my $shopId = 789; # Long | 
my $monthlyArtId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MonthlyArtControllerApi()
body =  # Com.nailcase.model.dto.MonthlyArtDto$Request | 
shopId = 789 # Long | 
monthlyArtId = 789 # Long | 

try: 
    api_response = api_instance.update_monthly_art(body, shopId, monthlyArtId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MonthlyArtControllerApi->updateMonthlyArt: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
monthlyArtId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK


uploadImages1


/shops/{shopId}/monthly-art/images

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/{shopId}/monthly-art/images?files="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MonthlyArtControllerApi;

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

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        array[byte[]] files = ; // array[byte[]] | 
        Long shopId = 789; // Long | 
        try {
            array[com.nailcase.model.dto.MonthlyArtImageDto] result = apiInstance.uploadImages1(files, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#uploadImages1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MonthlyArtControllerApi;

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        array[byte[]] files = ; // array[byte[]] | 
        Long shopId = 789; // Long | 
        try {
            array[com.nailcase.model.dto.MonthlyArtImageDto] result = apiInstance.uploadImages1(files, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#uploadImages1");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[byte[]] *files = ; // 
Long *shopId = 789; // 

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

[apiInstance uploadImages1With:files
    shopId:shopId
              completionHandler: ^(array[com.nailcase.model.dto.MonthlyArtImageDto] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.MonthlyArtControllerApi()
var files = ; // {{array[byte[]]}} 
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class uploadImages1Example
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MonthlyArtControllerApi();
            var files = new array[byte[]](); // array[byte[]] | 
            var shopId = 789;  // Long | 

            try
            {
                array[com.nailcase.model.dto.MonthlyArtImageDto] result = apiInstance.uploadImages1(files, shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MonthlyArtControllerApi.uploadImages1: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMonthlyArtControllerApi();
$files = ; // array[byte[]] | 
$shopId = 789; // Long | 

try {
    $result = $api_instance->uploadImages1($files, $shopId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MonthlyArtControllerApi->uploadImages1: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MonthlyArtControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MonthlyArtControllerApi->new();
my $files = []; # array[byte[]] | 
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MonthlyArtControllerApi()
files =  # array[byte[]] | 
shopId = 789 # Long | 

try: 
    api_response = api_instance.upload_images1(files, shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MonthlyArtControllerApi->uploadImages1: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
Query parameters
Name Description
files*
array[byte[]] (binary)
Required

Responses

Status: 201 - Created


viewMonthlyArt


/shops/{shopId}/monthly-art/{monthlyArtId}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/{shopId}/monthly-art/{monthlyArtId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.MonthlyArtControllerApi;

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

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        Long shopId = 789; // Long | 
        Long monthlyArtId = 789; // Long | 
        try {
            com.nailcase.model.dto.MonthlyArtDto$Response result = apiInstance.viewMonthlyArt(shopId, monthlyArtId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#viewMonthlyArt");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.MonthlyArtControllerApi;

public class MonthlyArtControllerApiExample {

    public static void main(String[] args) {
        MonthlyArtControllerApi apiInstance = new MonthlyArtControllerApi();
        Long shopId = 789; // Long | 
        Long monthlyArtId = 789; // Long | 
        try {
            com.nailcase.model.dto.MonthlyArtDto$Response result = apiInstance.viewMonthlyArt(shopId, monthlyArtId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling MonthlyArtControllerApi#viewMonthlyArt");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 
Long *monthlyArtId = 789; // 

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

[apiInstance viewMonthlyArtWith:shopId
    monthlyArtId:monthlyArtId
              completionHandler: ^(com.nailcase.model.dto.MonthlyArtDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.MonthlyArtControllerApi()
var shopId = 789; // {{Long}} 
var monthlyArtId = 789; // {{Long}} 

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

namespace Example
{
    public class viewMonthlyArtExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MonthlyArtControllerApi();
            var shopId = 789;  // Long | 
            var monthlyArtId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.MonthlyArtDto$Response result = apiInstance.viewMonthlyArt(shopId, monthlyArtId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MonthlyArtControllerApi.viewMonthlyArt: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiMonthlyArtControllerApi();
$shopId = 789; // Long | 
$monthlyArtId = 789; // Long | 

try {
    $result = $api_instance->viewMonthlyArt($shopId, $monthlyArtId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MonthlyArtControllerApi->viewMonthlyArt: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::MonthlyArtControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::MonthlyArtControllerApi->new();
my $shopId = 789; # Long | 
my $monthlyArtId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.MonthlyArtControllerApi()
shopId = 789 # Long | 
monthlyArtId = 789 # Long | 

try: 
    api_response = api_instance.view_monthly_art(shopId, monthlyArtId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MonthlyArtControllerApi->viewMonthlyArt: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
monthlyArtId*
Long (int64)
Required

Responses

Status: 200 - OK


PostController

addImageToPost


/shops/{shopId}/announcements/{announcementId}/images

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/announcements/{announcementId}/images?files="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PostControllerApi;

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

public class PostControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        PostControllerApi apiInstance = new PostControllerApi();
        Long announcementId = 789; // Long | 
        array[byte[]] files = ; // array[byte[]] | 
        String shopId = shopId_example; // String | 
        try {
            apiInstance.addImageToPost(announcementId, files, shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#addImageToPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PostControllerApi;

public class PostControllerApiExample {

    public static void main(String[] args) {
        PostControllerApi apiInstance = new PostControllerApi();
        Long announcementId = 789; // Long | 
        array[byte[]] files = ; // array[byte[]] | 
        String shopId = shopId_example; // String | 
        try {
            apiInstance.addImageToPost(announcementId, files, shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#addImageToPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *announcementId = 789; // 
array[byte[]] *files = ; // 
String *shopId = shopId_example; // 

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

[apiInstance addImageToPostWith:announcementId
    files:files
    shopId:shopId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.PostControllerApi()
var announcementId = 789; // {{Long}} 
var files = ; // {{array[byte[]]}} 
var shopId = shopId_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.addImageToPost(announcementId, files, shopId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class addImageToPostExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PostControllerApi();
            var announcementId = 789;  // Long | 
            var files = new array[byte[]](); // array[byte[]] | 
            var shopId = shopId_example;  // String | 

            try
            {
                apiInstance.addImageToPost(announcementId, files, shopId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PostControllerApi.addImageToPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPostControllerApi();
$announcementId = 789; // Long | 
$files = ; // array[byte[]] | 
$shopId = shopId_example; // String | 

try {
    $api_instance->addImageToPost($announcementId, $files, $shopId);
} catch (Exception $e) {
    echo 'Exception when calling PostControllerApi->addImageToPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PostControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PostControllerApi->new();
my $announcementId = 789; # Long | 
my $files = []; # array[byte[]] | 
my $shopId = shopId_example; # String | 

eval { 
    $api_instance->addImageToPost(announcementId => $announcementId, files => $files, shopId => $shopId);
};
if ($@) {
    warn "Exception when calling PostControllerApi->addImageToPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PostControllerApi()
announcementId = 789 # Long | 
files =  # array[byte[]] | 
shopId = shopId_example # String | 

try: 
    api_instance.add_image_to_post(announcementId, files, shopId)
except ApiException as e:
    print("Exception when calling PostControllerApi->addImageToPost: %s\n" % e)

Parameters

Path parameters
Name Description
announcementId*
Long (int64)
Required
shopId*
String
Required
Query parameters
Name Description
files*
array[byte[]] (binary)
Required

Responses

Status: 201 - Created


deleteComment


/shops/{shopId}/announcements/{announcementId}/comments/{commentId}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/announcements/{announcementId}/comments/{commentId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PostControllerApi;

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

public class PostControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        PostControllerApi apiInstance = new PostControllerApi();
        Long shopId = 789; // Long | 
        Long announcementId = 789; // Long | 
        Long commentId = 789; // Long | 
        try {
            apiInstance.deleteComment(shopId, announcementId, commentId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#deleteComment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PostControllerApi;

public class PostControllerApiExample {

    public static void main(String[] args) {
        PostControllerApi apiInstance = new PostControllerApi();
        Long shopId = 789; // Long | 
        Long announcementId = 789; // Long | 
        Long commentId = 789; // Long | 
        try {
            apiInstance.deleteComment(shopId, announcementId, commentId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#deleteComment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 
Long *announcementId = 789; // 
Long *commentId = 789; // 

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

[apiInstance deleteCommentWith:shopId
    announcementId:announcementId
    commentId:commentId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.PostControllerApi()
var shopId = 789; // {{Long}} 
var announcementId = 789; // {{Long}} 
var commentId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteComment(shopId, announcementId, commentId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteCommentExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PostControllerApi();
            var shopId = 789;  // Long | 
            var announcementId = 789;  // Long | 
            var commentId = 789;  // Long | 

            try
            {
                apiInstance.deleteComment(shopId, announcementId, commentId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PostControllerApi.deleteComment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPostControllerApi();
$shopId = 789; // Long | 
$announcementId = 789; // Long | 
$commentId = 789; // Long | 

try {
    $api_instance->deleteComment($shopId, $announcementId, $commentId);
} catch (Exception $e) {
    echo 'Exception when calling PostControllerApi->deleteComment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PostControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PostControllerApi->new();
my $shopId = 789; # Long | 
my $announcementId = 789; # Long | 
my $commentId = 789; # Long | 

eval { 
    $api_instance->deleteComment(shopId => $shopId, announcementId => $announcementId, commentId => $commentId);
};
if ($@) {
    warn "Exception when calling PostControllerApi->deleteComment: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PostControllerApi()
shopId = 789 # Long | 
announcementId = 789 # Long | 
commentId = 789 # Long | 

try: 
    api_instance.delete_comment(shopId, announcementId, commentId)
except ApiException as e:
    print("Exception when calling PostControllerApi->deleteComment: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
announcementId*
Long (int64)
Required
commentId*
Long (int64)
Required

Responses

Status: 204 - No Content


deletePost


/shops/{shopId}/announcements/{announcementId}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/announcements/{announcementId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PostControllerApi;

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

public class PostControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        PostControllerApi apiInstance = new PostControllerApi();
        Long shopId = 789; // Long | 
        Long announcementId = 789; // Long | 
        try {
            apiInstance.deletePost(shopId, announcementId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#deletePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PostControllerApi;

public class PostControllerApiExample {

    public static void main(String[] args) {
        PostControllerApi apiInstance = new PostControllerApi();
        Long shopId = 789; // Long | 
        Long announcementId = 789; // Long | 
        try {
            apiInstance.deletePost(shopId, announcementId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#deletePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 
Long *announcementId = 789; // 

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

[apiInstance deletePostWith:shopId
    announcementId:announcementId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.PostControllerApi()
var shopId = 789; // {{Long}} 
var announcementId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deletePost(shopId, announcementId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deletePostExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PostControllerApi();
            var shopId = 789;  // Long | 
            var announcementId = 789;  // Long | 

            try
            {
                apiInstance.deletePost(shopId, announcementId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PostControllerApi.deletePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPostControllerApi();
$shopId = 789; // Long | 
$announcementId = 789; // Long | 

try {
    $api_instance->deletePost($shopId, $announcementId);
} catch (Exception $e) {
    echo 'Exception when calling PostControllerApi->deletePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PostControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PostControllerApi->new();
my $shopId = 789; # Long | 
my $announcementId = 789; # Long | 

eval { 
    $api_instance->deletePost(shopId => $shopId, announcementId => $announcementId);
};
if ($@) {
    warn "Exception when calling PostControllerApi->deletePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PostControllerApi()
shopId = 789 # Long | 
announcementId = 789 # Long | 

try: 
    api_instance.delete_post(shopId, announcementId)
except ApiException as e:
    print("Exception when calling PostControllerApi->deletePost: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
announcementId*
Long (int64)
Required

Responses

Status: 204 - No Content


likePost


/shops/{shopId}/announcements/{announcementId}/like

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/announcements/{announcementId}/like"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PostControllerApi;

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

public class PostControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        PostControllerApi apiInstance = new PostControllerApi();
        Long announcementId = 789; // Long | 
        Long shopId = 789; // Long | 
        try {
            apiInstance.likePost(announcementId, shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#likePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PostControllerApi;

public class PostControllerApiExample {

    public static void main(String[] args) {
        PostControllerApi apiInstance = new PostControllerApi();
        Long announcementId = 789; // Long | 
        Long shopId = 789; // Long | 
        try {
            apiInstance.likePost(announcementId, shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#likePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *announcementId = 789; // 
Long *shopId = 789; // 

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

[apiInstance likePostWith:announcementId
    shopId:shopId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.PostControllerApi()
var announcementId = 789; // {{Long}} 
var shopId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.likePost(announcementId, shopId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class likePostExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PostControllerApi();
            var announcementId = 789;  // Long | 
            var shopId = 789;  // Long | 

            try
            {
                apiInstance.likePost(announcementId, shopId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PostControllerApi.likePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPostControllerApi();
$announcementId = 789; // Long | 
$shopId = 789; // Long | 

try {
    $api_instance->likePost($announcementId, $shopId);
} catch (Exception $e) {
    echo 'Exception when calling PostControllerApi->likePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PostControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PostControllerApi->new();
my $announcementId = 789; # Long | 
my $shopId = 789; # Long | 

eval { 
    $api_instance->likePost(announcementId => $announcementId, shopId => $shopId);
};
if ($@) {
    warn "Exception when calling PostControllerApi->likePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PostControllerApi()
announcementId = 789 # Long | 
shopId = 789 # Long | 

try: 
    api_instance.like_post(announcementId, shopId)
except ApiException as e:
    print("Exception when calling PostControllerApi->likePost: %s\n" % e)

Parameters

Path parameters
Name Description
announcementId*
Long (int64)
Required
shopId*
Long (int64)
Required

Responses

Status: 204 - No Content


listShopNews


/shops/{shopId}/announcements

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/{shopId}/announcements"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PostControllerApi;

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

public class PostControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        PostControllerApi apiInstance = new PostControllerApi();
        Long shopId = 789; // Long | 
        try {
            array[com.nailcase.model.dto.PostDto$Response] result = apiInstance.listShopNews(shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#listShopNews");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PostControllerApi;

public class PostControllerApiExample {

    public static void main(String[] args) {
        PostControllerApi apiInstance = new PostControllerApi();
        Long shopId = 789; // Long | 
        try {
            array[com.nailcase.model.dto.PostDto$Response] result = apiInstance.listShopNews(shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#listShopNews");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 

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

[apiInstance listShopNewsWith:shopId
              completionHandler: ^(array[com.nailcase.model.dto.PostDto$Response] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.PostControllerApi()
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class listShopNewsExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PostControllerApi();
            var shopId = 789;  // Long | 

            try
            {
                array[com.nailcase.model.dto.PostDto$Response] result = apiInstance.listShopNews(shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PostControllerApi.listShopNews: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPostControllerApi();
$shopId = 789; // Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PostControllerApi->new();
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PostControllerApi()
shopId = 789 # Long | 

try: 
    api_response = api_instance.list_shop_news(shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PostControllerApi->listShopNews: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required

Responses

Status: 200 - OK


registerComment


/shops/{shopId}/announcements/{announcementId}/comments

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/announcements/{announcementId}/comments"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PostControllerApi;

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

public class PostControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        PostControllerApi apiInstance = new PostControllerApi();
        Com.nailcase.model.dto.PostCommentDto$Request body = ; // Com.nailcase.model.dto.PostCommentDto$Request | 
        Long shopId = 789; // Long | 
        Long announcementId = 789; // Long | 
        try {
            com.nailcase.model.dto.PostCommentDto$Response result = apiInstance.registerComment(body, shopId, announcementId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#registerComment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PostControllerApi;

public class PostControllerApiExample {

    public static void main(String[] args) {
        PostControllerApi apiInstance = new PostControllerApi();
        Com.nailcase.model.dto.PostCommentDto$Request body = ; // Com.nailcase.model.dto.PostCommentDto$Request | 
        Long shopId = 789; // Long | 
        Long announcementId = 789; // Long | 
        try {
            com.nailcase.model.dto.PostCommentDto$Response result = apiInstance.registerComment(body, shopId, announcementId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#registerComment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.PostCommentDto$Request *body = ; // 
Long *shopId = 789; // 
Long *announcementId = 789; // 

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

[apiInstance registerCommentWith:body
    shopId:shopId
    announcementId:announcementId
              completionHandler: ^(com.nailcase.model.dto.PostCommentDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.PostControllerApi()
var body = ; // {{Com.nailcase.model.dto.PostCommentDto$Request}} 
var shopId = 789; // {{Long}} 
var announcementId = 789; // {{Long}} 

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

namespace Example
{
    public class registerCommentExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PostControllerApi();
            var body = new Com.nailcase.model.dto.PostCommentDto$Request(); // Com.nailcase.model.dto.PostCommentDto$Request | 
            var shopId = 789;  // Long | 
            var announcementId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.PostCommentDto$Response result = apiInstance.registerComment(body, shopId, announcementId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PostControllerApi.registerComment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPostControllerApi();
$body = ; // Com.nailcase.model.dto.PostCommentDto$Request | 
$shopId = 789; // Long | 
$announcementId = 789; // Long | 

try {
    $result = $api_instance->registerComment($body, $shopId, $announcementId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PostControllerApi->registerComment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PostControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PostControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.PostCommentDto$Request->new(); # Com.nailcase.model.dto.PostCommentDto$Request | 
my $shopId = 789; # Long | 
my $announcementId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PostControllerApi()
body =  # Com.nailcase.model.dto.PostCommentDto$Request | 
shopId = 789 # Long | 
announcementId = 789 # Long | 

try: 
    api_response = api_instance.register_comment(body, shopId, announcementId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PostControllerApi->registerComment: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
announcementId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 201 - Created


registerPost


/shops/{shopId}/announcements

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/announcements"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PostControllerApi;

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

public class PostControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        PostControllerApi apiInstance = new PostControllerApi();
        Com.nailcase.model.dto.PostDto$Request body = ; // Com.nailcase.model.dto.PostDto$Request | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.PostDto$Response result = apiInstance.registerPost(body, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#registerPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PostControllerApi;

public class PostControllerApiExample {

    public static void main(String[] args) {
        PostControllerApi apiInstance = new PostControllerApi();
        Com.nailcase.model.dto.PostDto$Request body = ; // Com.nailcase.model.dto.PostDto$Request | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.PostDto$Response result = apiInstance.registerPost(body, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#registerPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.PostDto$Request *body = ; // 
Long *shopId = 789; // 

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

[apiInstance registerPostWith:body
    shopId:shopId
              completionHandler: ^(com.nailcase.model.dto.PostDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.PostControllerApi()
var body = ; // {{Com.nailcase.model.dto.PostDto$Request}} 
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class registerPostExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PostControllerApi();
            var body = new Com.nailcase.model.dto.PostDto$Request(); // Com.nailcase.model.dto.PostDto$Request | 
            var shopId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.PostDto$Response result = apiInstance.registerPost(body, shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PostControllerApi.registerPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPostControllerApi();
$body = ; // Com.nailcase.model.dto.PostDto$Request | 
$shopId = 789; // Long | 

try {
    $result = $api_instance->registerPost($body, $shopId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PostControllerApi->registerPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PostControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PostControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.PostDto$Request->new(); # Com.nailcase.model.dto.PostDto$Request | 
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PostControllerApi()
body =  # Com.nailcase.model.dto.PostDto$Request | 
shopId = 789 # Long | 

try: 
    api_response = api_instance.register_post(body, shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PostControllerApi->registerPost: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 201 - Created


removeImageFromPost


/shops/{shopId}/announcements/{announcementId}/images/{imageId}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/announcements/{announcementId}/images/{imageId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PostControllerApi;

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

public class PostControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        PostControllerApi apiInstance = new PostControllerApi();
        Long announcementId = 789; // Long | 
        Long imageId = 789; // Long | 
        String shopId = shopId_example; // String | 
        try {
            apiInstance.removeImageFromPost(announcementId, imageId, shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#removeImageFromPost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PostControllerApi;

public class PostControllerApiExample {

    public static void main(String[] args) {
        PostControllerApi apiInstance = new PostControllerApi();
        Long announcementId = 789; // Long | 
        Long imageId = 789; // Long | 
        String shopId = shopId_example; // String | 
        try {
            apiInstance.removeImageFromPost(announcementId, imageId, shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#removeImageFromPost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *announcementId = 789; // 
Long *imageId = 789; // 
String *shopId = shopId_example; // 

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

[apiInstance removeImageFromPostWith:announcementId
    imageId:imageId
    shopId:shopId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.PostControllerApi()
var announcementId = 789; // {{Long}} 
var imageId = 789; // {{Long}} 
var shopId = shopId_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.removeImageFromPost(announcementId, imageId, shopId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class removeImageFromPostExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PostControllerApi();
            var announcementId = 789;  // Long | 
            var imageId = 789;  // Long | 
            var shopId = shopId_example;  // String | 

            try
            {
                apiInstance.removeImageFromPost(announcementId, imageId, shopId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PostControllerApi.removeImageFromPost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPostControllerApi();
$announcementId = 789; // Long | 
$imageId = 789; // Long | 
$shopId = shopId_example; // String | 

try {
    $api_instance->removeImageFromPost($announcementId, $imageId, $shopId);
} catch (Exception $e) {
    echo 'Exception when calling PostControllerApi->removeImageFromPost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PostControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PostControllerApi->new();
my $announcementId = 789; # Long | 
my $imageId = 789; # Long | 
my $shopId = shopId_example; # String | 

eval { 
    $api_instance->removeImageFromPost(announcementId => $announcementId, imageId => $imageId, shopId => $shopId);
};
if ($@) {
    warn "Exception when calling PostControllerApi->removeImageFromPost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PostControllerApi()
announcementId = 789 # Long | 
imageId = 789 # Long | 
shopId = shopId_example # String | 

try: 
    api_instance.remove_image_from_post(announcementId, imageId, shopId)
except ApiException as e:
    print("Exception when calling PostControllerApi->removeImageFromPost: %s\n" % e)

Parameters

Path parameters
Name Description
announcementId*
Long (int64)
Required
imageId*
Long (int64)
Required
shopId*
String
Required

Responses

Status: 204 - No Content


unLikePost


/shops/{shopId}/announcements/{announcementId}/unlike

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/announcements/{announcementId}/unlike"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PostControllerApi;

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

public class PostControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        PostControllerApi apiInstance = new PostControllerApi();
        Long announcementId = 789; // Long | 
        Long shopId = 789; // Long | 
        try {
            apiInstance.unLikePost(announcementId, shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#unLikePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PostControllerApi;

public class PostControllerApiExample {

    public static void main(String[] args) {
        PostControllerApi apiInstance = new PostControllerApi();
        Long announcementId = 789; // Long | 
        Long shopId = 789; // Long | 
        try {
            apiInstance.unLikePost(announcementId, shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#unLikePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *announcementId = 789; // 
Long *shopId = 789; // 

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

[apiInstance unLikePostWith:announcementId
    shopId:shopId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.PostControllerApi()
var announcementId = 789; // {{Long}} 
var shopId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.unLikePost(announcementId, shopId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class unLikePostExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PostControllerApi();
            var announcementId = 789;  // Long | 
            var shopId = 789;  // Long | 

            try
            {
                apiInstance.unLikePost(announcementId, shopId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PostControllerApi.unLikePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPostControllerApi();
$announcementId = 789; // Long | 
$shopId = 789; // Long | 

try {
    $api_instance->unLikePost($announcementId, $shopId);
} catch (Exception $e) {
    echo 'Exception when calling PostControllerApi->unLikePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PostControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PostControllerApi->new();
my $announcementId = 789; # Long | 
my $shopId = 789; # Long | 

eval { 
    $api_instance->unLikePost(announcementId => $announcementId, shopId => $shopId);
};
if ($@) {
    warn "Exception when calling PostControllerApi->unLikePost: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PostControllerApi()
announcementId = 789 # Long | 
shopId = 789 # Long | 

try: 
    api_instance.un_like_post(announcementId, shopId)
except ApiException as e:
    print("Exception when calling PostControllerApi->unLikePost: %s\n" % e)

Parameters

Path parameters
Name Description
announcementId*
Long (int64)
Required
shopId*
Long (int64)
Required

Responses

Status: 204 - No Content


updateComment


/shops/{shopId}/announcements/{announcementId}/comments/{commentId}

Usage and SDK Samples

curl -X PUT\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/announcements/{announcementId}/comments/{commentId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PostControllerApi;

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

public class PostControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        PostControllerApi apiInstance = new PostControllerApi();
        Com.nailcase.model.dto.PostCommentDto$Request body = ; // Com.nailcase.model.dto.PostCommentDto$Request | 
        Long shopId = 789; // Long | 
        Long announcementId = 789; // Long | 
        Long commentId = 789; // Long | 
        try {
            com.nailcase.model.dto.PostCommentDto$Response result = apiInstance.updateComment(body, shopId, announcementId, commentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#updateComment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PostControllerApi;

public class PostControllerApiExample {

    public static void main(String[] args) {
        PostControllerApi apiInstance = new PostControllerApi();
        Com.nailcase.model.dto.PostCommentDto$Request body = ; // Com.nailcase.model.dto.PostCommentDto$Request | 
        Long shopId = 789; // Long | 
        Long announcementId = 789; // Long | 
        Long commentId = 789; // Long | 
        try {
            com.nailcase.model.dto.PostCommentDto$Response result = apiInstance.updateComment(body, shopId, announcementId, commentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#updateComment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.PostCommentDto$Request *body = ; // 
Long *shopId = 789; // 
Long *announcementId = 789; // 
Long *commentId = 789; // 

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

[apiInstance updateCommentWith:body
    shopId:shopId
    announcementId:announcementId
    commentId:commentId
              completionHandler: ^(com.nailcase.model.dto.PostCommentDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.PostControllerApi()
var body = ; // {{Com.nailcase.model.dto.PostCommentDto$Request}} 
var shopId = 789; // {{Long}} 
var announcementId = 789; // {{Long}} 
var commentId = 789; // {{Long}} 

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

namespace Example
{
    public class updateCommentExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PostControllerApi();
            var body = new Com.nailcase.model.dto.PostCommentDto$Request(); // Com.nailcase.model.dto.PostCommentDto$Request | 
            var shopId = 789;  // Long | 
            var announcementId = 789;  // Long | 
            var commentId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.PostCommentDto$Response result = apiInstance.updateComment(body, shopId, announcementId, commentId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PostControllerApi.updateComment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPostControllerApi();
$body = ; // Com.nailcase.model.dto.PostCommentDto$Request | 
$shopId = 789; // Long | 
$announcementId = 789; // Long | 
$commentId = 789; // Long | 

try {
    $result = $api_instance->updateComment($body, $shopId, $announcementId, $commentId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PostControllerApi->updateComment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PostControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PostControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.PostCommentDto$Request->new(); # Com.nailcase.model.dto.PostCommentDto$Request | 
my $shopId = 789; # Long | 
my $announcementId = 789; # Long | 
my $commentId = 789; # Long | 

eval { 
    my $result = $api_instance->updateComment(body => $body, shopId => $shopId, announcementId => $announcementId, commentId => $commentId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling PostControllerApi->updateComment: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PostControllerApi()
body =  # Com.nailcase.model.dto.PostCommentDto$Request | 
shopId = 789 # Long | 
announcementId = 789 # Long | 
commentId = 789 # Long | 

try: 
    api_response = api_instance.update_comment(body, shopId, announcementId, commentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PostControllerApi->updateComment: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
announcementId*
Long (int64)
Required
commentId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK


updatePost


/shops/{shopId}/announcements/{announcementId}

Usage and SDK Samples

curl -X PUT\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/announcements/{announcementId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PostControllerApi;

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

public class PostControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        PostControllerApi apiInstance = new PostControllerApi();
        Com.nailcase.model.dto.PostDto$Request body = ; // Com.nailcase.model.dto.PostDto$Request | 
        Long announcementId = 789; // Long | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.PostDto$Response result = apiInstance.updatePost(body, announcementId, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#updatePost");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PostControllerApi;

public class PostControllerApiExample {

    public static void main(String[] args) {
        PostControllerApi apiInstance = new PostControllerApi();
        Com.nailcase.model.dto.PostDto$Request body = ; // Com.nailcase.model.dto.PostDto$Request | 
        Long announcementId = 789; // Long | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.PostDto$Response result = apiInstance.updatePost(body, announcementId, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#updatePost");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.PostDto$Request *body = ; // 
Long *announcementId = 789; // 
Long *shopId = 789; // 

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

[apiInstance updatePostWith:body
    announcementId:announcementId
    shopId:shopId
              completionHandler: ^(com.nailcase.model.dto.PostDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.PostControllerApi()
var body = ; // {{Com.nailcase.model.dto.PostDto$Request}} 
var announcementId = 789; // {{Long}} 
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class updatePostExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PostControllerApi();
            var body = new Com.nailcase.model.dto.PostDto$Request(); // Com.nailcase.model.dto.PostDto$Request | 
            var announcementId = 789;  // Long | 
            var shopId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.PostDto$Response result = apiInstance.updatePost(body, announcementId, shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PostControllerApi.updatePost: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPostControllerApi();
$body = ; // Com.nailcase.model.dto.PostDto$Request | 
$announcementId = 789; // Long | 
$shopId = 789; // Long | 

try {
    $result = $api_instance->updatePost($body, $announcementId, $shopId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PostControllerApi->updatePost: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PostControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PostControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.PostDto$Request->new(); # Com.nailcase.model.dto.PostDto$Request | 
my $announcementId = 789; # Long | 
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PostControllerApi()
body =  # Com.nailcase.model.dto.PostDto$Request | 
announcementId = 789 # Long | 
shopId = 789 # Long | 

try: 
    api_response = api_instance.update_post(body, announcementId, shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PostControllerApi->updatePost: %s\n" % e)

Parameters

Path parameters
Name Description
announcementId*
Long (int64)
Required
shopId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK


uploadImages2


/shops/{shopId}/announcements/images

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/{shopId}/announcements/images?files="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PostControllerApi;

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

public class PostControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        PostControllerApi apiInstance = new PostControllerApi();
        array[byte[]] files = ; // array[byte[]] | 
        Long shopId = 789; // Long | 
        try {
            array[com.nailcase.model.dto.PostImageDto] result = apiInstance.uploadImages2(files, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#uploadImages2");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PostControllerApi;

public class PostControllerApiExample {

    public static void main(String[] args) {
        PostControllerApi apiInstance = new PostControllerApi();
        array[byte[]] files = ; // array[byte[]] | 
        Long shopId = 789; // Long | 
        try {
            array[com.nailcase.model.dto.PostImageDto] result = apiInstance.uploadImages2(files, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#uploadImages2");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[byte[]] *files = ; // 
Long *shopId = 789; // 

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

[apiInstance uploadImages2With:files
    shopId:shopId
              completionHandler: ^(array[com.nailcase.model.dto.PostImageDto] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.PostControllerApi()
var files = ; // {{array[byte[]]}} 
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class uploadImages2Example
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PostControllerApi();
            var files = new array[byte[]](); // array[byte[]] | 
            var shopId = 789;  // Long | 

            try
            {
                array[com.nailcase.model.dto.PostImageDto] result = apiInstance.uploadImages2(files, shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PostControllerApi.uploadImages2: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPostControllerApi();
$files = ; // array[byte[]] | 
$shopId = 789; // Long | 

try {
    $result = $api_instance->uploadImages2($files, $shopId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PostControllerApi->uploadImages2: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PostControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PostControllerApi->new();
my $files = []; # array[byte[]] | 
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PostControllerApi()
files =  # array[byte[]] | 
shopId = 789 # Long | 

try: 
    api_response = api_instance.upload_images2(files, shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PostControllerApi->uploadImages2: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
Query parameters
Name Description
files*
array[byte[]] (binary)
Required

Responses

Status: 201 - Created


viewShopNews


/shops/{shopId}/announcements/{announcementId}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/{shopId}/announcements/{announcementId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.PostControllerApi;

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

public class PostControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        PostControllerApi apiInstance = new PostControllerApi();
        Long announcementId = 789; // Long | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.PostDto$Response result = apiInstance.viewShopNews(announcementId, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#viewShopNews");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.PostControllerApi;

public class PostControllerApiExample {

    public static void main(String[] args) {
        PostControllerApi apiInstance = new PostControllerApi();
        Long announcementId = 789; // Long | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.PostDto$Response result = apiInstance.viewShopNews(announcementId, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling PostControllerApi#viewShopNews");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *announcementId = 789; // 
Long *shopId = 789; // 

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

[apiInstance viewShopNewsWith:announcementId
    shopId:shopId
              completionHandler: ^(com.nailcase.model.dto.PostDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.PostControllerApi()
var announcementId = 789; // {{Long}} 
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class viewShopNewsExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new PostControllerApi();
            var announcementId = 789;  // Long | 
            var shopId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.PostDto$Response result = apiInstance.viewShopNews(announcementId, shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PostControllerApi.viewShopNews: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiPostControllerApi();
$announcementId = 789; // Long | 
$shopId = 789; // Long | 

try {
    $result = $api_instance->viewShopNews($announcementId, $shopId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PostControllerApi->viewShopNews: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::PostControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::PostControllerApi->new();
my $announcementId = 789; # Long | 
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.PostControllerApi()
announcementId = 789 # Long | 
shopId = 789 # Long | 

try: 
    api_response = api_instance.view_shop_news(announcementId, shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling PostControllerApi->viewShopNews: %s\n" % e)

Parameters

Path parameters
Name Description
announcementId*
Long (int64)
Required
shopId*
Long (int64)
Required

Responses

Status: 200 - OK


ReservationController

listReservation


/shops/{shopId}/reservations

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/{shopId}/reservations?startTime=&endTime="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReservationControllerApi;

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

public class ReservationControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReservationControllerApi apiInstance = new ReservationControllerApi();
        Long shopId = 789; // Long | 
        Long startTime = 789; // Long | 
        Long endTime = 789; // Long | 
        try {
            array[com.nailcase.model.dto.ReservationDto$Response] result = apiInstance.listReservation(shopId, startTime, endTime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReservationControllerApi#listReservation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReservationControllerApi;

public class ReservationControllerApiExample {

    public static void main(String[] args) {
        ReservationControllerApi apiInstance = new ReservationControllerApi();
        Long shopId = 789; // Long | 
        Long startTime = 789; // Long | 
        Long endTime = 789; // Long | 
        try {
            array[com.nailcase.model.dto.ReservationDto$Response] result = apiInstance.listReservation(shopId, startTime, endTime);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReservationControllerApi#listReservation");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 
Long *startTime = 789; // 
Long *endTime = 789; // 

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

[apiInstance listReservationWith:shopId
    startTime:startTime
    endTime:endTime
              completionHandler: ^(array[com.nailcase.model.dto.ReservationDto$Response] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReservationControllerApi()
var shopId = 789; // {{Long}} 
var startTime = 789; // {{Long}} 
var endTime = 789; // {{Long}} 

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

namespace Example
{
    public class listReservationExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReservationControllerApi();
            var shopId = 789;  // Long | 
            var startTime = 789;  // Long | 
            var endTime = 789;  // Long | 

            try
            {
                array[com.nailcase.model.dto.ReservationDto$Response] result = apiInstance.listReservation(shopId, startTime, endTime);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReservationControllerApi.listReservation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReservationControllerApi();
$shopId = 789; // Long | 
$startTime = 789; // Long | 
$endTime = 789; // Long | 

try {
    $result = $api_instance->listReservation($shopId, $startTime, $endTime);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReservationControllerApi->listReservation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReservationControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReservationControllerApi->new();
my $shopId = 789; # Long | 
my $startTime = 789; # Long | 
my $endTime = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReservationControllerApi()
shopId = 789 # Long | 
startTime = 789 # Long | 
endTime = 789 # Long | 

try: 
    api_response = api_instance.list_reservation(shopId, startTime, endTime)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReservationControllerApi->listReservation: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
Query parameters
Name Description
startTime*
Long (int64)
Required
endTime*
Long (int64)
Required

Responses

Status: 200 - OK


registerReservation


/shops/{shopId}/reservations

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/reservations"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReservationControllerApi;

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

public class ReservationControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReservationControllerApi apiInstance = new ReservationControllerApi();
        Com.nailcase.model.dto.ReservationDto$Post body = ; // Com.nailcase.model.dto.ReservationDto$Post | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReservationDto$Response result = apiInstance.registerReservation(body, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReservationControllerApi#registerReservation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReservationControllerApi;

public class ReservationControllerApiExample {

    public static void main(String[] args) {
        ReservationControllerApi apiInstance = new ReservationControllerApi();
        Com.nailcase.model.dto.ReservationDto$Post body = ; // Com.nailcase.model.dto.ReservationDto$Post | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReservationDto$Response result = apiInstance.registerReservation(body, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReservationControllerApi#registerReservation");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.ReservationDto$Post *body = ; // 
Long *shopId = 789; // 

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

[apiInstance registerReservationWith:body
    shopId:shopId
              completionHandler: ^(com.nailcase.model.dto.ReservationDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReservationControllerApi()
var body = ; // {{Com.nailcase.model.dto.ReservationDto$Post}} 
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class registerReservationExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReservationControllerApi();
            var body = new Com.nailcase.model.dto.ReservationDto$Post(); // Com.nailcase.model.dto.ReservationDto$Post | 
            var shopId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.ReservationDto$Response result = apiInstance.registerReservation(body, shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReservationControllerApi.registerReservation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReservationControllerApi();
$body = ; // Com.nailcase.model.dto.ReservationDto$Post | 
$shopId = 789; // Long | 

try {
    $result = $api_instance->registerReservation($body, $shopId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReservationControllerApi->registerReservation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReservationControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReservationControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.ReservationDto$Post->new(); # Com.nailcase.model.dto.ReservationDto$Post | 
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReservationControllerApi()
body =  # Com.nailcase.model.dto.ReservationDto$Post | 
shopId = 789 # Long | 

try: 
    api_response = api_instance.register_reservation(body, shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReservationControllerApi->registerReservation: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK


updateReservation


/shops/{shopId}/reservations/{reservationId}

Usage and SDK Samples

curl -X PATCH\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/reservations/{reservationId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReservationControllerApi;

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

public class ReservationControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReservationControllerApi apiInstance = new ReservationControllerApi();
        Com.nailcase.model.dto.ReservationDto$Patch body = ; // Com.nailcase.model.dto.ReservationDto$Patch | 
        Long shopId = 789; // Long | 
        Long reservationId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReservationDto$Response result = apiInstance.updateReservation(body, shopId, reservationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReservationControllerApi#updateReservation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReservationControllerApi;

public class ReservationControllerApiExample {

    public static void main(String[] args) {
        ReservationControllerApi apiInstance = new ReservationControllerApi();
        Com.nailcase.model.dto.ReservationDto$Patch body = ; // Com.nailcase.model.dto.ReservationDto$Patch | 
        Long shopId = 789; // Long | 
        Long reservationId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReservationDto$Response result = apiInstance.updateReservation(body, shopId, reservationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReservationControllerApi#updateReservation");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.ReservationDto$Patch *body = ; // 
Long *shopId = 789; // 
Long *reservationId = 789; // 

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

[apiInstance updateReservationWith:body
    shopId:shopId
    reservationId:reservationId
              completionHandler: ^(com.nailcase.model.dto.ReservationDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReservationControllerApi()
var body = ; // {{Com.nailcase.model.dto.ReservationDto$Patch}} 
var shopId = 789; // {{Long}} 
var reservationId = 789; // {{Long}} 

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

namespace Example
{
    public class updateReservationExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReservationControllerApi();
            var body = new Com.nailcase.model.dto.ReservationDto$Patch(); // Com.nailcase.model.dto.ReservationDto$Patch | 
            var shopId = 789;  // Long | 
            var reservationId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.ReservationDto$Response result = apiInstance.updateReservation(body, shopId, reservationId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReservationControllerApi.updateReservation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReservationControllerApi();
$body = ; // Com.nailcase.model.dto.ReservationDto$Patch | 
$shopId = 789; // Long | 
$reservationId = 789; // Long | 

try {
    $result = $api_instance->updateReservation($body, $shopId, $reservationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReservationControllerApi->updateReservation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReservationControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReservationControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.ReservationDto$Patch->new(); # Com.nailcase.model.dto.ReservationDto$Patch | 
my $shopId = 789; # Long | 
my $reservationId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReservationControllerApi()
body =  # Com.nailcase.model.dto.ReservationDto$Patch | 
shopId = 789 # Long | 
reservationId = 789 # Long | 

try: 
    api_response = api_instance.update_reservation(body, shopId, reservationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReservationControllerApi->updateReservation: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
reservationId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK


viewReservation


/shops/{shopId}/reservations/{reservationId}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/{shopId}/reservations/{reservationId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReservationControllerApi;

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

public class ReservationControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReservationControllerApi apiInstance = new ReservationControllerApi();
        Long shopId = 789; // Long | 
        Long reservationId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReservationDto$Response result = apiInstance.viewReservation(shopId, reservationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReservationControllerApi#viewReservation");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReservationControllerApi;

public class ReservationControllerApiExample {

    public static void main(String[] args) {
        ReservationControllerApi apiInstance = new ReservationControllerApi();
        Long shopId = 789; // Long | 
        Long reservationId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReservationDto$Response result = apiInstance.viewReservation(shopId, reservationId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReservationControllerApi#viewReservation");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 
Long *reservationId = 789; // 

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

[apiInstance viewReservationWith:shopId
    reservationId:reservationId
              completionHandler: ^(com.nailcase.model.dto.ReservationDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReservationControllerApi()
var shopId = 789; // {{Long}} 
var reservationId = 789; // {{Long}} 

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

namespace Example
{
    public class viewReservationExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReservationControllerApi();
            var shopId = 789;  // Long | 
            var reservationId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.ReservationDto$Response result = apiInstance.viewReservation(shopId, reservationId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReservationControllerApi.viewReservation: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReservationControllerApi();
$shopId = 789; // Long | 
$reservationId = 789; // Long | 

try {
    $result = $api_instance->viewReservation($shopId, $reservationId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReservationControllerApi->viewReservation: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReservationControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReservationControllerApi->new();
my $shopId = 789; # Long | 
my $reservationId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReservationControllerApi()
shopId = 789 # Long | 
reservationId = 789 # Long | 

try: 
    api_response = api_instance.view_reservation(shopId, reservationId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReservationControllerApi->viewReservation: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
reservationId*
Long (int64)
Required

Responses

Status: 200 - OK


ReviewController

addImageToReview


/shops/{shopId}/reviews/{reviewId}/images

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/reviews/{reviewId}/images?files="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReviewControllerApi;

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

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Long reviewId = 789; // Long | 
        array[byte[]] files = ; // array[byte[]] | 
        String shopId = shopId_example; // String | 
        try {
            apiInstance.addImageToReview(reviewId, files, shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#addImageToReview");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReviewControllerApi;

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Long reviewId = 789; // Long | 
        array[byte[]] files = ; // array[byte[]] | 
        String shopId = shopId_example; // String | 
        try {
            apiInstance.addImageToReview(reviewId, files, shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#addImageToReview");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *reviewId = 789; // 
array[byte[]] *files = ; // 
String *shopId = shopId_example; // 

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

[apiInstance addImageToReviewWith:reviewId
    files:files
    shopId:shopId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReviewControllerApi()
var reviewId = 789; // {{Long}} 
var files = ; // {{array[byte[]]}} 
var shopId = shopId_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.addImageToReview(reviewId, files, shopId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class addImageToReviewExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReviewControllerApi();
            var reviewId = 789;  // Long | 
            var files = new array[byte[]](); // array[byte[]] | 
            var shopId = shopId_example;  // String | 

            try
            {
                apiInstance.addImageToReview(reviewId, files, shopId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReviewControllerApi.addImageToReview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReviewControllerApi();
$reviewId = 789; // Long | 
$files = ; // array[byte[]] | 
$shopId = shopId_example; // String | 

try {
    $api_instance->addImageToReview($reviewId, $files, $shopId);
} catch (Exception $e) {
    echo 'Exception when calling ReviewControllerApi->addImageToReview: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReviewControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReviewControllerApi->new();
my $reviewId = 789; # Long | 
my $files = []; # array[byte[]] | 
my $shopId = shopId_example; # String | 

eval { 
    $api_instance->addImageToReview(reviewId => $reviewId, files => $files, shopId => $shopId);
};
if ($@) {
    warn "Exception when calling ReviewControllerApi->addImageToReview: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReviewControllerApi()
reviewId = 789 # Long | 
files =  # array[byte[]] | 
shopId = shopId_example # String | 

try: 
    api_instance.add_image_to_review(reviewId, files, shopId)
except ApiException as e:
    print("Exception when calling ReviewControllerApi->addImageToReview: %s\n" % e)

Parameters

Path parameters
Name Description
reviewId*
Long (int64)
Required
shopId*
String
Required
Query parameters
Name Description
files*
array[byte[]] (binary)
Required

Responses

Status: 201 - Created


deleteReview


/shops/{shopId}/reviews/{reviewId}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/reviews/{reviewId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReviewControllerApi;

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

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Long shopId = 789; // Long | 
        Long reviewId = 789; // Long | 
        try {
            apiInstance.deleteReview(shopId, reviewId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#deleteReview");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReviewControllerApi;

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Long shopId = 789; // Long | 
        Long reviewId = 789; // Long | 
        try {
            apiInstance.deleteReview(shopId, reviewId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#deleteReview");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 
Long *reviewId = 789; // 

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

[apiInstance deleteReviewWith:shopId
    reviewId:reviewId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReviewControllerApi()
var shopId = 789; // {{Long}} 
var reviewId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteReview(shopId, reviewId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteReviewExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReviewControllerApi();
            var shopId = 789;  // Long | 
            var reviewId = 789;  // Long | 

            try
            {
                apiInstance.deleteReview(shopId, reviewId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReviewControllerApi.deleteReview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReviewControllerApi();
$shopId = 789; // Long | 
$reviewId = 789; // Long | 

try {
    $api_instance->deleteReview($shopId, $reviewId);
} catch (Exception $e) {
    echo 'Exception when calling ReviewControllerApi->deleteReview: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReviewControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReviewControllerApi->new();
my $shopId = 789; # Long | 
my $reviewId = 789; # Long | 

eval { 
    $api_instance->deleteReview(shopId => $shopId, reviewId => $reviewId);
};
if ($@) {
    warn "Exception when calling ReviewControllerApi->deleteReview: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReviewControllerApi()
shopId = 789 # Long | 
reviewId = 789 # Long | 

try: 
    api_instance.delete_review(shopId, reviewId)
except ApiException as e:
    print("Exception when calling ReviewControllerApi->deleteReview: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
reviewId*
Long (int64)
Required

Responses

Status: 204 - No Content


deleteReviewComment


/shops/{shopId}/reviews/{reviewId}/comments/{commentId}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/reviews/{reviewId}/comments/{commentId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReviewControllerApi;

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

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Long shopId = 789; // Long | 
        Long reviewId = 789; // Long | 
        Long commentId = 789; // Long | 
        try {
            apiInstance.deleteReviewComment(shopId, reviewId, commentId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#deleteReviewComment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReviewControllerApi;

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Long shopId = 789; // Long | 
        Long reviewId = 789; // Long | 
        Long commentId = 789; // Long | 
        try {
            apiInstance.deleteReviewComment(shopId, reviewId, commentId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#deleteReviewComment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 
Long *reviewId = 789; // 
Long *commentId = 789; // 

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

[apiInstance deleteReviewCommentWith:shopId
    reviewId:reviewId
    commentId:commentId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReviewControllerApi()
var shopId = 789; // {{Long}} 
var reviewId = 789; // {{Long}} 
var commentId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteReviewComment(shopId, reviewId, commentId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteReviewCommentExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReviewControllerApi();
            var shopId = 789;  // Long | 
            var reviewId = 789;  // Long | 
            var commentId = 789;  // Long | 

            try
            {
                apiInstance.deleteReviewComment(shopId, reviewId, commentId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReviewControllerApi.deleteReviewComment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReviewControllerApi();
$shopId = 789; // Long | 
$reviewId = 789; // Long | 
$commentId = 789; // Long | 

try {
    $api_instance->deleteReviewComment($shopId, $reviewId, $commentId);
} catch (Exception $e) {
    echo 'Exception when calling ReviewControllerApi->deleteReviewComment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReviewControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReviewControllerApi->new();
my $shopId = 789; # Long | 
my $reviewId = 789; # Long | 
my $commentId = 789; # Long | 

eval { 
    $api_instance->deleteReviewComment(shopId => $shopId, reviewId => $reviewId, commentId => $commentId);
};
if ($@) {
    warn "Exception when calling ReviewControllerApi->deleteReviewComment: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReviewControllerApi()
shopId = 789 # Long | 
reviewId = 789 # Long | 
commentId = 789 # Long | 

try: 
    api_instance.delete_review_comment(shopId, reviewId, commentId)
except ApiException as e:
    print("Exception when calling ReviewControllerApi->deleteReviewComment: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
reviewId*
Long (int64)
Required
commentId*
Long (int64)
Required

Responses

Status: 204 - No Content


listReviews


/shops/{shopId}/reviews

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/{shopId}/reviews"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReviewControllerApi;

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

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Long shopId = 789; // Long | 
        try {
            array[com.nailcase.model.dto.ReviewDto$Response] result = apiInstance.listReviews(shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#listReviews");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReviewControllerApi;

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Long shopId = 789; // Long | 
        try {
            array[com.nailcase.model.dto.ReviewDto$Response] result = apiInstance.listReviews(shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#listReviews");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 

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

[apiInstance listReviewsWith:shopId
              completionHandler: ^(array[com.nailcase.model.dto.ReviewDto$Response] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReviewControllerApi()
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class listReviewsExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReviewControllerApi();
            var shopId = 789;  // Long | 

            try
            {
                array[com.nailcase.model.dto.ReviewDto$Response] result = apiInstance.listReviews(shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReviewControllerApi.listReviews: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReviewControllerApi();
$shopId = 789; // Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReviewControllerApi->new();
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReviewControllerApi()
shopId = 789 # Long | 

try: 
    api_response = api_instance.list_reviews(shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReviewControllerApi->listReviews: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required

Responses

Status: 200 - OK


registerReview


/shops/{shopId}/reviews

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/reviews"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReviewControllerApi;

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

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Com.nailcase.model.dto.ReviewDto$Request body = ; // Com.nailcase.model.dto.ReviewDto$Request | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReviewDto$Response result = apiInstance.registerReview(body, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#registerReview");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReviewControllerApi;

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Com.nailcase.model.dto.ReviewDto$Request body = ; // Com.nailcase.model.dto.ReviewDto$Request | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReviewDto$Response result = apiInstance.registerReview(body, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#registerReview");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.ReviewDto$Request *body = ; // 
Long *shopId = 789; // 

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

[apiInstance registerReviewWith:body
    shopId:shopId
              completionHandler: ^(com.nailcase.model.dto.ReviewDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReviewControllerApi()
var body = ; // {{Com.nailcase.model.dto.ReviewDto$Request}} 
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class registerReviewExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReviewControllerApi();
            var body = new Com.nailcase.model.dto.ReviewDto$Request(); // Com.nailcase.model.dto.ReviewDto$Request | 
            var shopId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.ReviewDto$Response result = apiInstance.registerReview(body, shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReviewControllerApi.registerReview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReviewControllerApi();
$body = ; // Com.nailcase.model.dto.ReviewDto$Request | 
$shopId = 789; // Long | 

try {
    $result = $api_instance->registerReview($body, $shopId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReviewControllerApi->registerReview: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReviewControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReviewControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.ReviewDto$Request->new(); # Com.nailcase.model.dto.ReviewDto$Request | 
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReviewControllerApi()
body =  # Com.nailcase.model.dto.ReviewDto$Request | 
shopId = 789 # Long | 

try: 
    api_response = api_instance.register_review(body, shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReviewControllerApi->registerReview: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 201 - Created


registerReviewComment


/shops/{shopId}/reviews/{reviewId}/comments

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/reviews/{reviewId}/comments"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReviewControllerApi;

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

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Com.nailcase.model.dto.ReviewCommentDto$Request body = ; // Com.nailcase.model.dto.ReviewCommentDto$Request | 
        Long shopId = 789; // Long | 
        Long reviewId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReviewCommentDto$Response result = apiInstance.registerReviewComment(body, shopId, reviewId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#registerReviewComment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReviewControllerApi;

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Com.nailcase.model.dto.ReviewCommentDto$Request body = ; // Com.nailcase.model.dto.ReviewCommentDto$Request | 
        Long shopId = 789; // Long | 
        Long reviewId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReviewCommentDto$Response result = apiInstance.registerReviewComment(body, shopId, reviewId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#registerReviewComment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.ReviewCommentDto$Request *body = ; // 
Long *shopId = 789; // 
Long *reviewId = 789; // 

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

[apiInstance registerReviewCommentWith:body
    shopId:shopId
    reviewId:reviewId
              completionHandler: ^(com.nailcase.model.dto.ReviewCommentDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReviewControllerApi()
var body = ; // {{Com.nailcase.model.dto.ReviewCommentDto$Request}} 
var shopId = 789; // {{Long}} 
var reviewId = 789; // {{Long}} 

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

namespace Example
{
    public class registerReviewCommentExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReviewControllerApi();
            var body = new Com.nailcase.model.dto.ReviewCommentDto$Request(); // Com.nailcase.model.dto.ReviewCommentDto$Request | 
            var shopId = 789;  // Long | 
            var reviewId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.ReviewCommentDto$Response result = apiInstance.registerReviewComment(body, shopId, reviewId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReviewControllerApi.registerReviewComment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReviewControllerApi();
$body = ; // Com.nailcase.model.dto.ReviewCommentDto$Request | 
$shopId = 789; // Long | 
$reviewId = 789; // Long | 

try {
    $result = $api_instance->registerReviewComment($body, $shopId, $reviewId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReviewControllerApi->registerReviewComment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReviewControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReviewControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.ReviewCommentDto$Request->new(); # Com.nailcase.model.dto.ReviewCommentDto$Request | 
my $shopId = 789; # Long | 
my $reviewId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReviewControllerApi()
body =  # Com.nailcase.model.dto.ReviewCommentDto$Request | 
shopId = 789 # Long | 
reviewId = 789 # Long | 

try: 
    api_response = api_instance.register_review_comment(body, shopId, reviewId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReviewControllerApi->registerReviewComment: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
reviewId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 201 - Created


removeImageFromReview


/shops/{shopId}/reviews/{reviewId}/images/{imageId}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/reviews/{reviewId}/images/{imageId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReviewControllerApi;

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

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Long reviewId = 789; // Long | 
        Long imageId = 789; // Long | 
        String shopId = shopId_example; // String | 
        try {
            apiInstance.removeImageFromReview(reviewId, imageId, shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#removeImageFromReview");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReviewControllerApi;

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Long reviewId = 789; // Long | 
        Long imageId = 789; // Long | 
        String shopId = shopId_example; // String | 
        try {
            apiInstance.removeImageFromReview(reviewId, imageId, shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#removeImageFromReview");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *reviewId = 789; // 
Long *imageId = 789; // 
String *shopId = shopId_example; // 

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

[apiInstance removeImageFromReviewWith:reviewId
    imageId:imageId
    shopId:shopId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReviewControllerApi()
var reviewId = 789; // {{Long}} 
var imageId = 789; // {{Long}} 
var shopId = shopId_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.removeImageFromReview(reviewId, imageId, shopId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class removeImageFromReviewExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReviewControllerApi();
            var reviewId = 789;  // Long | 
            var imageId = 789;  // Long | 
            var shopId = shopId_example;  // String | 

            try
            {
                apiInstance.removeImageFromReview(reviewId, imageId, shopId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReviewControllerApi.removeImageFromReview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReviewControllerApi();
$reviewId = 789; // Long | 
$imageId = 789; // Long | 
$shopId = shopId_example; // String | 

try {
    $api_instance->removeImageFromReview($reviewId, $imageId, $shopId);
} catch (Exception $e) {
    echo 'Exception when calling ReviewControllerApi->removeImageFromReview: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReviewControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReviewControllerApi->new();
my $reviewId = 789; # Long | 
my $imageId = 789; # Long | 
my $shopId = shopId_example; # String | 

eval { 
    $api_instance->removeImageFromReview(reviewId => $reviewId, imageId => $imageId, shopId => $shopId);
};
if ($@) {
    warn "Exception when calling ReviewControllerApi->removeImageFromReview: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReviewControllerApi()
reviewId = 789 # Long | 
imageId = 789 # Long | 
shopId = shopId_example # String | 

try: 
    api_instance.remove_image_from_review(reviewId, imageId, shopId)
except ApiException as e:
    print("Exception when calling ReviewControllerApi->removeImageFromReview: %s\n" % e)

Parameters

Path parameters
Name Description
reviewId*
Long (int64)
Required
imageId*
Long (int64)
Required
shopId*
String
Required

Responses

Status: 204 - No Content


updateReview


/shops/{shopId}/reviews/{reviewId}

Usage and SDK Samples

curl -X PUT\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/reviews/{reviewId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReviewControllerApi;

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

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Com.nailcase.model.dto.ReviewDto$Request body = ; // Com.nailcase.model.dto.ReviewDto$Request | 
        Long shopId = 789; // Long | 
        Long reviewId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReviewDto$Response result = apiInstance.updateReview(body, shopId, reviewId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#updateReview");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReviewControllerApi;

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Com.nailcase.model.dto.ReviewDto$Request body = ; // Com.nailcase.model.dto.ReviewDto$Request | 
        Long shopId = 789; // Long | 
        Long reviewId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReviewDto$Response result = apiInstance.updateReview(body, shopId, reviewId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#updateReview");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.ReviewDto$Request *body = ; // 
Long *shopId = 789; // 
Long *reviewId = 789; // 

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

[apiInstance updateReviewWith:body
    shopId:shopId
    reviewId:reviewId
              completionHandler: ^(com.nailcase.model.dto.ReviewDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReviewControllerApi()
var body = ; // {{Com.nailcase.model.dto.ReviewDto$Request}} 
var shopId = 789; // {{Long}} 
var reviewId = 789; // {{Long}} 

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

namespace Example
{
    public class updateReviewExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReviewControllerApi();
            var body = new Com.nailcase.model.dto.ReviewDto$Request(); // Com.nailcase.model.dto.ReviewDto$Request | 
            var shopId = 789;  // Long | 
            var reviewId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.ReviewDto$Response result = apiInstance.updateReview(body, shopId, reviewId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReviewControllerApi.updateReview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReviewControllerApi();
$body = ; // Com.nailcase.model.dto.ReviewDto$Request | 
$shopId = 789; // Long | 
$reviewId = 789; // Long | 

try {
    $result = $api_instance->updateReview($body, $shopId, $reviewId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReviewControllerApi->updateReview: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReviewControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReviewControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.ReviewDto$Request->new(); # Com.nailcase.model.dto.ReviewDto$Request | 
my $shopId = 789; # Long | 
my $reviewId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReviewControllerApi()
body =  # Com.nailcase.model.dto.ReviewDto$Request | 
shopId = 789 # Long | 
reviewId = 789 # Long | 

try: 
    api_response = api_instance.update_review(body, shopId, reviewId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReviewControllerApi->updateReview: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
reviewId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK


updateReviewComment


/shops/{shopId}/reviews/{reviewId}/comments/{commentId}

Usage and SDK Samples

curl -X PUT\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/reviews/{reviewId}/comments/{commentId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReviewControllerApi;

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

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Com.nailcase.model.dto.ReviewCommentDto$Request body = ; // Com.nailcase.model.dto.ReviewCommentDto$Request | 
        Long shopId = 789; // Long | 
        Long reviewId = 789; // Long | 
        Long commentId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReviewCommentDto$Response result = apiInstance.updateReviewComment(body, shopId, reviewId, commentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#updateReviewComment");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReviewControllerApi;

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Com.nailcase.model.dto.ReviewCommentDto$Request body = ; // Com.nailcase.model.dto.ReviewCommentDto$Request | 
        Long shopId = 789; // Long | 
        Long reviewId = 789; // Long | 
        Long commentId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReviewCommentDto$Response result = apiInstance.updateReviewComment(body, shopId, reviewId, commentId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#updateReviewComment");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.ReviewCommentDto$Request *body = ; // 
Long *shopId = 789; // 
Long *reviewId = 789; // 
Long *commentId = 789; // 

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

[apiInstance updateReviewCommentWith:body
    shopId:shopId
    reviewId:reviewId
    commentId:commentId
              completionHandler: ^(com.nailcase.model.dto.ReviewCommentDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReviewControllerApi()
var body = ; // {{Com.nailcase.model.dto.ReviewCommentDto$Request}} 
var shopId = 789; // {{Long}} 
var reviewId = 789; // {{Long}} 
var commentId = 789; // {{Long}} 

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

namespace Example
{
    public class updateReviewCommentExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReviewControllerApi();
            var body = new Com.nailcase.model.dto.ReviewCommentDto$Request(); // Com.nailcase.model.dto.ReviewCommentDto$Request | 
            var shopId = 789;  // Long | 
            var reviewId = 789;  // Long | 
            var commentId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.ReviewCommentDto$Response result = apiInstance.updateReviewComment(body, shopId, reviewId, commentId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReviewControllerApi.updateReviewComment: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReviewControllerApi();
$body = ; // Com.nailcase.model.dto.ReviewCommentDto$Request | 
$shopId = 789; // Long | 
$reviewId = 789; // Long | 
$commentId = 789; // Long | 

try {
    $result = $api_instance->updateReviewComment($body, $shopId, $reviewId, $commentId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReviewControllerApi->updateReviewComment: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReviewControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReviewControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.ReviewCommentDto$Request->new(); # Com.nailcase.model.dto.ReviewCommentDto$Request | 
my $shopId = 789; # Long | 
my $reviewId = 789; # Long | 
my $commentId = 789; # Long | 

eval { 
    my $result = $api_instance->updateReviewComment(body => $body, shopId => $shopId, reviewId => $reviewId, commentId => $commentId);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling ReviewControllerApi->updateReviewComment: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReviewControllerApi()
body =  # Com.nailcase.model.dto.ReviewCommentDto$Request | 
shopId = 789 # Long | 
reviewId = 789 # Long | 
commentId = 789 # Long | 

try: 
    api_response = api_instance.update_review_comment(body, shopId, reviewId, commentId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReviewControllerApi->updateReviewComment: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
reviewId*
Long (int64)
Required
commentId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK


uploadImages


/shops/{shopId}/reviews/images

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/{shopId}/reviews/images?files="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReviewControllerApi;

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

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReviewControllerApi apiInstance = new ReviewControllerApi();
        array[byte[]] files = ; // array[byte[]] | 
        Long shopId = 789; // Long | 
        try {
            array[com.nailcase.model.dto.ReviewImageDto] result = apiInstance.uploadImages(files, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#uploadImages");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReviewControllerApi;

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ReviewControllerApi apiInstance = new ReviewControllerApi();
        array[byte[]] files = ; // array[byte[]] | 
        Long shopId = 789; // Long | 
        try {
            array[com.nailcase.model.dto.ReviewImageDto] result = apiInstance.uploadImages(files, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#uploadImages");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
array[byte[]] *files = ; // 
Long *shopId = 789; // 

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

[apiInstance uploadImagesWith:files
    shopId:shopId
              completionHandler: ^(array[com.nailcase.model.dto.ReviewImageDto] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReviewControllerApi()
var files = ; // {{array[byte[]]}} 
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class uploadImagesExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReviewControllerApi();
            var files = new array[byte[]](); // array[byte[]] | 
            var shopId = 789;  // Long | 

            try
            {
                array[com.nailcase.model.dto.ReviewImageDto] result = apiInstance.uploadImages(files, shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReviewControllerApi.uploadImages: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReviewControllerApi();
$files = ; // array[byte[]] | 
$shopId = 789; // Long | 

try {
    $result = $api_instance->uploadImages($files, $shopId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReviewControllerApi->uploadImages: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReviewControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReviewControllerApi->new();
my $files = []; # array[byte[]] | 
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReviewControllerApi()
files =  # array[byte[]] | 
shopId = 789 # Long | 

try: 
    api_response = api_instance.upload_images(files, shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReviewControllerApi->uploadImages: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
Query parameters
Name Description
files*
array[byte[]] (binary)
Required

Responses

Status: 201 - Created


viewReview


/shops/{shopId}/reviews/{reviewId}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/{shopId}/reviews/{reviewId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ReviewControllerApi;

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

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Long shopId = 789; // Long | 
        Long reviewId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReviewDto$Response result = apiInstance.viewReview(shopId, reviewId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#viewReview");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ReviewControllerApi;

public class ReviewControllerApiExample {

    public static void main(String[] args) {
        ReviewControllerApi apiInstance = new ReviewControllerApi();
        Long shopId = 789; // Long | 
        Long reviewId = 789; // Long | 
        try {
            com.nailcase.model.dto.ReviewDto$Response result = apiInstance.viewReview(shopId, reviewId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ReviewControllerApi#viewReview");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 
Long *reviewId = 789; // 

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

[apiInstance viewReviewWith:shopId
    reviewId:reviewId
              completionHandler: ^(com.nailcase.model.dto.ReviewDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ReviewControllerApi()
var shopId = 789; // {{Long}} 
var reviewId = 789; // {{Long}} 

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

namespace Example
{
    public class viewReviewExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ReviewControllerApi();
            var shopId = 789;  // Long | 
            var reviewId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.ReviewDto$Response result = apiInstance.viewReview(shopId, reviewId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ReviewControllerApi.viewReview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiReviewControllerApi();
$shopId = 789; // Long | 
$reviewId = 789; // Long | 

try {
    $result = $api_instance->viewReview($shopId, $reviewId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ReviewControllerApi->viewReview: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ReviewControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ReviewControllerApi->new();
my $shopId = 789; # Long | 
my $reviewId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ReviewControllerApi()
shopId = 789 # Long | 
reviewId = 789 # Long | 

try: 
    api_response = api_instance.view_review(shopId, reviewId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ReviewControllerApi->viewReview: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
reviewId*
Long (int64)
Required

Responses

Status: 200 - OK


ScheduleController

listSchedule


/shops/{shopId}/schedule

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/schedule"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ScheduleControllerApi;

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

public class ScheduleControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ScheduleControllerApi apiInstance = new ScheduleControllerApi();
        String shopId = shopId_example; // String | 
        try {
            apiInstance.listSchedule(shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleControllerApi#listSchedule");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ScheduleControllerApi;

public class ScheduleControllerApiExample {

    public static void main(String[] args) {
        ScheduleControllerApi apiInstance = new ScheduleControllerApi();
        String shopId = shopId_example; // String | 
        try {
            apiInstance.listSchedule(shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ScheduleControllerApi#listSchedule");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *shopId = shopId_example; // 

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

[apiInstance listScheduleWith:shopId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ScheduleControllerApi()
var shopId = shopId_example; // {{String}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.listSchedule(shopId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listScheduleExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ScheduleControllerApi();
            var shopId = shopId_example;  // String | 

            try
            {
                apiInstance.listSchedule(shopId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ScheduleControllerApi.listSchedule: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiScheduleControllerApi();
$shopId = shopId_example; // String | 

try {
    $api_instance->listSchedule($shopId);
} catch (Exception $e) {
    echo 'Exception when calling ScheduleControllerApi->listSchedule: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ScheduleControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ScheduleControllerApi->new();
my $shopId = shopId_example; # String | 

eval { 
    $api_instance->listSchedule(shopId => $shopId);
};
if ($@) {
    warn "Exception when calling ScheduleControllerApi->listSchedule: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ScheduleControllerApi()
shopId = shopId_example # String | 

try: 
    api_instance.list_schedule(shopId)
except ApiException as e:
    print("Exception when calling ScheduleControllerApi->listSchedule: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
String
Required

Responses

Status: 200 - OK


ShopController

deleteImage


/shops/image/{imageId}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/image/{imageId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ShopControllerApi;

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

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ShopControllerApi apiInstance = new ShopControllerApi();
        Long imageId = 789; // Long | 
        try {
            apiInstance.deleteImage(imageId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#deleteImage");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ShopControllerApi;

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ShopControllerApi apiInstance = new ShopControllerApi();
        Long imageId = 789; // Long | 
        try {
            apiInstance.deleteImage(imageId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#deleteImage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *imageId = 789; // 

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

[apiInstance deleteImageWith:imageId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ShopControllerApi()
var imageId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteImage(imageId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteImageExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ShopControllerApi();
            var imageId = 789;  // Long | 

            try
            {
                apiInstance.deleteImage(imageId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ShopControllerApi.deleteImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiShopControllerApi();
$imageId = 789; // Long | 

try {
    $api_instance->deleteImage($imageId);
} catch (Exception $e) {
    echo 'Exception when calling ShopControllerApi->deleteImage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ShopControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ShopControllerApi->new();
my $imageId = 789; # Long | 

eval { 
    $api_instance->deleteImage(imageId => $imageId);
};
if ($@) {
    warn "Exception when calling ShopControllerApi->deleteImage: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ShopControllerApi()
imageId = 789 # Long | 

try: 
    api_instance.delete_image(imageId)
except ApiException as e:
    print("Exception when calling ShopControllerApi->deleteImage: %s\n" % e)

Parameters

Path parameters
Name Description
imageId*
Long (int64)
Required

Responses

Status: 204 - No Content


deleteShop


/shops/{shopId}

Usage and SDK Samples

curl -X DELETE\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ShopControllerApi;

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

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ShopControllerApi apiInstance = new ShopControllerApi();
        Long shopId = 789; // Long | 
        try {
            apiInstance.deleteShop(shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#deleteShop");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ShopControllerApi;

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ShopControllerApi apiInstance = new ShopControllerApi();
        Long shopId = 789; // Long | 
        try {
            apiInstance.deleteShop(shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#deleteShop");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 

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

[apiInstance deleteShopWith:shopId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ShopControllerApi()
var shopId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.deleteShop(shopId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class deleteShopExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ShopControllerApi();
            var shopId = 789;  // Long | 

            try
            {
                apiInstance.deleteShop(shopId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ShopControllerApi.deleteShop: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiShopControllerApi();
$shopId = 789; // Long | 

try {
    $api_instance->deleteShop($shopId);
} catch (Exception $e) {
    echo 'Exception when calling ShopControllerApi->deleteShop: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ShopControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ShopControllerApi->new();
my $shopId = 789; # Long | 

eval { 
    $api_instance->deleteShop(shopId => $shopId);
};
if ($@) {
    warn "Exception when calling ShopControllerApi->deleteShop: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ShopControllerApi()
shopId = 789 # Long | 

try: 
    api_instance.delete_shop(shopId)
except ApiException as e:
    print("Exception when calling ShopControllerApi->deleteShop: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required

Responses

Status: 204 - No Content


getShopById


/shops/{shopId}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/{shopId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ShopControllerApi;

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

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ShopControllerApi apiInstance = new ShopControllerApi();
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.ShopDto$Response result = apiInstance.getShopById(shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#getShopById");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ShopControllerApi;

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ShopControllerApi apiInstance = new ShopControllerApi();
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.ShopDto$Response result = apiInstance.getShopById(shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#getShopById");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 

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

[apiInstance getShopByIdWith:shopId
              completionHandler: ^(com.nailcase.model.dto.ShopDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ShopControllerApi()
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class getShopByIdExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ShopControllerApi();
            var shopId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.ShopDto$Response result = apiInstance.getShopById(shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ShopControllerApi.getShopById: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiShopControllerApi();
$shopId = 789; // Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ShopControllerApi->new();
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ShopControllerApi()
shopId = 789 # Long | 

try: 
    api_response = api_instance.get_shop_by_id(shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ShopControllerApi->getShopById: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required

Responses

Status: 200 - OK


getTags


/shops/tags

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/tags"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ShopControllerApi;

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

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ShopControllerApi apiInstance = new ShopControllerApi();
        try {
            array['String'] result = apiInstance.getTags();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#getTags");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ShopControllerApi;

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ShopControllerApi apiInstance = new ShopControllerApi();
        try {
            array['String'] result = apiInstance.getTags();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#getTags");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];

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

[apiInstance getTagsWithCompletionHandler: 
              ^(array['String'] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

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

namespace Example
{
    public class getTagsExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ShopControllerApi();

            try
            {
                array['String'] result = apiInstance.getTags();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ShopControllerApi.getTags: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiShopControllerApi();

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

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ShopControllerApi->new();

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ShopControllerApi()

try: 
    api_response = api_instance.get_tags()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ShopControllerApi->getTags: %s\n" % e)

Parameters

Responses

Status: 200 - OK


registerShop


/shops

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ShopControllerApi;

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

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ShopControllerApi apiInstance = new ShopControllerApi();
        Com.nailcase.model.dto.ShopDto$Post body = ; // Com.nailcase.model.dto.ShopDto$Post | 
        try {
            com.nailcase.model.dto.ShopDto$Response result = apiInstance.registerShop(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#registerShop");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ShopControllerApi;

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ShopControllerApi apiInstance = new ShopControllerApi();
        Com.nailcase.model.dto.ShopDto$Post body = ; // Com.nailcase.model.dto.ShopDto$Post | 
        try {
            com.nailcase.model.dto.ShopDto$Response result = apiInstance.registerShop(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#registerShop");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.ShopDto$Post *body = ; // 

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

[apiInstance registerShopWith:body
              completionHandler: ^(com.nailcase.model.dto.ShopDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ShopControllerApi()
var body = ; // {{Com.nailcase.model.dto.ShopDto$Post}} 

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

namespace Example
{
    public class registerShopExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ShopControllerApi();
            var body = new Com.nailcase.model.dto.ShopDto$Post(); // Com.nailcase.model.dto.ShopDto$Post | 

            try
            {
                com.nailcase.model.dto.ShopDto$Response result = apiInstance.registerShop(body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ShopControllerApi.registerShop: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiShopControllerApi();
$body = ; // Com.nailcase.model.dto.ShopDto$Post | 

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

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ShopControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.ShopDto$Post->new(); # Com.nailcase.model.dto.ShopDto$Post | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ShopControllerApi()
body =  # Com.nailcase.model.dto.ShopDto$Post | 

try: 
    api_response = api_instance.register_shop(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ShopControllerApi->registerShop: %s\n" % e)

Parameters

Body parameters
Name Description
body *

Responses

Status: 201 - Created


searchShop


/shops/search/{keyword}

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/search/{keyword}?page="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ShopControllerApi;

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

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ShopControllerApi apiInstance = new ShopControllerApi();
        String keyword = keyword_example; // String | 
        Integer page = 56; // Integer | 
        try {
            org.springframework.data.domain.PageCom.nailcase.model.dto.ShopDto$Response result = apiInstance.searchShop(keyword, page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#searchShop");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ShopControllerApi;

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ShopControllerApi apiInstance = new ShopControllerApi();
        String keyword = keyword_example; // String | 
        Integer page = 56; // Integer | 
        try {
            org.springframework.data.domain.PageCom.nailcase.model.dto.ShopDto$Response result = apiInstance.searchShop(keyword, page);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#searchShop");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *keyword = keyword_example; // 
Integer *page = 56; //  (optional) (default to 1)

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

[apiInstance searchShopWith:keyword
    page:page
              completionHandler: ^(org.springframework.data.domain.PageCom.nailcase.model.dto.ShopDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ShopControllerApi()
var keyword = keyword_example; // {{String}} 
var opts = { 
  'page': 56 // {{Integer}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.searchShop(keyword, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class searchShopExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ShopControllerApi();
            var keyword = keyword_example;  // String | 
            var page = 56;  // Integer |  (optional)  (default to 1)

            try
            {
                org.springframework.data.domain.PageCom.nailcase.model.dto.ShopDto$Response result = apiInstance.searchShop(keyword, page);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ShopControllerApi.searchShop: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiShopControllerApi();
$keyword = keyword_example; // String | 
$page = 56; // Integer | 

try {
    $result = $api_instance->searchShop($keyword, $page);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ShopControllerApi->searchShop: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ShopControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ShopControllerApi->new();
my $keyword = keyword_example; # String | 
my $page = 56; # Integer | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ShopControllerApi()
keyword = keyword_example # String | 
page = 56 # Integer |  (optional) (default to 1)

try: 
    api_response = api_instance.search_shop(keyword, page=page)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ShopControllerApi->searchShop: %s\n" % e)

Parameters

Path parameters
Name Description
keyword*
String
Required
Query parameters
Name Description
page
Integer (int32)

Responses

Status: 200 - OK


updateOverview


/shops/{shopId}/overview

Usage and SDK Samples

curl -X PATCH\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/overview"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ShopControllerApi;

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

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ShopControllerApi apiInstance = new ShopControllerApi();
        Com.nailcase.model.dto.ShopDto$Patch body = ; // Com.nailcase.model.dto.ShopDto$Patch | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.ShopDto$Response result = apiInstance.updateOverview(body, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#updateOverview");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ShopControllerApi;

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ShopControllerApi apiInstance = new ShopControllerApi();
        Com.nailcase.model.dto.ShopDto$Patch body = ; // Com.nailcase.model.dto.ShopDto$Patch | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.ShopDto$Response result = apiInstance.updateOverview(body, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#updateOverview");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.ShopDto$Patch *body = ; // 
Long *shopId = 789; // 

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

[apiInstance updateOverviewWith:body
    shopId:shopId
              completionHandler: ^(com.nailcase.model.dto.ShopDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ShopControllerApi()
var body = ; // {{Com.nailcase.model.dto.ShopDto$Patch}} 
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class updateOverviewExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ShopControllerApi();
            var body = new Com.nailcase.model.dto.ShopDto$Patch(); // Com.nailcase.model.dto.ShopDto$Patch | 
            var shopId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.ShopDto$Response result = apiInstance.updateOverview(body, shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ShopControllerApi.updateOverview: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiShopControllerApi();
$body = ; // Com.nailcase.model.dto.ShopDto$Patch | 
$shopId = 789; // Long | 

try {
    $result = $api_instance->updateOverview($body, $shopId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ShopControllerApi->updateOverview: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ShopControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ShopControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.ShopDto$Patch->new(); # Com.nailcase.model.dto.ShopDto$Patch | 
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ShopControllerApi()
body =  # Com.nailcase.model.dto.ShopDto$Patch | 
shopId = 789 # Long | 

try: 
    api_response = api_instance.update_overview(body, shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ShopControllerApi->updateOverview: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK


updateShop


/shops/{shopId}

Usage and SDK Samples

curl -X PUT\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ShopControllerApi;

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

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ShopControllerApi apiInstance = new ShopControllerApi();
        Com.nailcase.model.dto.ShopDto$Post body = ; // Com.nailcase.model.dto.ShopDto$Post | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.ShopDto$Response result = apiInstance.updateShop(body, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#updateShop");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ShopControllerApi;

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ShopControllerApi apiInstance = new ShopControllerApi();
        Com.nailcase.model.dto.ShopDto$Post body = ; // Com.nailcase.model.dto.ShopDto$Post | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.ShopDto$Response result = apiInstance.updateShop(body, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#updateShop");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.ShopDto$Post *body = ; // 
Long *shopId = 789; // 

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

[apiInstance updateShopWith:body
    shopId:shopId
              completionHandler: ^(com.nailcase.model.dto.ShopDto$Response output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ShopControllerApi()
var body = ; // {{Com.nailcase.model.dto.ShopDto$Post}} 
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class updateShopExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ShopControllerApi();
            var body = new Com.nailcase.model.dto.ShopDto$Post(); // Com.nailcase.model.dto.ShopDto$Post | 
            var shopId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.ShopDto$Response result = apiInstance.updateShop(body, shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ShopControllerApi.updateShop: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiShopControllerApi();
$body = ; // Com.nailcase.model.dto.ShopDto$Post | 
$shopId = 789; // Long | 

try {
    $result = $api_instance->updateShop($body, $shopId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ShopControllerApi->updateShop: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ShopControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ShopControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.ShopDto$Post->new(); # Com.nailcase.model.dto.ShopDto$Post | 
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ShopControllerApi()
body =  # Com.nailcase.model.dto.ShopDto$Post | 
shopId = 789 # Long | 

try: 
    api_response = api_instance.update_shop(body, shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ShopControllerApi->updateShop: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK


uploadImage


/shops/{shopId}/image

Usage and SDK Samples

curl -X POST\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/image"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ShopControllerApi;

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

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ShopControllerApi apiInstance = new ShopControllerApi();
        Long shopId = 789; // Long | 
        ShopId_image_body body = ; // ShopId_image_body | 
        try {
            'String' result = apiInstance.uploadImage(shopId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#uploadImage");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ShopControllerApi;

public class ShopControllerApiExample {

    public static void main(String[] args) {
        ShopControllerApi apiInstance = new ShopControllerApi();
        Long shopId = 789; // Long | 
        ShopId_image_body body = ; // ShopId_image_body | 
        try {
            'String' result = apiInstance.uploadImage(shopId, body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopControllerApi#uploadImage");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 
ShopId_image_body *body = ; //  (optional)

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

[apiInstance uploadImageWith:shopId
    body:body
              completionHandler: ^('String' output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ShopControllerApi()
var shopId = 789; // {{Long}} 
var opts = { 
  'body':  // {{ShopId_image_body}} 
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.uploadImage(shopId, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class uploadImageExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ShopControllerApi();
            var shopId = 789;  // Long | 
            var body = new ShopId_image_body(); // ShopId_image_body |  (optional) 

            try
            {
                'String' result = apiInstance.uploadImage(shopId, body);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ShopControllerApi.uploadImage: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiShopControllerApi();
$shopId = 789; // Long | 
$body = ; // ShopId_image_body | 

try {
    $result = $api_instance->uploadImage($shopId, $body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ShopControllerApi->uploadImage: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ShopControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ShopControllerApi->new();
my $shopId = 789; # Long | 
my $body = WWW::SwaggerClient::Object::ShopId_image_body->new(); # ShopId_image_body | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ShopControllerApi()
shopId = 789 # Long | 
body =  # ShopId_image_body |  (optional)

try: 
    api_response = api_instance.upload_image(shopId, body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ShopControllerApi->uploadImage: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
Body parameters
Name Description
body

Responses

Status: 201 - Created


ShopInfoController

listCovers


/shops/{shopId}/covers

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/covers"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ShopInfoControllerApi;

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

public class ShopInfoControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ShopInfoControllerApi apiInstance = new ShopInfoControllerApi();
        Long shopId = 789; // Long | 
        try {
            apiInstance.listCovers(shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopInfoControllerApi#listCovers");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ShopInfoControllerApi;

public class ShopInfoControllerApiExample {

    public static void main(String[] args) {
        ShopInfoControllerApi apiInstance = new ShopInfoControllerApi();
        Long shopId = 789; // Long | 
        try {
            apiInstance.listCovers(shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopInfoControllerApi#listCovers");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 

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

[apiInstance listCoversWith:shopId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ShopInfoControllerApi()
var shopId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.listCovers(shopId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class listCoversExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ShopInfoControllerApi();
            var shopId = 789;  // Long | 

            try
            {
                apiInstance.listCovers(shopId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ShopInfoControllerApi.listCovers: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiShopInfoControllerApi();
$shopId = 789; // Long | 

try {
    $api_instance->listCovers($shopId);
} catch (Exception $e) {
    echo 'Exception when calling ShopInfoControllerApi->listCovers: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ShopInfoControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ShopInfoControllerApi->new();
my $shopId = 789; # Long | 

eval { 
    $api_instance->listCovers(shopId => $shopId);
};
if ($@) {
    warn "Exception when calling ShopInfoControllerApi->listCovers: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ShopInfoControllerApi()
shopId = 789 # Long | 

try: 
    api_instance.list_covers(shopId)
except ApiException as e:
    print("Exception when calling ShopInfoControllerApi->listCovers: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required

Responses

Status: 200 - OK


updateCover


/shops/{shopId}/covers/{coverId}

Usage and SDK Samples

curl -X PATCH\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/covers/{coverId}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ShopInfoControllerApi;

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

public class ShopInfoControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ShopInfoControllerApi apiInstance = new ShopInfoControllerApi();
        Long shopId = 789; // Long | 
        Long coverId = 789; // Long | 
        try {
            apiInstance.updateCover(shopId, coverId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopInfoControllerApi#updateCover");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ShopInfoControllerApi;

public class ShopInfoControllerApiExample {

    public static void main(String[] args) {
        ShopInfoControllerApi apiInstance = new ShopInfoControllerApi();
        Long shopId = 789; // Long | 
        Long coverId = 789; // Long | 
        try {
            apiInstance.updateCover(shopId, coverId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopInfoControllerApi#updateCover");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 
Long *coverId = 789; // 

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

[apiInstance updateCoverWith:shopId
    coverId:coverId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ShopInfoControllerApi()
var shopId = 789; // {{Long}} 
var coverId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.updateCover(shopId, coverId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class updateCoverExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ShopInfoControllerApi();
            var shopId = 789;  // Long | 
            var coverId = 789;  // Long | 

            try
            {
                apiInstance.updateCover(shopId, coverId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ShopInfoControllerApi.updateCover: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiShopInfoControllerApi();
$shopId = 789; // Long | 
$coverId = 789; // Long | 

try {
    $api_instance->updateCover($shopId, $coverId);
} catch (Exception $e) {
    echo 'Exception when calling ShopInfoControllerApi->updateCover: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ShopInfoControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ShopInfoControllerApi->new();
my $shopId = 789; # Long | 
my $coverId = 789; # Long | 

eval { 
    $api_instance->updateCover(shopId => $shopId, coverId => $coverId);
};
if ($@) {
    warn "Exception when calling ShopInfoControllerApi->updateCover: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ShopInfoControllerApi()
shopId = 789 # Long | 
coverId = 789 # Long | 

try: 
    api_instance.update_cover(shopId, coverId)
except ApiException as e:
    print("Exception when calling ShopInfoControllerApi->updateCover: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
coverId*
Long (int64)
Required

Responses

Status: 200 - OK


viewInfo


/shops/{shopId}/info

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
"http://localhost:8081/api/v1/shops/{shopId}/info"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ShopInfoControllerApi;

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

public class ShopInfoControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        ShopInfoControllerApi apiInstance = new ShopInfoControllerApi();
        Long shopId = 789; // Long | 
        try {
            apiInstance.viewInfo(shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopInfoControllerApi#viewInfo");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ShopInfoControllerApi;

public class ShopInfoControllerApiExample {

    public static void main(String[] args) {
        ShopInfoControllerApi apiInstance = new ShopInfoControllerApi();
        Long shopId = 789; // Long | 
        try {
            apiInstance.viewInfo(shopId);
        } catch (ApiException e) {
            System.err.println("Exception when calling ShopInfoControllerApi#viewInfo");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 

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

[apiInstance viewInfoWith:shopId
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.ShopInfoControllerApi()
var shopId = 789; // {{Long}} 

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.viewInfo(shopId, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class viewInfoExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new ShopInfoControllerApi();
            var shopId = 789;  // Long | 

            try
            {
                apiInstance.viewInfo(shopId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ShopInfoControllerApi.viewInfo: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiShopInfoControllerApi();
$shopId = 789; // Long | 

try {
    $api_instance->viewInfo($shopId);
} catch (Exception $e) {
    echo 'Exception when calling ShopInfoControllerApi->viewInfo: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ShopInfoControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::ShopInfoControllerApi->new();
my $shopId = 789; # Long | 

eval { 
    $api_instance->viewInfo(shopId => $shopId);
};
if ($@) {
    warn "Exception when calling ShopInfoControllerApi->viewInfo: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.ShopInfoControllerApi()
shopId = 789 # Long | 

try: 
    api_instance.view_info(shopId)
except ApiException as e:
    print("Exception when calling ShopInfoControllerApi->viewInfo: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required

Responses

Status: 200 - OK


WorkHourController

getWorkHours


/shops/{shopId}/hours

Usage and SDK Samples

curl -X GET\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
"http://localhost:8081/api/v1/shops/{shopId}/hours"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WorkHourControllerApi;

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

public class WorkHourControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        WorkHourControllerApi apiInstance = new WorkHourControllerApi();
        Long shopId = 789; // Long | 
        try {
            array[com.nailcase.model.dto.WorkHourDto] result = apiInstance.getWorkHours(shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WorkHourControllerApi#getWorkHours");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WorkHourControllerApi;

public class WorkHourControllerApiExample {

    public static void main(String[] args) {
        WorkHourControllerApi apiInstance = new WorkHourControllerApi();
        Long shopId = 789; // Long | 
        try {
            array[com.nailcase.model.dto.WorkHourDto] result = apiInstance.getWorkHours(shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WorkHourControllerApi#getWorkHours");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Long *shopId = 789; // 

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

[apiInstance getWorkHoursWith:shopId
              completionHandler: ^(array[com.nailcase.model.dto.WorkHourDto] output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.WorkHourControllerApi()
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class getWorkHoursExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new WorkHourControllerApi();
            var shopId = 789;  // Long | 

            try
            {
                array[com.nailcase.model.dto.WorkHourDto] result = apiInstance.getWorkHours(shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WorkHourControllerApi.getWorkHours: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiWorkHourControllerApi();
$shopId = 789; // Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::WorkHourControllerApi->new();
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.WorkHourControllerApi()
shopId = 789 # Long | 

try: 
    api_response = api_instance.get_work_hours(shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WorkHourControllerApi->getWorkHours: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required

Responses

Status: 200 - OK


updateWorkHour


/shops/{shopId}/hours

Usage and SDK Samples

curl -X PUT\
 -H "Authorization: Bearer [[accessToken]]"\
\
-H "Accept: */*"\
-H "Content-Type: application/json"\
"http://localhost:8081/api/v1/shops/{shopId}/hours"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.WorkHourControllerApi;

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

public class WorkHourControllerApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        // Configure OAuth2 access token for authorization: oauth2-key
        OAuth oauth2-key = (OAuth) defaultClient.getAuthentication("oauth2-key");
        oauth2-key.setAccessToken("YOUR ACCESS TOKEN");

        WorkHourControllerApi apiInstance = new WorkHourControllerApi();
        Com.nailcase.model.dto.WorkHourDto body = ; // Com.nailcase.model.dto.WorkHourDto | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.WorkHourDto result = apiInstance.updateWorkHour(body, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WorkHourControllerApi#updateWorkHour");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.WorkHourControllerApi;

public class WorkHourControllerApiExample {

    public static void main(String[] args) {
        WorkHourControllerApi apiInstance = new WorkHourControllerApi();
        Com.nailcase.model.dto.WorkHourDto body = ; // Com.nailcase.model.dto.WorkHourDto | 
        Long shopId = 789; // Long | 
        try {
            com.nailcase.model.dto.WorkHourDto result = apiInstance.updateWorkHour(body, shopId);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling WorkHourControllerApi#updateWorkHour");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: oauth2-key)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
Com.nailcase.model.dto.WorkHourDto *body = ; // 
Long *shopId = 789; // 

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

[apiInstance updateWorkHourWith:body
    shopId:shopId
              completionHandler: ^(com.nailcase.model.dto.WorkHourDto output, NSError* error) {
                            if (output) {
                                NSLog(@"%@", output);
                            }
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var NailCaseApi = require('nail_case_api');
var defaultClient = NailCaseApi.ApiClient.instance;


// Configure OAuth2 access token for authorization: oauth2-key
var oauth2-key = defaultClient.authentications['oauth2-key'];
oauth2-key.accessToken = "YOUR ACCESS TOKEN"

var api = new NailCaseApi.WorkHourControllerApi()
var body = ; // {{Com.nailcase.model.dto.WorkHourDto}} 
var shopId = 789; // {{Long}} 

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

namespace Example
{
    public class updateWorkHourExample
    {
        public void main()
        {

            // Configure OAuth2 access token for authorization: oauth2-key
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new WorkHourControllerApi();
            var body = new Com.nailcase.model.dto.WorkHourDto(); // Com.nailcase.model.dto.WorkHourDto | 
            var shopId = 789;  // Long | 

            try
            {
                com.nailcase.model.dto.WorkHourDto result = apiInstance.updateWorkHour(body, shopId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling WorkHourControllerApi.updateWorkHour: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: oauth2-key
Swagger\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new Swagger\Client\ApiWorkHourControllerApi();
$body = ; // Com.nailcase.model.dto.WorkHourDto | 
$shopId = 789; // Long | 

try {
    $result = $api_instance->updateWorkHour($body, $shopId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling WorkHourControllerApi->updateWorkHour: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::WorkHourControllerApi;

# Configure OAuth2 access token for authorization: oauth2-key
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';

my $api_instance = WWW::SwaggerClient::WorkHourControllerApi->new();
my $body = WWW::SwaggerClient::Object::Com.nailcase.model.dto.WorkHourDto->new(); # Com.nailcase.model.dto.WorkHourDto | 
my $shopId = 789; # Long | 

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

# Configure OAuth2 access token for authorization: oauth2-key
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = swagger_client.WorkHourControllerApi()
body =  # Com.nailcase.model.dto.WorkHourDto | 
shopId = 789 # Long | 

try: 
    api_response = api_instance.update_work_hour(body, shopId)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling WorkHourControllerApi->updateWorkHour: %s\n" % e)

Parameters

Path parameters
Name Description
shopId*
Long (int64)
Required
Body parameters
Name Description
body *

Responses

Status: 200 - OK