Contractor Resource¶
Get All Contractors¶
HTTP Request
GET /api/contractors
Deprecated
This endpoint is deprecated and may be removed in a future version. Please use alternative endpoints if available.
📋 Description: Fetches a list of contractors, providing essential details for effective resource management and project allocation.
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Inline |
Example Responses
1[
2 {
3 "id": 0,
4 "createdBy": "string",
5 "createdAt": "2019-08-24T14:15:22Z",
6 "name": "string",
7 "address": "string",
8 "contractorContacts": [
9 {
10 "id": 0,
11 "createdBy": "string",
12 "createdAt": "2019-08-24T14:15:22Z",
13 "name": "string",
14 "phone": "string",
15 "email": "string",
16 "contractorContactAvailable": true
17 }
18 ],
19 "contractorAvailable": true
20 }
21]
Response Schema
Status Code 200
Name |
Type |
Required |
Restrictions |
Description |
|---|---|---|---|---|
anonymous |
false |
none |
[Data transfer object representing a contractor’s profile, including essential details such as identification, contact information, and contractual terms, facilitating effective management and communication within project workflows.] |
|
» id |
integer(int64) |
false |
none |
Unique identifier for the resource |
» createdBy |
string |
false |
none |
Username of who created this resource |
» createdAt |
string(date-time) |
false |
none |
Timestamp when this resource was created |
» name |
string |
false |
none |
Name of the resource |
» address |
string |
false |
none |
Represents the physical location of the contractor, essential for service delivery and compliance with local regulations. |
» contractorContacts |
false |
none |
An array of contact details for contractors associated with the project, facilitating effective communication and collaboration. |
|
»» id |
integer(int64) |
false |
none |
Unique identifier for the resource |
»» createdBy |
string |
false |
none |
Username of who created this resource |
»» createdAt |
string(date-time) |
false |
none |
Timestamp when this resource was created |
»» name |
string |
false |
none |
Name of the resource |
»» phone |
string |
false |
none |
Contact phone number for the contractor, facilitating direct communication regarding project details and updates. |
string |
false |
none |
Email address of the contractor’s primary contact, used for communication and notifications related to contract management. |
|
»» contractorContactAvailable |
boolean |
false |
none |
Indicates whether a contact person for the contractor is available for communication. |
» contractorAvailable |
boolean |
false |
none |
Indicates whether the contractor is currently available for assignment within the project. |
Create Contractor¶
HTTP Request
POST /api/contractors
Deprecated
This endpoint is deprecated and may be removed in a future version. Please use alternative endpoints if available.
📋 Description: Creates a new contractor record within the system, enabling efficient management of contractor information and resources.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
body |
body |
true |
Request body containing the contractor details, including identification, contact information, and contractual terms necessary for onboarding. |
Body Parameters
1{
2 "id": 0,
3 "createdBy": "string",
4 "createdAt": "2019-08-24T14:15:22Z",
5 "name": "string",
6 "address": "string",
7 "contractorContacts": [
8 {
9 "id": 0,
10 "createdBy": "string",
11 "createdAt": "2019-08-24T14:15:22Z",
12 "name": "string",
13 "phone": "string",
14 "email": "string",
15 "contractorContactAvailable": true
16 }
17 ],
18 "contractorAvailable": true
19}
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
201 |
Created |
integer |
Example Responses
10
Get Contractor¶
HTTP Request
GET /api/contractors/{id}
Deprecated
This endpoint is deprecated and may be removed in a future version. Please use alternative endpoints if available.
📋 Description: Retrieves detailed information about a specific contractor identified by the provided ID, enabling users to access essential contractor data for effective management and decision-making.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Example Responses
1{
2 "id": 0,
3 "createdBy": "string",
4 "createdAt": "2019-08-24T14:15:22Z",
5 "name": "string",
6 "address": "string",
7 "contractorContacts": [
8 {
9 "id": 0,
10 "createdBy": "string",
11 "createdAt": "2019-08-24T14:15:22Z",
12 "name": "string",
13 "phone": "string",
14 "email": "string",
15 "contractorContactAvailable": true
16 }
17 ],
18 "contractorAvailable": true
19}
Update Contractor¶
HTTP Request
POST /api/contractors/{id}
Deprecated
This endpoint is deprecated and may be removed in a future version. Please use alternative endpoints if available.
📋 Description: Updates the details of a specific contractor identified by the provided ID, enabling businesses to maintain accurate and current contractor information.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
body |
body |
true |
Request body containing the contractor details, including name, contact information, and service specifications, to update the contractor’s profile. |
Body Parameters
1{
2 "id": 0,
3 "createdBy": "string",
4 "createdAt": "2019-08-24T14:15:22Z",
5 "name": "string",
6 "address": "string",
7 "contractorContacts": [
8 {
9 "id": 0,
10 "createdBy": "string",
11 "createdAt": "2019-08-24T14:15:22Z",
12 "name": "string",
13 "phone": "string",
14 "email": "string",
15 "contractorContactAvailable": true
16 }
17 ],
18 "contractorAvailable": true
19}
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
None |
Delete Contractor¶
HTTP Request
DELETE /api/contractors/{id}
Deprecated
This endpoint is deprecated and may be removed in a future version. Please use alternative endpoints if available.
📋 Description: Deletes a contractor identified by the specified ID, ensuring the removal of associated data from the system and maintaining data integrity within the contractor management framework.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
204 |
No Content |
None |
Update Contractor Availability With Children¶
HTTP Request
POST /api/contractors/{id}/updateChildrenAvailability
Deprecated
This endpoint is deprecated and may be removed in a future version. Please use alternative endpoints if available.
📋 Description: Updates the availability status of children associated with a specific contractor, allowing for efficient management of resource allocation and scheduling.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
body |
body |
true |
Request body containing the updated availability information for the specified contractor’s children, including their availability status and relevant scheduling details. |
Body Parameters
1{
2 "id": 0,
3 "createdBy": "string",
4 "createdAt": "2019-08-24T14:15:22Z",
5 "name": "string",
6 "address": "string",
7 "contractorContacts": [
8 {
9 "id": 0,
10 "createdBy": "string",
11 "createdAt": "2019-08-24T14:15:22Z",
12 "name": "string",
13 "phone": "string",
14 "email": "string",
15 "contractorContactAvailable": true
16 }
17 ],
18 "contractorAvailable": true
19}
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
None |
Get Contractor Contacts¶
HTTP Request
GET /api/contractors/{id}/contractorContacts
Deprecated
This endpoint is deprecated and may be removed in a future version. Please use alternative endpoints if available.
📋 Description: Fetches the list of contractor contacts associated with a specific contractor, identified by the unique contractor ID, to facilitate effective communication and relationship management.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Inline |
Example Responses
1[
2 {
3 "id": 0,
4 "createdBy": "string",
5 "createdAt": "2019-08-24T14:15:22Z",
6 "name": "string",
7 "phone": "string",
8 "email": "string",
9 "contractorContactAvailable": true
10 }
11]
Response Schema
Status Code 200
Name |
Type |
Required |
Restrictions |
Description |
|---|---|---|---|---|
anonymous |
false |
none |
[Data transfer object representing the contact information of a contractor, including essential details for effective communication and collaboration within project management.] |
|
» id |
integer(int64) |
false |
none |
Unique identifier for the resource |
» createdBy |
string |
false |
none |
Username of who created this resource |
» createdAt |
string(date-time) |
false |
none |
Timestamp when this resource was created |
» name |
string |
false |
none |
Name of the resource |
» phone |
string |
false |
none |
Contact phone number for the contractor, facilitating direct communication regarding project details and updates. |
string |
false |
none |
Email address of the contractor’s primary contact, used for communication and notifications related to contract management. |
|
» contractorContactAvailable |
boolean |
false |
none |
Indicates whether a contact person for the contractor is available for communication. |
Create Contractor Contact¶
HTTP Request
POST /api/contractors/{id}/contractorContacts
Deprecated
This endpoint is deprecated and may be removed in a future version. Please use alternative endpoints if available.
📋 Description: Creates a new contractor contact associated with the specified contractor ID, enabling efficient management of contractor relationships and communication.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
body |
body |
true |
Request body containing the contractor contact information, including name, email, phone number, and role, essential for maintaining accurate communication records within contractor management. |
Body Parameters
1{
2 "id": 0,
3 "createdBy": "string",
4 "createdAt": "2019-08-24T14:15:22Z",
5 "name": "string",
6 "phone": "string",
7 "email": "string",
8 "contractorContactAvailable": true
9}
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
201 |
Created |
integer |
Example Responses
10
Get Contractor Contact¶
HTTP Request
GET /api/contractors/{id}/contractorContacts/{cid}
Deprecated
This endpoint is deprecated and may be removed in a future version. Please use alternative endpoints if available.
📋 Description: Retrieves detailed information about a specific contractor contact associated with a given contractor, enabling users to access essential contact details for effective communication and management.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
cid |
path |
integer(int64) |
true |
Unique identifier for the specific contractor contact associated with the contractor identified by {id}. |
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Example Responses
1{
2 "id": 0,
3 "createdBy": "string",
4 "createdAt": "2019-08-24T14:15:22Z",
5 "name": "string",
6 "phone": "string",
7 "email": "string",
8 "contractorContactAvailable": true
9}
Update Contractor Contact¶
HTTP Request
POST /api/contractors/{id}/contractorContacts/{cid}
Deprecated
This endpoint is deprecated and may be removed in a future version. Please use alternative endpoints if available.
📋 Description: Creates a new contractor contact associated with the specified contractor, enabling effective management of contractor relationships and communication.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
cid |
path |
integer(int64) |
true |
Unique identifier for the contractor contact associated with the specified contractor, facilitating targeted updates and management of contact information. |
body |
body |
true |
Request body containing the contractor contact details, including name, email, phone number, and role, essential for managing contractor relationships effectively. |
Body Parameters
1{
2 "id": 0,
3 "createdBy": "string",
4 "createdAt": "2019-08-24T14:15:22Z",
5 "name": "string",
6 "phone": "string",
7 "email": "string",
8 "contractorContactAvailable": true
9}
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
None |
Delete Contractor Contact¶
HTTP Request
DELETE /api/contractors/{id}/contractorContacts/{cid}
Deprecated
This endpoint is deprecated and may be removed in a future version. Please use alternative endpoints if available.
📋 Description: Deletes a specific contractor contact associated with a contractor, ensuring the removal of outdated or unnecessary contact information from the system.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
cid |
path |
integer(int64) |
true |
Unique identifier for the contractor contact to be deleted from the specified contractor’s profile. |
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
204 |
No Content |
None |
Get Contractors¶
HTTP Request
POST /api/contractors/search
Deprecated
This endpoint is deprecated and may be removed in a future version. Please use alternative endpoints if available.
📋 Description: Submits a search request to locate contractors based on specified criteria, facilitating efficient contractor management and selection processes.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
pageable |
query |
true |
Indicates whether the search results for contractors should be paginated, allowing for efficient retrieval of large datasets. |
|
body |
body |
true |
Request body containing search criteria for contractors, including filters such as location, skills, and availability to facilitate targeted recruitment efforts. |
Body Parameters
1{
2 "idIn": [
3 0
4 ],
5 "idNotIn": [
6 0
7 ],
8 "nameLike": "string"
9}
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Example Responses
1{
2 "totalPages": 0,
3 "totalElements": 0,
4 "pageable": {
5 "paged": true,
6 "unpaged": true,
7 "pageNumber": 0,
8 "pageSize": 0,
9 "offset": 0,
10 "sort": {
11 "unsorted": true,
12 "sorted": true,
13 "empty": true
14 }
15 },
16 "numberOfElements": 0,
17 "first": true,
18 "last": true,
19 "size": 0,
20 "content": [
21 {
22 "id": 0,
23 "createdBy": "string",
24 "createdAt": "2019-08-24T14:15:22Z",
25 "name": "string",
26 "address": "string",
27 "contractorContacts": [
28 {
29 "id": 0,
30 "createdBy": "string",
31 "createdAt": "2019-08-24T14:15:22Z",
32 "name": "string",
33 "phone": "string",
34 "email": "string",
35 "contractorContactAvailable": true
36 }
37 ],
38 "contractorAvailable": true
39 }
40 ],
41 "number": 0,
42 "sort": {
43 "unsorted": true,
44 "sorted": true,
45 "empty": true
46 },
47 "empty": true
48}