Job Categories
Welcome to the Job Categories module API specification#
- This section will define APIs for the job categories feature/module. It will include API documentation for all CRUD operations involving a job category.
A single job category object, has the following keys
| Key | Description | Required | Type |
|---|---|---|---|
| id | Unique identifier(Autogenerated) | Autogenerated | Number |
| uid | 13 varying characters used for CRUD operations | NO | String(UID) |
| name | Defines the job Categories' given name | YES | String |
| created | job Categories' date of creation | NO | Date |
| lastupdated | job Categories' date for when it was last updated | NO | Date |
Creating a job category#
Crud operations involving creating a single job category, can be done in two ways,
- A job category is a child of another job category
Method: POST
Creating a standalone job category#
Endpoint
Request Payload
Response
- These responses can vary depending on success and failure however, to here we will show the success reponse.
Creating a job category with a parent category#
Endpoint
Request Payload
Response
- These responses can vary depending on success and failure however, to here we will show the success reponse.
Get job categories#
Method: GET
Endpoint
Response
Pagination and Page sizes#
- You can define pages you want and the data per page size you want by passing query params in get request i.e page=2&pageSize=400
- This will return data of page two with size of 400 records per page
- If page and page size are not defined, the default is 1 and 100 respectively
Method: GET
Endpoint
- You can also pass params to get all data without pagination by passing in
paging=false
Method: GET
Endpoint
Get One job category(By ID)#
Endpoint
Response
Get job categories(By Specifying fields)#
NOTE: On getting job Categories, whether a single job category or the whole list, we can also specify the fields and relations we want
Endpoint
Response
Get job Categories categories (By filtering fields)#
- We can filter job Categories depending on certain fields, more like a search strategy, in the example below, we will find all job categories with job category ame equal to
job Category Name
Endpoint
Response
NOTE: All filtering mechanisms, can be combined to produce a lobust search strategy
- Available search and filter Operators
| Operator | Types | Value Required | Description |
|---|---|---|---|
| eq | string | boolean | integer | float | enum | collection (checks for size) | date | true | Equality |
| like | string | true | Case sensitive string, match anywhere |
| ilike | string | true | Case insensitive string, match anywhere |
| in | string | boolean | integer | float | date | true | Find objects matching 1 or more values |
Update a job category#
Method: PUT
Endpoint
Request Payload
Response
Delete a job category#
Method: DELETE
Endpoint
Response