http://127.0.0.1:8000/api/v1/login
Arguments | Type | Description |
---|---|---|
sting | Required admin@gmail.com | |
password | string | Required asdffdsa |
http://127.0.0.1:8000/api/v1/register
Arguments | Type | Description |
---|---|---|
name | string | Required Post Malone |
string | Required admin@gmail.com | |
phone | string | Required 0977889911 |
role | enum | Required [admin,probation,permanent] |
position | string | Required Founder |
jd | long text | Required Job Description |
annual_leave | float | Required 10 |
casual_leave | float | Required 2 |
probation_leave | float | Required 3 |
unpaid_leave | float | Required 10 |
password | string | Required asdffdsa |
password_confirmation | string | Required asdffdsa |
agree | bool | Required 1 |
http://127.0.0.1:8000/api/v1/your-profile
http://127.0.0.1:8000/api/v1/user-profile/{id}
http://127.0.0.1:8000/api/v1/user-lists
http://127.0.0.1:8000/api/v1/edit
Arguments | Type | Description |
---|---|---|
name | sting | Required Post Malone |
string | Required example@gmail.com | |
phone | sting | Required 0978786767 |
role | enum | Required [admin,probation,permanent] |
position | string | Required Example |
jd | long text | Required Job Description |
annual_leave | float | Required 10 |
casual_leave | float | Required 2 |
probation_leave | float | Required 3 |
unpaid_leave | float | Required 10 |
http://127.0.0.1:8000/api/v1/update-password
Arguments | Type | Description |
---|---|---|
current_password | sting | Required asdffdsa |
password | string | Required asdffdsa |
password_confirmation | string | Required asdffdsa |
http://127.0.0.1:8000/api/v1/logout
http://127.0.0.1:8000/api/v1/logout-all
http://127.0.0.1:8000/api/v1/attendance/index
http://127.0.0.1:8000/api/v1/check-in
http://127.0.0.1:8000/api/v1/check-out
Note : You can check in / out one time in each day
Note : If Your check in time is late than 09:15 It will automatically add late count.
http://127.0.0.1:8000/api/v1/monthly/index
http://127.0.0.1:8000/api/v1/leave/request
Arguments | Type | Description |
---|---|---|
half_day | boolean | Required true or false |
requested_days | float | Sometimes Read Note 1 below |
leave_type | string | Required Read Note 2 below |
date | array | Required [ "2023-9-10", "2023-9-15" ] |
reason | long text | Required any reason |
Note 1 : If half_day is true requested_days will automatically (0.5)s. If not requested_days will be inputted amount.
Note 2 : leave_type should be one of [annual_leave,casual_leave,probation_leave,unpaid_leave].
http://127.0.0.1:8000/api/v1/leave/approve/{id}
http://127.0.0.1:8000/api/v1/leave/denies/{id}
http://127.0.0.1:8000/api/v1/leave/request/list
http://127.0.0.1:8000/api/v1/leave/request/detail/{id}
http://127.0.0.1:8000/api/v1/leave/request/your-list