Skip to content

Latest commit

 

History

History
1520 lines (1111 loc) · 38 KB

File metadata and controls

1520 lines (1111 loc) · 38 KB

SimpleTracker.Web.Api.DefaultApi

All URIs are relative to http://localhost

Method HTTP request Description
ClientsClientIdDelete DELETE /clients/{clientId} Delete a client by ID
ClientsClientIdGet GET /clients/{clientId} Get a client by ID
ClientsClientIdPut PUT /clients/{clientId} Update a client by ID
ClientsGet GET /clients Get all clients
ClientsPost POST /clients Create new client
ContractsContractIdDelete DELETE /contracts/{contractId} Delete a contract by ID
ContractsContractIdGet GET /contracts/{contractId} Get a contract by ID
ContractsContractIdPut PUT /contracts/{contractId} Update a contract by ID
ContractsGet GET /contracts Get all contracts
ContractsPost POST /contracts Create new contract
EmployeesEmployeeIdDelete DELETE /employees/{employeeId} Delete an employee by ID
EmployeesEmployeeIdGet GET /employees/{employeeId} Get an employee by ID
EmployeesEmployeeIdPut PUT /employees/{employeeId} Update an employee by ID
EmployeesGet GET /employees Get all employees
EmployeesPost POST /employees Create new employee
HistoryGet GET /history Get all history
HistoryHistoryIdDelete DELETE /history/{historyId} Delete an employee contract assignment by ID
HistoryHistoryIdGet GET /history/{historyId} Get an employee contract asignment by ID
HistoryHistoryIdPut PUT /history/{historyId} Update an employee contract assignment by ID
HistoryPost POST /history Create new employee contract assignment

ClientsClientIdDelete

void ClientsClientIdDelete (int clientId)

