departmentDelete
Удаление отдела
С помощью данного запроса можно один или несколько отделов. Необходимо передать массив номеров удаляемых отделов. Для удаления всех отделов вместо номеров необходимо передать **[ALL]**.
/department
Usage and SDK Samples
curl -X DELETE "http://ls515scale.net/api/department"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DepartmentApi;
import java.io.File;
import java.util.*;
public class DepartmentApiExample {
public static void main(String[] args) {
DepartmentApi apiInstance = new DepartmentApi();
NumbersRef department number(s) = ; // NumbersRef |
try {
apiInstance.departmentDelete(department number(s));
} catch (ApiException e) {
System.err.println("Exception when calling DepartmentApi#departmentDelete");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DepartmentApi;
public class DepartmentApiExample {
public static void main(String[] args) {
DepartmentApi apiInstance = new DepartmentApi();
NumbersRef department number(s) = ; // NumbersRef |
try {
apiInstance.departmentDelete(department number(s));
} catch (ApiException e) {
System.err.println("Exception when calling DepartmentApi#departmentDelete");
e.printStackTrace();
}
}
}
NumbersRef *department number(s) = ; //
DepartmentApi *apiInstance = [[DepartmentApi alloc] init];
// Удаление отдела
[apiInstance departmentDeleteWith:department number(s)
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var R1SensorTScaleDataApi = require('r1_sensor__t_scale_data_api');
var api = new R1SensorTScaleDataApi.DepartmentApi()
var department number(s) = ; // {NumbersRef}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.departmentDelete(department number(s), callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class departmentDeleteExample
{
public void main()
{
var apiInstance = new DepartmentApi();
var department number(s) = new NumbersRef(); // NumbersRef |
try
{
// Удаление отдела
apiInstance.departmentDelete(department number(s));
}
catch (Exception e)
{
Debug.Print("Exception when calling DepartmentApi.departmentDelete: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\DepartmentApi();
$department number(s) = ; // NumbersRef |
try {
$api_instance->departmentDelete($department number(s));
} catch (Exception $e) {
echo 'Exception when calling DepartmentApi->departmentDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DepartmentApi;
my $api_instance = WWW::SwaggerClient::DepartmentApi->new();
my $department number(s) = WWW::SwaggerClient::Object::NumbersRef->new(); # NumbersRef |
eval {
$api_instance->departmentDelete(department number(s) => $department number(s));
};
if ($@) {
warn "Exception when calling DepartmentApi->departmentDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DepartmentApi()
department number(s) = # NumbersRef |
try:
# Удаление отдела
api_instance.department_delete(department number(s))
except ApiException as e:
print("Exception when calling DepartmentApi->departmentDelete: %s\n" % e)
Parameters
Name | Description |
---|---|
department number(s) * |