openapi: 3.0.3 info: title: 'Time Tracker' description: 'This is the Time Tracker App API Documentation' version: 1.0.0 servers: - url: 'https://time-tracker-backend.pinnguaq.com' paths: /api/admin/activities: get: summary: 'Get All' operationId: getAll description: '' parameters: - in: query name: paginate description: 'Field to paginate. Defaults to true.' example: true required: false schema: type: boolean description: 'Field to paginate. Defaults to true.' example: true - in: query name: page description: 'Field to paginate. Defaults to null.' example: 1 required: false schema: type: integer description: 'Field to paginate. Defaults to null.' example: 1 - in: query name: perPage description: 'Field to paginate. Defaults to null.' example: 1 required: false schema: type: integer description: 'Field to paginate. Defaults to null.' example: 1 - in: query name: filterBy description: 'Field to filterBy. Defaults to null.' example: name required: false schema: type: string description: 'Field to filterBy. Defaults to null.' example: name - in: query name: filterValue description: 'Field to filterValue. Defaults to null.' example: Car required: false schema: type: string description: 'Field to filterValue. Defaults to null.' example: Car responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record fetched successfully.' data: list: - id: 3 name: Doe created_at: '2024-03-04T08:46:33.000000Z' updated_at: '2024-03-04T08:46:33.000000Z' - id: 2 name: Jane created_at: '2024-03-04T08:46:33.000000Z' updated_at: '2024-03-04T08:46:33.000000Z' - id: 1 name: John created_at: '2024-03-04T08:46:33.000000Z' updated_at: '2024-03-04T08:46:33.000000Z' pagination: total: 3 per_page: 10 current: 1 first: 1 last: 1 previous: null next: null pages: - 1 from: 1 to: 3 properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record fetched successfully.' items: type: string data: type: object properties: list: type: array example: - id: 3 name: Doe created_at: '2024-03-04T08:46:33.000000Z' updated_at: '2024-03-04T08:46:33.000000Z' - id: 2 name: Jane created_at: '2024-03-04T08:46:33.000000Z' updated_at: '2024-03-04T08:46:33.000000Z' - id: 1 name: John created_at: '2024-03-04T08:46:33.000000Z' updated_at: '2024-03-04T08:46:33.000000Z' items: type: object properties: id: type: integer example: 3 name: type: string example: Doe created_at: type: string example: '2024-03-04T08:46:33.000000Z' updated_at: type: string example: '2024-03-04T08:46:33.000000Z' pagination: type: object properties: total: type: integer example: 3 per_page: type: integer example: 10 current: type: integer example: 1 first: type: integer example: 1 last: type: integer example: 1 previous: type: string example: null next: type: string example: null pages: type: array example: - 1 items: type: integer from: type: integer example: 1 to: type: integer example: 3 tags: - Activity post: summary: Create operationId: create description: 'Store new division' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 201 message: - 'Record created successfully.' data: - name: John updated_at: '2024-03-04T08:46:33.000000Z' created_at: '2024-03-04T08:46:33.000000Z' id: 1 - name: Jane updated_at: '2024-03-04T08:46:33.000000Z' created_at: '2024-03-04T08:46:33.000000Z' id: 2 - name: Doe updated_at: '2024-03-04T08:46:33.000000Z' created_at: '2024-03-04T08:46:33.000000Z' id: 3 properties: success: type: boolean example: true status_code: type: integer example: 201 message: type: array example: - 'Record created successfully.' items: type: string data: type: array example: - name: John updated_at: '2024-03-04T08:46:33.000000Z' created_at: '2024-03-04T08:46:33.000000Z' id: 1 - name: Jane updated_at: '2024-03-04T08:46:33.000000Z' created_at: '2024-03-04T08:46:33.000000Z' id: 2 - name: Doe updated_at: '2024-03-04T08:46:33.000000Z' created_at: '2024-03-04T08:46:33.000000Z' id: 3 items: type: object properties: name: type: string example: John updated_at: type: string example: '2024-03-04T08:46:33.000000Z' created_at: type: string example: '2024-03-04T08:46:33.000000Z' id: type: integer example: 1 tags: - Activity requestBody: required: true content: application/json: schema: type: object properties: name: type: array description: 'Must not be greater than 255 characters.' example: - e items: type: string required: - name '/api/admin/activities/{id}': get: summary: Show operationId: show description: 'Show existing by id' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record fetched successfully.' data: id: 2 name: Jane capabilities: - id: 1 name: John created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' created_at: '2024-03-04T08:46:33.000000Z' updated_at: '2024-03-04T08:46:33.000000Z' properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record fetched successfully.' items: type: string data: type: object properties: id: type: integer example: 2 name: type: string example: Jane capabilities: type: array example: - id: 1 name: John created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' items: type: object properties: id: type: integer example: 1 name: type: string example: John created_at: type: string example: '2024-03-04T08:46:13.000000Z' updated_at: type: string example: '2024-03-04T08:46:13.000000Z' created_at: type: string example: '2024-03-04T08:46:33.000000Z' updated_at: type: string example: '2024-03-04T08:46:33.000000Z' tags: - Activity put: summary: Update operationId: update description: 'update by id' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record updated successfully.' data: true properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record updated successfully.' items: type: string data: type: boolean example: true tags: - Activity requestBody: required: false content: application/json: schema: type: object properties: name: type: string description: 'The name of the activity. Must not be greater than 255 characters.' example: fxnggrfxnlwwq capability_ids: type: object description: '' example: null properties: { } delete: summary: Delete operationId: delete description: '' parameters: [] responses: 204: description: '' tags: - Activity parameters: - in: path name: id description: 'The ID of the activity.' example: 1 required: true schema: type: integer /api/admin/login: post: summary: Login operationId: login description: '' parameters: [] responses: { } tags: - Auth requestBody: required: false content: application/json: schema: type: object properties: firebase_token: type: string description: 'The firebase token field is required.' example: dolorem username: type: string description: 'This field is required when firebase_token is not present.' example: null password: type: string description: 'This field is required when firebase_token is not present.' example: null security: [] /api/admin/logout: post: summary: Logout operationId: logout description: '' parameters: [] responses: { } tags: - Auth /api/admin/profile: get: summary: 'Get Profile' operationId: getProfile description: '' parameters: [] responses: 401: description: '' content: application/json: schema: type: object example: success: false status: 401 message: - 'You are not authenticated. Please login.' data: [] properties: success: type: boolean example: false status: type: integer example: 401 message: type: array example: - 'You are not authenticated. Please login.' items: type: string data: type: array example: [] tags: - Auth /api/admin/profile/update: put: summary: 'Update Profile' operationId: updateProfile description: '' parameters: [] responses: { } tags: - Auth requestBody: required: true content: application/json: schema: type: object properties: first_name: type: string description: 'The firstname of the user. Must not be greater than 255 characters.' example: ebebcfagucfvzgiw last_name: type: string description: 'Must not be greater than 255 characters.' example: kvatexbnnjmn phone: type: string description: 'Must not be greater than 255 characters.' example: qchvccoudeswvlmne password: type: string description: 'Must be at least 6 characters.' example: '|D+"pJqT=dNx,)K%@AfK' picture: type: string description: '' example: null required: - first_name - last_name /api/admin/capabilities: get: summary: 'Get All' operationId: getAll description: '' parameters: - in: query name: paginate description: 'Field to paginate. Defaults to true.' example: true required: false schema: type: boolean description: 'Field to paginate. Defaults to true.' example: true - in: query name: page description: 'Field to paginate. Defaults to null.' example: 1 required: false schema: type: integer description: 'Field to paginate. Defaults to null.' example: 1 - in: query name: perPage description: 'Field to paginate. Defaults to null.' example: 1 required: false schema: type: integer description: 'Field to paginate. Defaults to null.' example: 1 - in: query name: filterBy description: 'Field to filterBy. Defaults to null.' example: name required: false schema: type: string description: 'Field to filterBy. Defaults to null.' example: name - in: query name: filterValue description: 'Field to filterValue. Defaults to null.' example: Car required: false schema: type: string description: 'Field to filterValue. Defaults to null.' example: Car responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record fetched successfully.' data: list: - id: 3 name: Doe created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' - id: 2 name: Jane created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' - id: 1 name: John created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' pagination: total: 3 per_page: 10 current: 1 first: 1 last: 1 previous: null next: null pages: - 1 from: 1 to: 3 properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record fetched successfully.' items: type: string data: type: object properties: list: type: array example: - id: 3 name: Doe created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' - id: 2 name: Jane created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' - id: 1 name: John created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' items: type: object properties: id: type: integer example: 3 name: type: string example: Doe created_at: type: string example: '2024-03-04T08:46:13.000000Z' updated_at: type: string example: '2024-03-04T08:46:13.000000Z' pagination: type: object properties: total: type: integer example: 3 per_page: type: integer example: 10 current: type: integer example: 1 first: type: integer example: 1 last: type: integer example: 1 previous: type: string example: null next: type: string example: null pages: type: array example: - 1 items: type: integer from: type: integer example: 1 to: type: integer example: 3 tags: - Capability post: summary: Create operationId: create description: 'Store new capability' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record fetched successfully.' data: id: 2 name: Jane divisions: - id: 1 name: John created_at: '2024-02-28T15:43:48.000000Z' updated_at: '2024-02-28T15:43:48.000000Z' created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record fetched successfully.' items: type: string data: type: object properties: id: type: integer example: 2 name: type: string example: Jane divisions: type: array example: - id: 1 name: John created_at: '2024-02-28T15:43:48.000000Z' updated_at: '2024-02-28T15:43:48.000000Z' items: type: object properties: id: type: integer example: 1 name: type: string example: John created_at: type: string example: '2024-02-28T15:43:48.000000Z' updated_at: type: string example: '2024-02-28T15:43:48.000000Z' created_at: type: string example: '2024-03-04T08:46:13.000000Z' updated_at: type: string example: '2024-03-04T08:46:13.000000Z' tags: - Capability requestBody: required: true content: application/json: schema: type: object properties: name: type: array description: 'Must not be greater than 255 characters.' example: - f items: type: string required: - name '/api/admin/capabilities/{id}': get: summary: Show operationId: show description: 'Show existing by id' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record fetched successfully.' data: id: 1 project_no: '1' name: John created_at: '2024-02-26T12:36:12.000000Z' updated_at: '2024-02-26T12:36:12.000000Z' deleted_at: null properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record fetched successfully.' items: type: string data: type: object properties: id: type: integer example: 1 project_no: type: string example: '1' name: type: string example: John created_at: type: string example: '2024-02-26T12:36:12.000000Z' updated_at: type: string example: '2024-02-26T12:36:12.000000Z' deleted_at: type: string example: null tags: - Capability put: summary: Update operationId: update description: 'update by id' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record updated successfully.' data: true properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record updated successfully.' items: type: string data: type: boolean example: true tags: - Capability requestBody: required: false content: application/json: schema: type: object properties: name: type: string description: 'The name of the capability. Must not be greater than 255 characters.' example: yxaumdrvfxazwjdj division_ids: type: object description: '' example: null properties: { } delete: summary: Delete operationId: delete description: '' parameters: [] responses: 204: description: '' tags: - Capability parameters: - in: path name: id description: 'The ID of the capability.' example: 5 required: true schema: type: integer /api/admin/divisions: get: summary: 'Get All' operationId: getAll description: '' parameters: - in: query name: paginate description: 'Field to paginate. Defaults to true.' example: true required: false schema: type: boolean description: 'Field to paginate. Defaults to true.' example: true - in: query name: page description: 'Field to paginate. Defaults to null.' example: 1 required: false schema: type: integer description: 'Field to paginate. Defaults to null.' example: 1 - in: query name: perPage description: 'Field to paginate. Defaults to null.' example: 1 required: false schema: type: integer description: 'Field to paginate. Defaults to null.' example: 1 - in: query name: filterBy description: 'Field to filterBy. Defaults to null.' example: name required: false schema: type: string description: 'Field to filterBy. Defaults to null.' example: name - in: query name: filterValue description: 'Field to filterValue. Defaults to null.' example: Car required: false schema: type: string description: 'Field to filterValue. Defaults to null.' example: Car responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record fetched successfully.' data: - id: 3 name: Doe created_at: '2024-02-28T15:43:48.000000Z' updated_at: '2024-02-28T15:43:48.000000Z' - id: 2 name: Jane created_at: '2024-02-28T15:43:48.000000Z' updated_at: '2024-02-28T15:43:48.000000Z' - id: 1 name: John created_at: '2024-02-28T15:43:48.000000Z' updated_at: '2024-02-28T15:43:48.000000Z' properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record fetched successfully.' items: type: string data: type: array example: - id: 3 name: Doe created_at: '2024-02-28T15:43:48.000000Z' updated_at: '2024-02-28T15:43:48.000000Z' - id: 2 name: Jane created_at: '2024-02-28T15:43:48.000000Z' updated_at: '2024-02-28T15:43:48.000000Z' - id: 1 name: John created_at: '2024-02-28T15:43:48.000000Z' updated_at: '2024-02-28T15:43:48.000000Z' items: type: object properties: id: type: integer example: 3 name: type: string example: Doe created_at: type: string example: '2024-02-28T15:43:48.000000Z' updated_at: type: string example: '2024-02-28T15:43:48.000000Z' tags: - Division post: summary: Create operationId: create description: 'Store new division' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 201 message: - 'Record created successfully.' data: - name: John updated_at: '2024-03-05T16:00:43.000000Z' created_at: '2024-03-05T16:00:43.000000Z' id: 4 - name: Jane updated_at: '2024-03-05T16:00:43.000000Z' created_at: '2024-03-05T16:00:43.000000Z' id: 5 - name: Doe updated_at: '2024-03-05T16:00:43.000000Z' created_at: '2024-03-05T16:00:43.000000Z' id: 6 properties: success: type: boolean example: true status_code: type: integer example: 201 message: type: array example: - 'Record created successfully.' items: type: string data: type: array example: - name: John updated_at: '2024-03-05T16:00:43.000000Z' created_at: '2024-03-05T16:00:43.000000Z' id: 4 - name: Jane updated_at: '2024-03-05T16:00:43.000000Z' created_at: '2024-03-05T16:00:43.000000Z' id: 5 - name: Doe updated_at: '2024-03-05T16:00:43.000000Z' created_at: '2024-03-05T16:00:43.000000Z' id: 6 items: type: object properties: name: type: string example: John updated_at: type: string example: '2024-03-05T16:00:43.000000Z' created_at: type: string example: '2024-03-05T16:00:43.000000Z' id: type: integer example: 4 tags: - Division requestBody: required: true content: application/json: schema: type: object properties: name: type: array description: 'Must not be greater than 255 characters.' example: - nfoplllka items: type: string required: - name '/api/admin/divisions/{id}': get: summary: Show operationId: show description: 'Show existing by id' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record fetched successfully.' data: id: 1 name: John created_at: '2024-02-28T15:43:48.000000Z' updated_at: '2024-02-28T15:43:48.000000Z' properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record fetched successfully.' items: type: string data: type: object properties: id: type: integer example: 1 name: type: string example: John created_at: type: string example: '2024-02-28T15:43:48.000000Z' updated_at: type: string example: '2024-02-28T15:43:48.000000Z' tags: - Division put: summary: Update operationId: update description: 'update by id' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record updated successfully.' data: true properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record updated successfully.' items: type: string data: type: boolean example: true tags: - Division requestBody: required: true content: application/json: schema: type: object properties: name: type: string description: 'The name of the division. Must not be greater than 255 characters.' example: acasbyzap required: - name delete: summary: Delete operationId: delete description: '' parameters: [] responses: 204: description: '' tags: - Division parameters: - in: path name: id description: 'The ID of the division.' example: 65 required: true schema: type: integer '/api/admin/{entity}/multiple-delete': post: summary: '' operationId: postApiAdminEntityMultipleDelete description: '' parameters: [] responses: { } tags: - Endpoints requestBody: required: false content: application/json: schema: type: object properties: ids: type: array description: '' example: null items: type: string security: [] parameters: - in: path name: entity description: '' example: 9b97b9c9-b8fb-41df-98f0-8424b51eaab9 required: true schema: type: string /api/admin/projects: get: summary: 'Get All' operationId: getAll description: '' parameters: - in: query name: paginate description: 'Field to paginate. Defaults to true.' example: true required: false schema: type: boolean description: 'Field to paginate. Defaults to true.' example: true - in: query name: page description: 'Field to paginate. Defaults to null.' example: 1 required: false schema: type: integer description: 'Field to paginate. Defaults to null.' example: 1 - in: query name: perPage description: 'Field to paginate. Defaults to null.' example: 1 required: false schema: type: integer description: 'Field to paginate. Defaults to null.' example: 1 - in: query name: filterBy description: 'Field to filterBy. Defaults to null.' example: name required: false schema: type: string description: 'Field to filterBy. Defaults to null.' example: name - in: query name: filterValue description: 'Field to filterValue. Defaults to null.' example: Car required: false schema: type: string description: 'Field to filterValue. Defaults to null.' example: Car responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record fetched successfully.' data: list: - id: 3 project_no: '34545' name: Doe created_at: '2024-03-04T08:49:22.000000Z' updated_at: '2024-03-04T08:49:22.000000Z' - id: 2 project_no: '23555' name: Jane created_at: '2024-03-04T08:49:22.000000Z' updated_at: '2024-03-04T08:49:22.000000Z' - id: 1 project_no: '14345' name: John created_at: '2024-03-04T08:49:22.000000Z' updated_at: '2024-03-04T08:49:22.000000Z' pagination: total: 3 per_page: 10 current: 1 first: 1 last: 1 previous: null next: null pages: - 1 from: 1 to: 3 properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record fetched successfully.' items: type: string data: type: object properties: list: type: array example: - id: 3 project_no: '34545' name: Doe created_at: '2024-03-04T08:49:22.000000Z' updated_at: '2024-03-04T08:49:22.000000Z' - id: 2 project_no: '23555' name: Jane created_at: '2024-03-04T08:49:22.000000Z' updated_at: '2024-03-04T08:49:22.000000Z' - id: 1 project_no: '14345' name: John created_at: '2024-03-04T08:49:22.000000Z' updated_at: '2024-03-04T08:49:22.000000Z' items: type: object properties: id: type: integer example: 3 project_no: type: string example: '34545' name: type: string example: Doe created_at: type: string example: '2024-03-04T08:49:22.000000Z' updated_at: type: string example: '2024-03-04T08:49:22.000000Z' pagination: type: object properties: total: type: integer example: 3 per_page: type: integer example: 10 current: type: integer example: 1 first: type: integer example: 1 last: type: integer example: 1 previous: type: string example: null next: type: string example: null pages: type: array example: - 1 items: type: integer from: type: integer example: 1 to: type: integer example: 3 tags: - Project post: summary: Create operationId: create description: 'Store new project' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 201 message: - 'Record created successfully.' data: - project_no: '15466' name: John updated_at: '2024-03-04T08:49:22.000000Z' created_at: '2024-03-04T08:49:22.000000Z' id: 1 - project_no: '24565' name: Jane updated_at: '2024-03-04T08:49:22.000000Z' created_at: '2024-03-04T08:49:22.000000Z' id: 2 - project_no: '36556' name: Doe updated_at: '2024-03-04T08:49:22.000000Z' created_at: '2024-03-04T08:49:22.000000Z' id: 3 properties: success: type: boolean example: true status_code: type: integer example: 201 message: type: array example: - 'Record created successfully.' items: type: string data: type: array example: - project_no: '15466' name: John updated_at: '2024-03-04T08:49:22.000000Z' created_at: '2024-03-04T08:49:22.000000Z' id: 1 - project_no: '24565' name: Jane updated_at: '2024-03-04T08:49:22.000000Z' created_at: '2024-03-04T08:49:22.000000Z' id: 2 - project_no: '36556' name: Doe updated_at: '2024-03-04T08:49:22.000000Z' created_at: '2024-03-04T08:49:22.000000Z' id: 3 items: type: object properties: project_no: type: string example: '15466' name: type: string example: John updated_at: type: string example: '2024-03-04T08:49:22.000000Z' created_at: type: string example: '2024-03-04T08:49:22.000000Z' id: type: integer example: 1 tags: - Project '/api/admin/projects/{id}': get: summary: Show operationId: show description: 'Show existing by id' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record fetched successfully.' data: id: 1 project_no: '1' name: John created_at: '2024-02-26T12:36:12.000000Z' updated_at: '2024-02-26T12:36:12.000000Z' deleted_at: null properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record fetched successfully.' items: type: string data: type: object properties: id: type: integer example: 1 project_no: type: string example: '1' name: type: string example: John created_at: type: string example: '2024-02-26T12:36:12.000000Z' updated_at: type: string example: '2024-02-26T12:36:12.000000Z' deleted_at: type: string example: null tags: - Project put: summary: Update operationId: update description: 'update by id' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record updated successfully.' data: true properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record updated successfully.' items: type: string data: type: boolean example: true tags: - Project requestBody: required: false content: application/json: schema: type: object properties: project_no: type: string description: 'Must not be greater than 255 characters.' example: vsrbua name: type: string description: 'The name of the project. Must not be greater than 255 characters.' example: fyvjazeakof division_ids: type: object description: '' example: null properties: { } delete: summary: Delete operationId: delete description: '' parameters: [] responses: 204: description: '' tags: - Project parameters: - in: path name: id description: 'The ID of the project.' example: 16 required: true schema: type: integer /api/admin/time-records: get: summary: 'Get All' operationId: getAll description: '' parameters: - in: query name: paginate description: 'Field to paginate. Defaults to true.' example: true required: false schema: type: boolean description: 'Field to paginate. Defaults to true.' example: true - in: query name: page description: 'Field to paginate. Defaults to null.' example: 1 required: false schema: type: integer description: 'Field to paginate. Defaults to null.' example: 1 - in: query name: perPage description: 'Field to paginate. Defaults to null.' example: 1 required: false schema: type: integer description: 'Field to paginate. Defaults to null.' example: 1 - in: query name: filterBy description: 'Field to filterBy. Defaults to null.' example: date required: false schema: type: string description: 'Field to filterBy. Defaults to null.' example: date - in: query name: filterValue description: 'Field to filterValue. Defaults to null.' example: '2024-02-28' required: false schema: type: string description: 'Field to filterValue. Defaults to null.' example: '2024-02-28' responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record fetched successfully.' data: list: - id: 6 user_id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 division_id: 1 capability_id: 1 activity_id: 1 project_id: 1 user: id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 username: pinnguaq-9b7b60d5-20bd-40cd-ac33-f8bf84749c02 first_name: 'Updated John2' last_name: 'Updated Do2e' phone: '98765432120' email: updated.j12ohn.doe@example.com email_verified_at: null role: user picture: profile.png created_at: '2024-03-04T08:47:58.000000Z' updated_at: '2024-03-04T08:47:58.000000Z' deleted_at: null capability: id: 1 name: John created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' activity: id: 1 name: John created_at: '2024-03-04T08:46:33.000000Z' updated_at: '2024-03-04T08:46:33.000000Z' project: id: 1 project_no: '1' name: John created_at: '2024-03-04T08:49:22.000000Z' updated_at: '2024-03-04T08:49:22.000000Z' date: '2024-03-01' note: 'This is a sample note' time_spent: '2 hours' created_at: '2024-03-04T08:50:46.000000Z' updated_at: '2024-03-04T08:50:46.000000Z' - id: 5 user_id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 division_id: 1 capability_id: 1 activity_id: 1 project_id: 1 user: id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 username: pinnguaq-9b7b60d5-20bd-40cd-ac33-f8bf84749c02 first_name: 'Updated John2' last_name: 'Updated Do2e' phone: '98765432120' email: updated.j12ohn.doe@example.com email_verified_at: null role: user picture: profile.png created_at: '2024-03-04T08:47:58.000000Z' updated_at: '2024-03-04T08:47:58.000000Z' deleted_at: null capability: id: 1 name: John created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' activity: id: 1 name: John created_at: '2024-03-04T08:46:33.000000Z' updated_at: '2024-03-04T08:46:33.000000Z' project: id: 1 project_no: '1' name: John created_at: '2024-03-04T08:49:22.000000Z' updated_at: '2024-03-04T08:49:22.000000Z' date: '2024-03-01' note: 'This is a sample note' time_spent: '2 hours' created_at: '2024-03-04T08:49:43.000000Z' updated_at: '2024-03-04T08:49:43.000000Z' - id: 4 user_id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 division_id: 1 capability_id: 1 activity_id: 1 project_id: 1 user: id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 username: pinnguaq-9b7b60d5-20bd-40cd-ac33-f8bf84749c02 first_name: 'Updated John2' last_name: 'Updated Do2e' phone: '98765432120' email: updated.j12ohn.doe@example.com email_verified_at: null role: user picture: profile.png created_at: '2024-03-04T08:47:58.000000Z' updated_at: '2024-03-04T08:47:58.000000Z' deleted_at: null capability: id: 1 name: John created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' activity: id: 1 name: John created_at: '2024-03-04T08:46:33.000000Z' updated_at: '2024-03-04T08:46:33.000000Z' project: id: 1 project_no: '1' name: John created_at: '2024-03-04T08:49:22.000000Z' updated_at: '2024-03-04T08:49:22.000000Z' date: '2024-03-02' note: 'This is a sample note' time_spent: '2 hours' created_at: '2024-03-04T08:49:38.000000Z' updated_at: '2024-03-04T08:49:38.000000Z' pagination: total: 3 per_page: 10 current: 1 first: 1 last: 1 previous: null next: null pages: - 1 from: 1 to: 3 properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record fetched successfully.' items: type: string data: type: object properties: list: type: array example: - id: 6 user_id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 division_id: 1 capability_id: 1 activity_id: 1 project_id: 1 user: id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 username: pinnguaq-9b7b60d5-20bd-40cd-ac33-f8bf84749c02 first_name: 'Updated John2' last_name: 'Updated Do2e' phone: '98765432120' email: updated.j12ohn.doe@example.com email_verified_at: null role: user picture: profile.png created_at: '2024-03-04T08:47:58.000000Z' updated_at: '2024-03-04T08:47:58.000000Z' deleted_at: null capability: id: 1 name: John created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' activity: id: 1 name: John created_at: '2024-03-04T08:46:33.000000Z' updated_at: '2024-03-04T08:46:33.000000Z' project: id: 1 project_no: '1' name: John created_at: '2024-03-04T08:49:22.000000Z' updated_at: '2024-03-04T08:49:22.000000Z' date: '2024-03-01' note: 'This is a sample note' time_spent: '2 hours' created_at: '2024-03-04T08:50:46.000000Z' updated_at: '2024-03-04T08:50:46.000000Z' - id: 5 user_id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 division_id: 1 capability_id: 1 activity_id: 1 project_id: 1 user: id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 username: pinnguaq-9b7b60d5-20bd-40cd-ac33-f8bf84749c02 first_name: 'Updated John2' last_name: 'Updated Do2e' phone: '98765432120' email: updated.j12ohn.doe@example.com email_verified_at: null role: user picture: profile.png created_at: '2024-03-04T08:47:58.000000Z' updated_at: '2024-03-04T08:47:58.000000Z' deleted_at: null capability: id: 1 name: John created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' activity: id: 1 name: John created_at: '2024-03-04T08:46:33.000000Z' updated_at: '2024-03-04T08:46:33.000000Z' project: id: 1 project_no: '1' name: John created_at: '2024-03-04T08:49:22.000000Z' updated_at: '2024-03-04T08:49:22.000000Z' date: '2024-03-01' note: 'This is a sample note' time_spent: '2 hours' created_at: '2024-03-04T08:49:43.000000Z' updated_at: '2024-03-04T08:49:43.000000Z' - id: 4 user_id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 division_id: 1 capability_id: 1 activity_id: 1 project_id: 1 user: id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 username: pinnguaq-9b7b60d5-20bd-40cd-ac33-f8bf84749c02 first_name: 'Updated John2' last_name: 'Updated Do2e' phone: '98765432120' email: updated.j12ohn.doe@example.com email_verified_at: null role: user picture: profile.png created_at: '2024-03-04T08:47:58.000000Z' updated_at: '2024-03-04T08:47:58.000000Z' deleted_at: null capability: id: 1 name: John created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' activity: id: 1 name: John created_at: '2024-03-04T08:46:33.000000Z' updated_at: '2024-03-04T08:46:33.000000Z' project: id: 1 project_no: '1' name: John created_at: '2024-03-04T08:49:22.000000Z' updated_at: '2024-03-04T08:49:22.000000Z' date: '2024-03-02' note: 'This is a sample note' time_spent: '2 hours' created_at: '2024-03-04T08:49:38.000000Z' updated_at: '2024-03-04T08:49:38.000000Z' items: type: object properties: id: type: integer example: 6 user_id: type: string example: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 division_id: type: integer example: 1 capability_id: type: integer example: 1 activity_id: type: integer example: 1 project_id: type: integer example: 1 user: type: object properties: id: type: string example: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 username: type: string example: pinnguaq-9b7b60d5-20bd-40cd-ac33-f8bf84749c02 first_name: type: string example: 'Updated John2' last_name: type: string example: 'Updated Do2e' phone: type: string example: '98765432120' email: type: string example: updated.j12ohn.doe@example.com email_verified_at: type: string example: null role: type: string example: user picture: type: string example: profile.png created_at: type: string example: '2024-03-04T08:47:58.000000Z' updated_at: type: string example: '2024-03-04T08:47:58.000000Z' deleted_at: type: string example: null capability: type: object properties: id: type: integer example: 1 name: type: string example: John created_at: type: string example: '2024-03-04T08:46:13.000000Z' updated_at: type: string example: '2024-03-04T08:46:13.000000Z' activity: type: object properties: id: type: integer example: 1 name: type: string example: John created_at: type: string example: '2024-03-04T08:46:33.000000Z' updated_at: type: string example: '2024-03-04T08:46:33.000000Z' project: type: object properties: id: type: integer example: 1 project_no: type: string example: '1' name: type: string example: John created_at: type: string example: '2024-03-04T08:49:22.000000Z' updated_at: type: string example: '2024-03-04T08:49:22.000000Z' date: type: string example: '2024-03-01' note: type: string example: 'This is a sample note' time_spent: type: string example: '2 hours' created_at: type: string example: '2024-03-04T08:50:46.000000Z' updated_at: type: string example: '2024-03-04T08:50:46.000000Z' pagination: type: object properties: total: type: integer example: 3 per_page: type: integer example: 10 current: type: integer example: 1 first: type: integer example: 1 last: type: integer example: 1 previous: type: string example: null next: type: string example: null pages: type: array example: - 1 items: type: integer from: type: integer example: 1 to: type: integer example: 3 tags: - TimeRecord post: summary: Create operationId: create description: 'Store new divsion' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 201 message: - 'Record created successfully.' data: id: 6 user_id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 division_id: 1 capability_id: 1 activity_id: 1 project_id: 1 date: '2024-03-01' note: 'This is a sample note' time_spent: '2 hours' created_at: '2024-03-04T08:50:46.000000Z' updated_at: '2024-03-04T08:50:46.000000Z' deleted_at: null properties: success: type: boolean example: true status_code: type: integer example: 201 message: type: array example: - 'Record created successfully.' items: type: string data: type: object properties: id: type: integer example: 6 user_id: type: string example: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 division_id: type: integer example: 1 capability_id: type: integer example: 1 activity_id: type: integer example: 1 project_id: type: integer example: 1 date: type: string example: '2024-03-01' note: type: string example: 'This is a sample note' time_spent: type: string example: '2 hours' created_at: type: string example: '2024-03-04T08:50:46.000000Z' updated_at: type: string example: '2024-03-04T08:50:46.000000Z' deleted_at: type: string example: null tags: - TimeRecord requestBody: required: true content: application/json: schema: type: object properties: division_id: type: integer description: '' example: 5 capability_id: type: integer description: '' example: 14 activity_id: type: integer description: '' example: 4 project_id: type: integer description: '' example: 17 activity_info: type: string description: 'This field is required when activity_id is not present.' example: eum date: type: string description: 'Must be a valid date.' example: '2025-04-08T14:56:11' note: type: string description: 'This field is required when project_id is not present.' example: cumque time_spent: type: string description: '' example: libero user_id: type: string description: 'The user of the time record.' example: eum required: - division_id - capability_id - date - time_spent - user_id '/api/admin/time-records/{id}': get: summary: Show operationId: show description: 'Show existing by id' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record fetched successfully.' data: id: 4 user_id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 division_id: 1 capability_id: 1 activity_id: 1 project_id: 1 user: id: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 username: pinnguaq-9b7b60d5-20bd-40cd-ac33-f8bf84749c02 first_name: 'Updated John2' last_name: 'Updated Do2e' phone: '98765432120' email: updated.j12ohn.doe@example.com email_verified_at: null role: user picture: profile.png created_at: '2024-03-04T08:47:58.000000Z' updated_at: '2024-03-04T08:47:58.000000Z' deleted_at: null capability: id: 1 name: John created_at: '2024-03-04T08:46:13.000000Z' updated_at: '2024-03-04T08:46:13.000000Z' activity: id: 1 name: John created_at: '2024-03-04T08:46:33.000000Z' updated_at: '2024-03-04T08:46:33.000000Z' project: id: 1 project_no: '1' name: John created_at: '2024-03-04T08:49:22.000000Z' updated_at: '2024-03-04T08:49:22.000000Z' date: '2024-03-02' note: 'This is a sample note' time_spent: '2 hours' created_at: '2024-03-04T08:49:38.000000Z' updated_at: '2024-03-04T08:49:38.000000Z' properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record fetched successfully.' items: type: string data: type: object properties: id: type: integer example: 4 user_id: type: string example: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 division_id: type: integer example: 1 capability_id: type: integer example: 1 activity_id: type: integer example: 1 project_id: type: integer example: 1 user: type: object properties: id: type: string example: 9b7b60d5-20bd-40cd-ac33-f8bf84749c02 username: type: string example: pinnguaq-9b7b60d5-20bd-40cd-ac33-f8bf84749c02 first_name: type: string example: 'Updated John2' last_name: type: string example: 'Updated Do2e' phone: type: string example: '98765432120' email: type: string example: updated.j12ohn.doe@example.com email_verified_at: type: string example: null role: type: string example: user picture: type: string example: profile.png created_at: type: string example: '2024-03-04T08:47:58.000000Z' updated_at: type: string example: '2024-03-04T08:47:58.000000Z' deleted_at: type: string example: null capability: type: object properties: id: type: integer example: 1 name: type: string example: John created_at: type: string example: '2024-03-04T08:46:13.000000Z' updated_at: type: string example: '2024-03-04T08:46:13.000000Z' activity: type: object properties: id: type: integer example: 1 name: type: string example: John created_at: type: string example: '2024-03-04T08:46:33.000000Z' updated_at: type: string example: '2024-03-04T08:46:33.000000Z' project: type: object properties: id: type: integer example: 1 project_no: type: string example: '1' name: type: string example: John created_at: type: string example: '2024-03-04T08:49:22.000000Z' updated_at: type: string example: '2024-03-04T08:49:22.000000Z' date: type: string example: '2024-03-02' note: type: string example: 'This is a sample note' time_spent: type: string example: '2 hours' created_at: type: string example: '2024-03-04T08:49:38.000000Z' updated_at: type: string example: '2024-03-04T08:49:38.000000Z' tags: - TimeRecord put: summary: Update operationId: update description: 'update by id' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record updated successfully.' data: true properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record updated successfully.' items: type: string data: type: boolean example: true tags: - TimeRecord requestBody: required: true content: application/json: schema: type: object properties: division_id: type: integer description: '' example: 20 capability_id: type: integer description: '' example: 11 activity_id: type: integer description: '' example: 17 project_id: type: integer description: '' example: 20 activity_info: type: string description: 'This field is required when activity_id is not present.' example: ullam date: type: string description: 'Must be a valid date.' example: '2025-04-08T14:56:11' note: type: string description: 'This field is required when project_id is not present.' example: qui time_spent: type: string description: '' example: nesciunt user_id: type: string description: 'The user of the time record.' example: est required: - division_id - capability_id - date - time_spent - user_id delete: summary: Delete operationId: delete description: '' parameters: [] responses: 204: description: '' tags: - TimeRecord parameters: - in: path name: id description: 'The ID of the time record.' example: 34 required: true schema: type: integer /api/admin/users: get: summary: 'Get All' operationId: getAll description: '' parameters: - in: query name: paginate description: 'Field to paginate. Defaults to true.' example: true required: false schema: type: boolean description: 'Field to paginate. Defaults to true.' example: true - in: query name: page description: 'Field to paginate. Defaults to null.' example: 1 required: false schema: type: integer description: 'Field to paginate. Defaults to null.' example: 1 - in: query name: perPage description: 'Field to paginate. Defaults to null.' example: 1 required: false schema: type: integer description: 'Field to paginate. Defaults to null.' example: 1 - in: query name: filterBy description: 'Field to filterBy. Defaults to null.' example: name required: false schema: type: string description: 'Field to filterBy. Defaults to null.' example: name - in: query name: filterValue description: 'Field to filterValue. Defaults to null.' example: Car required: false schema: type: string description: 'Field to filterValue. Defaults to null.' example: Car responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record fetched successfully.' data: list: - id: 9b978e30-40bf-42d6-97b0-5c205879a375 username: user first_name: Jane last_name: Doe phone: '1234567890' email: user@example.com email_verified_at: '2024-03-18T08:57:58.000000Z' profile: user.jpg is_active: '1' created_at: '2024-03-18T08:57:58.000000Z' updated_at: '2024-03-18T08:57:58.000000Z' deleted_at: null - id: 9b978e2f-b0ad-4bca-8d15-0fb0e3c0af11 username: user1 first_name: John last_name: Doe phone: null email: user1@example.com email_verified_at: null profile: admin.jpg is_active: '1' created_at: '2024-03-18T08:57:58.000000Z' updated_at: '2024-03-18T08:57:58.000000Z' deleted_at: null pagination: total: 2 per_page: 10 current: 1 first: 1 last: 1 previous: null next: null pages: - 1 from: 1 to: 2 properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record fetched successfully.' items: type: string data: type: object properties: list: type: array example: - id: 9b978e30-40bf-42d6-97b0-5c205879a375 username: user first_name: Jane last_name: Doe phone: '1234567890' email: user@example.com email_verified_at: '2024-03-18T08:57:58.000000Z' profile: user.jpg is_active: '1' created_at: '2024-03-18T08:57:58.000000Z' updated_at: '2024-03-18T08:57:58.000000Z' deleted_at: null - id: 9b978e2f-b0ad-4bca-8d15-0fb0e3c0af11 username: user1 first_name: John last_name: Doe phone: null email: user1@example.com email_verified_at: null profile: admin.jpg is_active: '1' created_at: '2024-03-18T08:57:58.000000Z' updated_at: '2024-03-18T08:57:58.000000Z' deleted_at: null items: type: object properties: id: type: string example: 9b978e30-40bf-42d6-97b0-5c205879a375 username: type: string example: user first_name: type: string example: Jane last_name: type: string example: Doe phone: type: string example: '1234567890' email: type: string example: user@example.com email_verified_at: type: string example: '2024-03-18T08:57:58.000000Z' profile: type: string example: user.jpg is_active: type: string example: '1' created_at: type: string example: '2024-03-18T08:57:58.000000Z' updated_at: type: string example: '2024-03-18T08:57:58.000000Z' deleted_at: type: string example: null pagination: type: object properties: total: type: integer example: 2 per_page: type: integer example: 10 current: type: integer example: 1 first: type: integer example: 1 last: type: integer example: 1 previous: type: string example: null next: type: string example: null pages: type: array example: - 1 items: type: integer from: type: integer example: 1 to: type: integer example: 2 tags: - Users post: summary: Create operationId: create description: 'Store new divsion' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 201 message: - 'Record created successfully.' data: - first_name: 'Updated John' last_name: 'Updated Doe' phone: '9876543210' email: updated.john.doe@example.com picture: profile.png id: 9b97b9dd-2cd5-4a7c-84b9-9b5ef2600040 username: user-9b97b9dd-2cd5-4a7c-84b9-9b5ef2600040 updated_at: '2024-03-18T11:00:06.000000Z' created_at: '2024-03-18T11:00:06.000000Z' properties: success: type: boolean example: true status_code: type: integer example: 201 message: type: array example: - 'Record created successfully.' items: type: string data: type: array example: - first_name: 'Updated John' last_name: 'Updated Doe' phone: '9876543210' email: updated.john.doe@example.com picture: profile.png id: 9b97b9dd-2cd5-4a7c-84b9-9b5ef2600040 username: user-9b97b9dd-2cd5-4a7c-84b9-9b5ef2600040 updated_at: '2024-03-18T11:00:06.000000Z' created_at: '2024-03-18T11:00:06.000000Z' items: type: object properties: first_name: type: string example: 'Updated John' last_name: type: string example: 'Updated Doe' phone: type: string example: '9876543210' email: type: string example: updated.john.doe@example.com picture: type: string example: profile.png id: type: string example: 9b97b9dd-2cd5-4a7c-84b9-9b5ef2600040 username: type: string example: user-9b97b9dd-2cd5-4a7c-84b9-9b5ef2600040 updated_at: type: string example: '2024-03-18T11:00:06.000000Z' created_at: type: string example: '2024-03-18T11:00:06.000000Z' tags: - Users '/api/admin/users/{id}': get: summary: Show operationId: show description: 'Show existing by id' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record fetched successfully.' data: id: 9b978e30-40bf-42d6-97b0-5c205879a375 username: user first_name: Jane last_name: Doe phone: '1234567890' email: user@example.com email_verified_at: '2024-03-18T08:57:58.000000Z' profile: user.jpg is_active: '1' created_at: '2024-03-18T08:57:58.000000Z' updated_at: '2024-03-18T08:57:58.000000Z' deleted_at: null divisions: - id: 1 name: John created_at: '2024-02-28T15:43:48.000000Z' updated_at: '2024-02-28T15:43:48.000000Z' deleted_at: null pivot: user_id: 9b978e30-40bf-42d6-97b0-5c205879a375 division_id: 1 - id: 3 name: Doe created_at: '2024-02-28T15:43:48.000000Z' updated_at: '2024-02-28T15:43:48.000000Z' deleted_at: null pivot: user_id: 9b978e30-40bf-42d6-97b0-5c205879a375 division_id: 3 properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record fetched successfully.' items: type: string data: type: object properties: id: type: string example: 9b978e30-40bf-42d6-97b0-5c205879a375 username: type: string example: user first_name: type: string example: Jane last_name: type: string example: Doe phone: type: string example: '1234567890' email: type: string example: user@example.com email_verified_at: type: string example: '2024-03-18T08:57:58.000000Z' profile: type: string example: user.jpg is_active: type: string example: '1' created_at: type: string example: '2024-03-18T08:57:58.000000Z' updated_at: type: string example: '2024-03-18T08:57:58.000000Z' deleted_at: type: string example: null divisions: type: array example: - id: 1 name: John created_at: '2024-02-28T15:43:48.000000Z' updated_at: '2024-02-28T15:43:48.000000Z' deleted_at: null pivot: user_id: 9b978e30-40bf-42d6-97b0-5c205879a375 division_id: 1 - id: 3 name: Doe created_at: '2024-02-28T15:43:48.000000Z' updated_at: '2024-02-28T15:43:48.000000Z' deleted_at: null pivot: user_id: 9b978e30-40bf-42d6-97b0-5c205879a375 division_id: 3 items: type: object properties: id: type: integer example: 1 name: type: string example: John created_at: type: string example: '2024-02-28T15:43:48.000000Z' updated_at: type: string example: '2024-02-28T15:43:48.000000Z' deleted_at: type: string example: null pivot: type: object properties: user_id: type: string example: 9b978e30-40bf-42d6-97b0-5c205879a375 division_id: type: integer example: 1 tags: - Users put: summary: Update operationId: update description: 'update by id' parameters: [] responses: 200: description: '' content: application/json: schema: type: object example: success: true status_code: 200 message: - 'Record updated successfully.' data: true properties: success: type: boolean example: true status_code: type: integer example: 200 message: type: array example: - 'Record updated successfully.' items: type: string data: type: boolean example: true tags: - Users requestBody: required: false content: application/json: schema: type: object properties: first_name: type: string description: 'Must not be greater than 255 characters.' example: atoccamibabjehji last_name: type: string description: 'Must not be greater than 255 characters.' example: vku username: type: string description: 'Must not be greater than 255 characters.' example: raxsrzuthwqzthomvd phone: type: string description: 'Must not be greater than 255 characters.' example: lfgzvsvqwzcgirdtapcwz email: type: string description: 'The email of the user. Must be a valid email address.' example: bins.clare@example.org password: type: string description: 'Must be at least 6 characters.' example: FYq@3$$yC picture: type: string description: '' example: null division_ids: type: object description: '' example: null properties: { } delete: summary: Delete operationId: delete description: '' parameters: [] responses: 204: description: '' tags: - Users parameters: - in: path name: id description: 'The ID of the user.' example: 9b97b9dd-2cd5-4a7c-84b9-9b5ef2600040 required: true schema: type: string tags: - name: Activity description: '' - name: Auth description: 'APIs for managing Auth' - name: Capability description: '' - name: Division description: '' - name: Endpoints description: '' - name: Project description: '' - name: TimeRecord description: '' - name: Users description: ''