Delete a client by ID

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class ClientsClientIdDeleteExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var clientId = 56;  // int | Numeric ID of the client

            try
            {
                // Delete a client by ID
                apiInstance.ClientsClientIdDelete(clientId);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.ClientsClientIdDelete: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
clientId int Numeric ID of the client

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ClientsClientIdGet

ModelClient ClientsClientIdGet (int clientId)

Get a client by ID

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class ClientsClientIdGetExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var clientId = 56;  // int | Numeric ID of the client

            try
            {
                // Get a client by ID
                ModelClient result = apiInstance.ClientsClientIdGet(clientId);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.ClientsClientIdGet: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
clientId int Numeric ID of the client

Return type

ModelClient

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ClientsClientIdPut

ModelClient ClientsClientIdPut (int clientId, ClientsPostRequest clientsPostRequest)

Update a client by ID

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class ClientsClientIdPutExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var clientId = 56;  // int | Numeric ID of the client
            var clientsPostRequest = new ClientsPostRequest(); // ClientsPostRequest | 

            try
            {
                // Update a client by ID
                ModelClient result = apiInstance.ClientsClientIdPut(clientId, clientsPostRequest);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.ClientsClientIdPut: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
clientId int Numeric ID of the client
clientsPostRequest ClientsPostRequest

Return type

ModelClient

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ClientsGet

List<ModelClient> ClientsGet ()

Get all clients

Retrieves all clients

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class ClientsGetExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);

            try
            {
                // Get all clients
                List<ModelClient> result = apiInstance.ClientsGet();
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.ClientsGet: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

List<ModelClient>

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ClientsPost

ModelClient ClientsPost (ClientsPostRequest clientsPostRequest)

Create new client

Add a new client with given name and url

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class ClientsPostExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var clientsPostRequest = new ClientsPostRequest(); // ClientsPostRequest | 

            try
            {
                // Create new client
                ModelClient result = apiInstance.ClientsPost(clientsPostRequest);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.ClientsPost: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
clientsPostRequest ClientsPostRequest

Return type

ModelClient

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ContractsContractIdDelete

void ContractsContractIdDelete (int contractId)

Delete a contract by ID

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class ContractsContractIdDeleteExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var contractId = 56;  // int | Numeric ID of the contract

            try
            {
                // Delete a contract by ID
                apiInstance.ContractsContractIdDelete(contractId);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.ContractsContractIdDelete: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
contractId int Numeric ID of the contract

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ContractsContractIdGet

Contract ContractsContractIdGet (int contractId)

Get a contract by ID

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class ContractsContractIdGetExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var contractId = 56;  // int | Numeric ID of the contract

            try
            {
                // Get a contract by ID
                Contract result = apiInstance.ContractsContractIdGet(contractId);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.ContractsContractIdGet: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
contractId int Numeric ID of the contract

Return type

Contract

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ContractsContractIdPut

Contract ContractsContractIdPut (int contractId, ContractPatch contractPatch)

Update a contract by ID

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class ContractsContractIdPutExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var contractId = 56;  // int | Numeric ID of the contract
            var contractPatch = new ContractPatch(); // ContractPatch | 

            try
            {
                // Update a contract by ID
                Contract result = apiInstance.ContractsContractIdPut(contractId, contractPatch);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.ContractsContractIdPut: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
contractId int Numeric ID of the contract
contractPatch ContractPatch

Return type

Contract

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ContractsGet

List<Contract> ContractsGet ()

Get all contracts

Retrieves all contracts

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class ContractsGetExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);

            try
            {
                // Get all contracts
                List<Contract> result = apiInstance.ContractsGet();
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.ContractsGet: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

List<Contract>

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ContractsPost

Contract ContractsPost (ContractPatch contractPatch)

Create new contract

Add a new contract with fields

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class ContractsPostExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var contractPatch = new ContractPatch(); // ContractPatch | 

            try
            {
                // Create new contract
                Contract result = apiInstance.ContractsPost(contractPatch);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.ContractsPost: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
contractPatch ContractPatch

Return type

Contract

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EmployeesEmployeeIdDelete

void EmployeesEmployeeIdDelete (int employeeId)

Delete an employee by ID

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class EmployeesEmployeeIdDeleteExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var employeeId = 56;  // int | Numeric ID of the employee

            try
            {
                // Delete an employee by ID
                apiInstance.EmployeesEmployeeIdDelete(employeeId);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.EmployeesEmployeeIdDelete: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
employeeId int Numeric ID of the employee

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EmployeesEmployeeIdGet

Employee EmployeesEmployeeIdGet (int employeeId)

Get an employee by ID

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class EmployeesEmployeeIdGetExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var employeeId = 56;  // int | Numeric ID of the employee

            try
            {
                // Get an employee by ID
                Employee result = apiInstance.EmployeesEmployeeIdGet(employeeId);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.EmployeesEmployeeIdGet: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
employeeId int Numeric ID of the employee

Return type

Employee

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EmployeesEmployeeIdPut

Employee EmployeesEmployeeIdPut (int employeeId, EmployeesPostRequest employeesPostRequest)

Update an employee by ID

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class EmployeesEmployeeIdPutExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var employeeId = 56;  // int | Numeric ID of the employee
            var employeesPostRequest = new EmployeesPostRequest(); // EmployeesPostRequest | 

            try
            {
                // Update an employee by ID
                Employee result = apiInstance.EmployeesEmployeeIdPut(employeeId, employeesPostRequest);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.EmployeesEmployeeIdPut: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
employeeId int Numeric ID of the employee
employeesPostRequest EmployeesPostRequest

Return type

Employee

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EmployeesGet

List<Employee> EmployeesGet ()

Get all employees

Retrieves all employees

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class EmployeesGetExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);

            try
            {
                // Get all employees
                List<Employee> result = apiInstance.EmployeesGet();
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.EmployeesGet: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

List<Employee>

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EmployeesPost

Employee EmployeesPost (EmployeesPostRequest employeesPostRequest)

Create new employee

Add a new employee with given name and github username

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class EmployeesPostExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var employeesPostRequest = new EmployeesPostRequest(); // EmployeesPostRequest | 

            try
            {
                // Create new employee
                Employee result = apiInstance.EmployeesPost(employeesPostRequest);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.EmployeesPost: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
employeesPostRequest EmployeesPostRequest

Return type

Employee

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

HistoryGet

List<History> HistoryGet (int? employeeId = null, int? clientId = null, int? contractId = null)

Get all history

Retrieves all employee contract assignment history

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class HistoryGetExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var employeeId = 56;  // int? | numerical employee identifier (optional) 
            var clientId = 56;  // int? | numerical client identifier (optional) 
            var contractId = 56;  // int? | numerical contract identifier (optional) 

            try
            {
                // Get all history
                List<History> result = apiInstance.HistoryGet(employeeId, clientId, contractId);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.HistoryGet: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
employeeId int? numerical employee identifier [optional]
clientId int? numerical client identifier [optional]
contractId int? numerical contract identifier [optional]

Return type

List<History>

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

HistoryHistoryIdDelete

void HistoryHistoryIdDelete (int historyId)

Delete an employee contract assignment by ID

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class HistoryHistoryIdDeleteExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var historyId = 56;  // int | Numeric ID of the employee contract assignment

            try
            {
                // Delete an employee contract assignment by ID
                apiInstance.HistoryHistoryIdDelete(historyId);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.HistoryHistoryIdDelete: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
historyId int Numeric ID of the employee contract assignment

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

HistoryHistoryIdGet

History HistoryHistoryIdGet (int historyId)

Get an employee contract asignment by ID

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class HistoryHistoryIdGetExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var historyId = 56;  // int | Numeric ID of the employee contract assignment

            try
            {
                // Get an employee contract asignment by ID
                History result = apiInstance.HistoryHistoryIdGet(historyId);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.HistoryHistoryIdGet: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
historyId int Numeric ID of the employee contract assignment

Return type

History

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

HistoryHistoryIdPut

Contract HistoryHistoryIdPut (int historyId, HistoryPatch historyPatch)

Update an employee contract assignment by ID

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class HistoryHistoryIdPutExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var historyId = 56;  // int | Numeric ID of the employee contract assignment
            var historyPatch = new HistoryPatch(); // HistoryPatch | 

            try
            {
                // Update an employee contract assignment by ID
                Contract result = apiInstance.HistoryHistoryIdPut(historyId, historyPatch);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.HistoryHistoryIdPut: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
historyId int Numeric ID of the employee contract assignment
historyPatch HistoryPatch

Return type

Contract

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

HistoryPost

History HistoryPost (HistoryPatch historyPatch)

Create new employee contract assignment

Add a new contract assignment with fields

Example

using System.Collections.Generic;
using System.Diagnostics;
using SimpleTracker.Web.Api;
using SimpleTracker.Web.Client;
using SimpleTracker.Web.Model;

namespace Example
{
    public class HistoryPostExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "http://localhost";
            var apiInstance = new DefaultApi(Configuration.Default);
            var historyPatch = new HistoryPatch(); // HistoryPatch | 

            try
            {
                // Create new employee contract assignment
                History result = apiInstance.HistoryPost(historyPatch);
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling DefaultApi.HistoryPost: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

Name Type Description Notes
historyPatch HistoryPatch

Return type

History

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]