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 |
void ClientsClientIdDelete (int clientId)
Delete a client by ID
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| clientId | int | Numeric ID of the client |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelClient ClientsClientIdGet (int clientId)
Get a client by ID
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| clientId | int | Numeric ID of the client |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelClient ClientsClientIdPut (int clientId, ClientsPostRequest clientsPostRequest)
Update a client by ID
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| clientId | int | Numeric ID of the client | |
| clientsPostRequest | ClientsPostRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<ModelClient> ClientsGet ()
Get all clients
Retrieves all clients
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);
}
}
}
}This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModelClient ClientsPost (ClientsPostRequest clientsPostRequest)
Create new client
Add a new client with given name and url
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| clientsPostRequest | ClientsPostRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void ContractsContractIdDelete (int contractId)
Delete a contract by ID
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contractId | int | Numeric ID of the contract |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Contract ContractsContractIdGet (int contractId)
Get a contract by ID
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contractId | int | Numeric ID of the contract |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Contract ContractsContractIdPut (int contractId, ContractPatch contractPatch)
Update a contract by ID
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contractId | int | Numeric ID of the contract | |
| contractPatch | ContractPatch |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Contract> ContractsGet ()
Get all contracts
Retrieves all contracts
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);
}
}
}
}This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Contract ContractsPost (ContractPatch contractPatch)
Create new contract
Add a new contract with fields
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contractPatch | ContractPatch |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void EmployeesEmployeeIdDelete (int employeeId)
Delete an employee by ID
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| employeeId | int | Numeric ID of the employee |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Employee EmployeesEmployeeIdGet (int employeeId)
Get an employee by ID
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| employeeId | int | Numeric ID of the employee |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Employee EmployeesEmployeeIdPut (int employeeId, EmployeesPostRequest employeesPostRequest)
Update an employee by ID
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| employeeId | int | Numeric ID of the employee | |
| employeesPostRequest | EmployeesPostRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<Employee> EmployeesGet ()
Get all employees
Retrieves all employees
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);
}
}
}
}This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Employee EmployeesPost (EmployeesPostRequest employeesPostRequest)
Create new employee
Add a new employee with given name and github username
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| employeesPostRequest | EmployeesPostRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<History> HistoryGet (int? employeeId = null, int? clientId = null, int? contractId = null)
Get all history
Retrieves all employee contract assignment history
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| employeeId | int? | numerical employee identifier | [optional] |
| clientId | int? | numerical client identifier | [optional] |
| contractId | int? | numerical contract identifier | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void HistoryHistoryIdDelete (int historyId)
Delete an employee contract assignment by ID
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| historyId | int | Numeric ID of the employee contract assignment |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
History HistoryHistoryIdGet (int historyId)
Get an employee contract asignment by ID
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| historyId | int | Numeric ID of the employee contract assignment |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Contract HistoryHistoryIdPut (int historyId, HistoryPatch historyPatch)
Update an employee contract assignment by ID
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| historyId | int | Numeric ID of the employee contract assignment | |
| historyPatch | HistoryPatch |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
History HistoryPost (HistoryPatch historyPatch)
Create new employee contract assignment
Add a new contract assignment with fields
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);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| historyPatch | HistoryPatch |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]