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/user/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
/api/user/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: veritatis
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/user/logout:
post:
summary: Logout
operationId: logout
description: ''
parameters: []
responses: { }
tags:
- Auth
/api/user/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
delete:
summary: 'Delete Profile'
operationId: deleteProfile
description: ''
parameters: []
responses:
204:
description: ''
tags:
- Auth
/api/user/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: qwmbbftbljio
last_name:
type: string
description: 'Must not be greater than 255 characters.'
example: nhmpmbebjcmwcsoac
phone:
type: string
description: 'Must not be greater than 255 characters.'
example: yxfnndgvlyyvxxgxr
password:
type: string
description: 'Must be at least 6 characters.'
example: '(W}5$|LK1{x=e'
picture:
type: string
description: ''
example: null
required:
- first_name
- last_name
/api/user/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
/api/user/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
/api/user/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
/api/user/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: 16
capability_id:
type: integer
description: ''
example: 14
activity_id:
type: integer
description: ''
example: 20
project_id:
type: integer
description: ''
example: 14
activity_info:
type: string
description: 'This field is required when activity_id is not present.'
example: velit
date:
type: string
description: 'Must be a valid date.'
example: '2025-04-08T14:56:12'
note:
type: string
description: 'This field is required when project_id is not present.'
example: assumenda
time_spent:
type: string
description: ''
example: ut
required:
- division_id
- capability_id
- date
- time_spent
'/api/user/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: 7
capability_id:
type: integer
description: ''
example: 6
activity_id:
type: integer
description: ''
example: 15
project_id:
type: integer
description: ''
example: 6
activity_info:
type: string
description: 'This field is required when activity_id is not present.'
example: odio
date:
type: string
description: 'Must be a valid date.'
example: '2025-04-08T14:56:12'
note:
type: string
description: 'This field is required when project_id is not present.'
example: vitae
time_spent:
type: string
description: ''
example: nulla
required:
- division_id
- capability_id
- date
- time_spent
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
tags:
-
name: Activity
description: ''
-
name: Auth
description: 'APIs for managing Auth'
-
name: Capability
description: ''
-
name: Division
description: ''
-
name: Project
description: ''
-
name: TimeRecord
description: ''