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(clientId)
Delete a client by ID
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
Integer clientId = 56; // Integer | Numeric ID of the client
try {
apiInstance.clientsClientIdDelete(clientId);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#clientsClientIdDelete");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| clientId | Integer | Numeric ID of the client |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
Client clientsClientIdGet(clientId)
Get a client by ID
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
Integer clientId = 56; // Integer | Numeric ID of the client
try {
Client result = apiInstance.clientsClientIdGet(clientId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#clientsClientIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| clientId | Integer | Numeric ID of the client |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
Client clientsClientIdPut(clientId, clientsPostRequest)
Update a client by ID
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
Integer clientId = 56; // Integer | Numeric ID of the client
ClientsPostRequest clientsPostRequest = new ClientsPostRequest(); // ClientsPostRequest |
try {
Client result = apiInstance.clientsClientIdPut(clientId, clientsPostRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#clientsClientIdPut");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| clientId | Integer | Numeric ID of the client | |
| clientsPostRequest | ClientsPostRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
List<Client> clientsGet()
Get all clients
Retrieves all clients
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
try {
List<Client> result = apiInstance.clientsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#clientsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
Client clientsPost(clientsPostRequest)
Create new client
Add a new client with given name and url
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
ClientsPostRequest clientsPostRequest = new ClientsPostRequest(); // ClientsPostRequest |
try {
Client result = apiInstance.clientsPost(clientsPostRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#clientsPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| clientsPostRequest | ClientsPostRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
contractsContractIdDelete(contractId)
Delete a contract by ID
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
Integer contractId = 56; // Integer | Numeric ID of the contract
try {
apiInstance.contractsContractIdDelete(contractId);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#contractsContractIdDelete");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contractId | Integer | Numeric ID of the contract |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
Contract contractsContractIdGet(contractId)
Get a contract by ID
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
Integer contractId = 56; // Integer | Numeric ID of the contract
try {
Contract result = apiInstance.contractsContractIdGet(contractId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#contractsContractIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contractId | Integer | Numeric ID of the contract |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
Contract contractsContractIdPut(contractId, contractPatch)
Update a contract by ID
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
Integer contractId = 56; // Integer | Numeric ID of the contract
ContractPatch contractPatch = new ContractPatch(); // ContractPatch |
try {
Contract result = apiInstance.contractsContractIdPut(contractId, contractPatch);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#contractsContractIdPut");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contractId | Integer | Numeric ID of the contract | |
| contractPatch | ContractPatch |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
List<Contract> contractsGet()
Get all contracts
Retrieves all contracts
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
try {
List<Contract> result = apiInstance.contractsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#contractsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
Contract contractsPost(contractPatch)
Create new contract
Add a new contract with fields
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
ContractPatch contractPatch = new ContractPatch(); // ContractPatch |
try {
Contract result = apiInstance.contractsPost(contractPatch);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#contractsPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contractPatch | ContractPatch |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
employeesEmployeeIdDelete(employeeId)
Delete an employee by ID
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
Integer employeeId = 56; // Integer | Numeric ID of the employee
try {
apiInstance.employeesEmployeeIdDelete(employeeId);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#employeesEmployeeIdDelete");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| employeeId | Integer | Numeric ID of the employee |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
Employee employeesEmployeeIdGet(employeeId)
Get an employee by ID
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
Integer employeeId = 56; // Integer | Numeric ID of the employee
try {
Employee result = apiInstance.employeesEmployeeIdGet(employeeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#employeesEmployeeIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| employeeId | Integer | Numeric ID of the employee |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
Employee employeesEmployeeIdPut(employeeId, employeesPostRequest)
Update an employee by ID
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
Integer employeeId = 56; // Integer | Numeric ID of the employee
EmployeesPostRequest employeesPostRequest = new EmployeesPostRequest(); // EmployeesPostRequest |
try {
Employee result = apiInstance.employeesEmployeeIdPut(employeeId, employeesPostRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#employeesEmployeeIdPut");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| employeeId | Integer | Numeric ID of the employee | |
| employeesPostRequest | EmployeesPostRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
List<Employee> employeesGet()
Get all employees
Retrieves all employees
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
try {
List<Employee> result = apiInstance.employeesGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#employeesGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
Employee employeesPost(employeesPostRequest)
Create new employee
Add a new employee with given name and github username
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
EmployeesPostRequest employeesPostRequest = new EmployeesPostRequest(); // EmployeesPostRequest |
try {
Employee result = apiInstance.employeesPost(employeesPostRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#employeesPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| employeesPostRequest | EmployeesPostRequest |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
List<History> historyGet(employeeId, clientId, contractId)
Get all history
Retrieves all employee contract assignment history
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
Integer employeeId = 56; // Integer | numerical employee identifier
Integer clientId = 56; // Integer | numerical client identifier
Integer contractId = 56; // Integer | numerical contract identifier
try {
List<History> result = apiInstance.historyGet(employeeId, clientId, contractId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#historyGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| employeeId | Integer | numerical employee identifier | [optional] |
| clientId | Integer | numerical client identifier | [optional] |
| contractId | Integer | numerical contract identifier | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
historyHistoryIdDelete(historyId)
Delete an employee contract assignment by ID
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
Integer historyId = 56; // Integer | Numeric ID of the employee contract assignment
try {
apiInstance.historyHistoryIdDelete(historyId);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#historyHistoryIdDelete");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| historyId | Integer | Numeric ID of the employee contract assignment |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
History historyHistoryIdGet(historyId)
Get an employee contract asignment by ID
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
Integer historyId = 56; // Integer | Numeric ID of the employee contract assignment
try {
History result = apiInstance.historyHistoryIdGet(historyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#historyHistoryIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| historyId | Integer | Numeric ID of the employee contract assignment |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
Contract historyHistoryIdPut(historyId, historyPatch)
Update an employee contract assignment by ID
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
Integer historyId = 56; // Integer | Numeric ID of the employee contract assignment
HistoryPatch historyPatch = new HistoryPatch(); // HistoryPatch |
try {
Contract result = apiInstance.historyHistoryIdPut(historyId, historyPatch);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#historyHistoryIdPut");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| historyId | Integer | 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 | - |
History historyPost(historyPatch)
Create new employee contract assignment
Add a new contract assignment with fields
// Import classes:
import com.boxboat.simpletracker.api.ApiClient;
import com.boxboat.simpletracker.api.ApiException;
import com.boxboat.simpletracker.api.Configuration;
import com.boxboat.simpletracker.api.models.*;
import com.boxboat.simpletracker.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
HistoryPatch historyPatch = new HistoryPatch(); // HistoryPatch |
try {
History result = apiInstance.historyPost(historyPatch);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#historyPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| historyPatch | HistoryPatch |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |