MENU navbar-image

Introduction

MIS API Documentation

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your dashboard and clicking Generate API token.

Authentication

Login

Login for user account

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/login" \
    --header "Accept: application/json" \
    --header "intudid: 12345" \
    --header "device-type: iphone" \
    --header "device-token: 123456" \
    --header "lang: english" \
    --header "rom: 123" \
    --header "ram: 123" \
    --header "brand: 123" \
    --header "model: 11231" \
    --header "app-version: 1" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"admin@moweb.com\",
    \"password\": \"Admin@123\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/login"
);

const headers = {
    "Accept": "application/json",
    "intudid": "12345",
    "device-type": "iphone",
    "device-token": "123456",
    "lang": "english",
    "rom": "123",
    "ram": "123",
    "brand": "123",
    "model": "11231",
    "app-version": "1",
    "Content-Type": "application/json",
};

let body = {
    "email": "admin@moweb.com",
    "password": "Admin@123"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/login',
    [
        'headers' => [
            'Accept' => 'application/json',
            'intudid' => '12345',
            'device-type' => 'iphone',
            'device-token' => '123456',
            'lang' => 'english',
            'rom' => '123',
            'ram' => '123',
            'brand' => '123',
            'model' => '11231',
            'app-version' => '1',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => 'admin@moweb.com',
            'password' => 'Admin@123',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Login Successfully!):


{"error":"false", "message": "Login successfully", code:"200"}
 

Example response (401, Invalid Credential):


{"error":"true", "message": "Invalid Credential", code:"401"}
 

Example response (422, Unprocessable Entity):


{"error":"true", "message": "validation error", code:"422"}
 

Request      

POST api/v1/login

Headers

Accept      

Example: application/json

intudid      

Example: 12345

device-type      

Example: iphone

device-token      

Example: 123456

lang      

Example: english

rom      

Example: 123

ram      

Example: 123

brand      

Example: 123

model      

Example: 11231

app-version      

Example: 1

Content-Type      

Example: application/json

Body Parameters

email   string   

The email id of the account. Must be a valid email address. Example: admin@moweb.com

password   string   

The password of the account. . Example: Admin@123

Change Password

requires authentication

Change Password for user

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/change-password" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"current_password\": \"currentpassword\",
    \"new_password\": \"newpassword\",
    \"confirm_password\": \"confirmpassword\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/change-password"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "current_password": "currentpassword",
    "new_password": "newpassword",
    "confirm_password": "confirmpassword"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/change-password',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'current_password' => 'currentpassword',
            'new_password' => 'newpassword',
            'confirm_password' => 'confirmpassword',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Password Change Successfully):


{"error":"false",code:"200","message": "Password Change  Successfully"}
 

Example response (500, Something went wrong):


{"error":"true",code:"500" "message": "Something went wrong"}
 

Request      

POST api/v1/change-password

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

current_password   string   

The current password of the user. Example: currentpassword

new_password   string   

The new password of the user. Example: newpassword

confirm_password   string   

The confirm password of the user. The value and new_password must match. Example: confirmpassword

logout

requires authentication

Logout for user

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/logout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/logout"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/logout',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Logout Successfull):


{"error":"false",code:"200","message": "Logout Successfull"}
 

Request      

POST api/v1/logout

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Passwords Maintain

Forgot Password

use for forgot password

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/forgot-password" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"dicki.jamal@example.org\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/forgot-password"
);

const headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "email": "dicki.jamal@example.org"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/forgot-password',
    [
        'headers' => [
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => 'dicki.jamal@example.org',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Link has been sent successfully):


{"error":"false", "message": "Link has been sent successfully",code:"200"}
 

Example response (404, User does not exist):


{"error":"true", "message": "User does not exist",code:"404"}
 

Request      

POST api/v1/forgot-password

Headers

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

email   string   

The email of the user. Example: dicki.jamal@example.org

set The password using email verification

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/set-password-link-generator" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"admin@moweb.com\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/set-password-link-generator"
);

const headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "email": "admin@moweb.com"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/set-password-link-generator',
    [
        'headers' => [
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => 'admin@moweb.com',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Reset Password

reset password for user account using forgot password activation link

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/reset-password" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"token\": \"vero\",
    \"email\": \"karlie88@example.com\",
    \"password\": \"_KU7,eM|+;@R||\",
    \"password_confirmation\": \"inventore\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/reset-password"
);

const headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "token": "vero",
    "email": "karlie88@example.com",
    "password": "_KU7,eM|+;@R||",
    "password_confirmation": "inventore"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/reset-password',
    [
        'headers' => [
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'token' => 'vero',
            'email' => 'karlie88@example.com',
            'password' => '_KU7,eM|+;@R||',
            'password_confirmation' => 'inventore',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Success):


{"message": "Password reset successfully! You can login with your new password!",}
 

Example response (401, Token is invalid):


{
    "message": "This password reset token is invalid."
}
 

Example response (404, Email does not exist):


{
    "message": "Email does not exist"
}
 

Request      

POST api/v1/reset-password

Headers

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

token   string   

Token for reset the password Example: vero

email   string   

The email id of the account Example: karlie88@example.com

password   string   

New password of the account Example: _KU7,eM|+;@R||

password_confirmation   string   

Confirm password of the account Example: inventore

Department

List

requires authentication

List of the department.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/departmenmt?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/departmenmt"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/departmenmt',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/departmenmt

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a newly created department

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/departmenmt" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/departmenmt"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/departmenmt',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/departmenmt

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Edit

requires authentication

get department by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/departmenmt/quis" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/departmenmt/quis"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/departmenmt/quis',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/departmenmt/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the departmenmt. Example: quis

delete

requires authentication

delete department

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/departmenmt/autem" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/departmenmt/autem"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/departmenmt/autem',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record Deleted Successfully!):


{"error":"false",code:"200","message": "Record Deleted Successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/departmenmt/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the departmenmt. Example: autem

Education

List

requires authentication

List of the education.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/educations?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/educations"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/educations',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/educations

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a newly created education

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/educations" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"id\": \"1\",
    \"name\": \"MBA\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/educations"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "id": "1",
    "name": "MBA"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/educations',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => '1',
            'name' => 'MBA',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/educations

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

id of the education. Example: 1

name   string   

Name of the education. Example: MBA

Edit

requires authentication

get education detail by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/educations/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/educations/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/educations/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/educations/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the education. Example: 1

delete

requires authentication

delete education

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/educations/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/educations/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/educations/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record Deleted Successfully!):


{"error":"false",code:"200","message": "Record Deleted Successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/educations/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the education. Example: 1

Employee Apply Leave

List

requires authentication

List of the interview status.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/employee-apply-leaves?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-apply-leaves"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/employee-apply-leaves',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/employee-apply-leaves

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a new Employee Report

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/employee-apply-leaves" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"company_id\": \"1\",
    \"employee_id\": \"2\",
    \"total_days_count\": \"4\",
    \"comments\": \"comments..\",
    \"leave_type_id\": \"1\",
    \"for_date\": \"1\\/5\\/2023\",
    \"leave_duration\": \"1 days\",
    \"status\": \"Active\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-apply-leaves"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "company_id": "1",
    "employee_id": "2",
    "total_days_count": "4",
    "comments": "comments..",
    "leave_type_id": "1",
    "for_date": "1\/5\/2023",
    "leave_duration": "1 days",
    "status": "Active"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/employee-apply-leaves',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'company_id' => '1',
            'employee_id' => '2',
            'total_days_count' => '4',
            'comments' => 'comments..',
            'leave_type_id' => '1',
            'for_date' => '1/5/2023',
            'leave_duration' => '1 days',
            'status' => 'Active',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/employee-apply-leaves

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

company_id   string   

id of the company. Example: 1

employee_id   string   

id of the employee. Example: 2

total_days_count   string   

Total days. Example: 4

comments   string   

enter some comments. Example: comments..

leave_type_id   string   

enter leave type id. Example: 1

for_date   string   

For date. Example: 1/5/2023

leave_duration   string   

Leave duration. Example: 1 days

status   string  optional  

Active or InActive. Example: Active

delete

requires authentication

delete Employee Report

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/employee-apply-leaves/quo" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-apply-leaves/quo"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/employee-apply-leaves/quo',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record Deleted Successfully!):


{"error":"false",code:"200","message": "Record Deleted Successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/employee-apply-leaves/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the employee apply leafe. Example: quo

Employee Report

List

requires authentication

List of the employee report.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/employee-report?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-report"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/employee-report',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/employee-report

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a new Employee Report

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/employee-report" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"id\": \"1\",
    \"company_id\": \"1\",
    \"employee_id\": \"2\",
    \"report_month\": \"9\",
    \"report_year\": \"2023\",
    \"over_all_rate\": \"5\",
    \"report_type_id\": \"2\",
    \"task_detail\": \"some task details\",
    \"master_rating\": \"5\",
    \"status\": \"Active\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-report"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "id": "1",
    "company_id": "1",
    "employee_id": "2",
    "report_month": "9",
    "report_year": "2023",
    "over_all_rate": "5",
    "report_type_id": "2",
    "task_detail": "some task details",
    "master_rating": "5",
    "status": "Active"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/employee-report',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => '1',
            'company_id' => '1',
            'employee_id' => '2',
            'report_month' => '9',
            'report_year' => '2023',
            'over_all_rate' => '5',
            'report_type_id' => '2',
            'task_detail' => 'some task details',
            'master_rating' => '5',
            'status' => 'Active',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/employee-report

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the employee report. Example: 1

company_id   string   

ID of the Company. Example: 1

employee_id   string   

Id of the Employee. Example: 2

report_month   string   

Enter the report month. Example: 9

report_year   string   

Enter the report year. Example: 2023

over_all_rate   string   

Enter the over all rate. Example: 5

report_type_id   string   

Enter report type id. Example: 2

task_detail   string   

Enter task detail. Example: some task details

master_rating   string   

Enter master rating. Example: 5

status   string   

Active or InActive. Example: Active

Edit

requires authentication

get Employee Report detail by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/employee-report/12" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-report/12"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/employee-report/12',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/employee-report/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the employee report. Example: 12

delete

requires authentication

delete Employee Report

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/employee-report/9" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-report/9"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/employee-report/9',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record Deleted Successfully!):


{"error":"false",code:"200","message": "Record Deleted Successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/employee-report/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the employee report. Example: 9

Employee Report Feedback

List

requires authentication

List of the Employee Report Feedback.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/employee-report-feedback?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-report-feedback"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/employee-report-feedback',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/employee-report-feedback

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a new Employee Report feedback

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/employee-report-feedback" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"id\": \"1\",
    \"company_id\": \"1\",
    \"employee_id\": \"1\",
    \"employee_report_detail_id\": \"1\",
    \"rating\": \"5\",
    \"feedback\": \"Test\",
    \"status\": \"InActive\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-report-feedback"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "id": "1",
    "company_id": "1",
    "employee_id": "1",
    "employee_report_detail_id": "1",
    "rating": "5",
    "feedback": "Test",
    "status": "InActive"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/employee-report-feedback',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => '1',
            'company_id' => '1',
            'employee_id' => '1',
            'employee_report_detail_id' => '1',
            'rating' => '5',
            'feedback' => 'Test',
            'status' => 'InActive',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/employee-report-feedback

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the employee report feedback. Example: 1

company_id   string   

Id of the Company. Example: 1

employee_id   string   

Id of the Employee. Example: 1

employee_report_detail_id   string   

Enter the employee report detail id. Example: 1

rating   string   

Enter the rating. Example: 5

feedback   string   

Enter the feedback. Example: Test

status   string   

Active or InActive. Example: InActive

Edit

requires authentication

get Employee Report feedback detail by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/employee-report-feedback/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-report-feedback/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/employee-report-feedback/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/employee-report-feedback/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the employee report feedback. Example: 1

delete

requires authentication

delete Employee Report feedback

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/employee-report-feedback/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-report-feedback/3"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/employee-report-feedback/3',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record Deleted Successfully!):


{"error":"false",code:"200","message": "Record Deleted Successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/employee-report-feedback/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the employee report feedback. Example: 3

Employee compensate leaves

List

requires authentication

List of the employee compensate leaves.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/employee-compensate-leaves?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-compensate-leaves"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/employee-compensate-leaves',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/employee-compensate-leaves

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a new Employee compensate leaves

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/employee-compensate-leaves" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"id\": \"1\",
    \"company_id\": \"1\",
    \"employee_id\": \"1\",
    \"assign_date\": \"2023-05-24\",
    \"leave_duration\": \"full\",
    \"comments\": \"Hello, your Compensate leave\",
    \"feedback\": \"feedback\",
    \"status\": \"Active\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-compensate-leaves"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "id": "1",
    "company_id": "1",
    "employee_id": "1",
    "assign_date": "2023-05-24",
    "leave_duration": "full",
    "comments": "Hello, your Compensate leave",
    "feedback": "feedback",
    "status": "Active"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/employee-compensate-leaves',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => '1',
            'company_id' => '1',
            'employee_id' => '1',
            'assign_date' => '2023-05-24',
            'leave_duration' => 'full',
            'comments' => 'Hello, your Compensate leave',
            'feedback' => 'feedback',
            'status' => 'Active',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/employee-compensate-leaves

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the employee leaves. Example: 1

company_id   string   

Id of the company. Example: 1

employee_id   string   

Id of the employee. Example: 1

assign_date   string   

Enter the assign date. Example: 2023-05-24

leave_duration   string   

Enter the leave duration any one (full / first half / second half). Example: full

comments   string   

Enter the comments. Example: Hello, your Compensate leave

feedback   string   

Enter the feedback. Example: feedback

status   string  optional  

Active or InActive. Example: Active

Edit

requires authentication

get Employee compensate leaves detail by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/employee-compensate-leaves/error" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-compensate-leaves/error"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/employee-compensate-leaves/error',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/employee-compensate-leaves/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the employee compensate leafe. Example: error

delete

requires authentication

delete Employee compensate leaves

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/employee-compensate-leaves/aliquid" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/employee-compensate-leaves/aliquid"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/employee-compensate-leaves/aliquid',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record Deleted Successfully!):


{"error":"false",code:"200","message": "Record Deleted Successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/employee-compensate-leaves/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the employee compensate leafe. Example: aliquid

Endpoints

GET api/v1/dashboard

requires authentication

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/dashboard" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/dashboard"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/dashboard',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "code": "401",
    "message": "Access Token is not valid, Please login again",
    "access_token": "",
    "data": []
}
 

Request      

GET api/v1/dashboard

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Interview Location

List

requires authentication

List of the interview location.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/interview-type?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/interview-type"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/interview-type',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/interview-type

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a newly created interview location

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/interview-type" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"id\": \"1\",
    \"name\": \"ABC\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/interview-type"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "id": "1",
    "name": "ABC"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/interview-type',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => '1',
            'name' => 'ABC',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/interview-type

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the interview location. Example: 1

name   string   

Name of the interview location. Example: ABC

Edit

requires authentication

get interview location detail by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/interview-type/4" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/interview-type/4"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/interview-type/4',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/interview-type/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the interview type. Example: 4

delete

requires authentication

delete interview location

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/interview-type/4" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/interview-type/4"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/interview-type/4',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record Deleted Successfully!):


{"error":"false",code:"200","message": "Record Deleted Successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/interview-type/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the interview type. Example: 4

Interview Status

List

requires authentication

List of the interview status.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/interview-status?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/interview-status"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/interview-status',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/interview-status

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a newly created interview status

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/interview-status" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"id\": \"1\",
    \"name\": \"ABC\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/interview-status"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "id": "1",
    "name": "ABC"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/interview-status',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => '1',
            'name' => 'ABC',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/interview-status

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the interview status. Example: 1

name   string   

Name of the interview status. Example: ABC

Edit

requires authentication

get interview status detail by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/interview-status/20" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/interview-status/20"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/interview-status/20',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/interview-status/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the interview status. Example: 20

delete

requires authentication

delete interview status

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/interview-status/13" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/interview-status/13"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/interview-status/13',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record Deleted Successfully!):


{"error":"false",code:"200","message": "Record Deleted Successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/interview-status/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the interview status. Example: 13

Job Role Type

List

requires authentication

List of the Job Role Type.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/job-role-type?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/job-role-type"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/job-role-type',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/job-role-type

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a newly created Job Role Type

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/job-role-type" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"id\": \"On Roll\",
    \"name\": \"On Roll\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/job-role-type"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "id": "On Roll",
    "name": "On Roll"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/job-role-type',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => 'On Roll',
            'name' => 'On Roll',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/job-role-type

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the Job Role Type. Example: On Roll

name   string   

Name of the Job Role Type. Example: On Roll

Edit

requires authentication

get Job Role Type detail by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/job-role-type/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/job-role-type/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/job-role-type/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/job-role-type/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the job role type. Example: 1

delete

requires authentication

delete Job Role Type

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/job-role-type/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/job-role-type/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/job-role-type/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been deleted successfully!):


{"error":"false",code:"200","message": "Record has been deleted successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/job-role-type/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the job role type. Example: 1

Leave type

List

requires authentication

List of the Leave type

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/leave-type?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/leave-type"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/leave-type',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/leave-type

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a newly created leave Type

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/leave-type" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"company_id\": \"beatae\",
    \"is_parent\": \"1\",
    \"descriptions\": \"some description\",
    \"short_tag\": \"short\",
    \"name\": \"ABC\",
    \"status\": \"Active\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/leave-type"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "company_id": "beatae",
    "is_parent": "1",
    "descriptions": "some description",
    "short_tag": "short",
    "name": "ABC",
    "status": "Active"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/leave-type',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'company_id' => 'beatae',
            'is_parent' => '1',
            'descriptions' => 'some description',
            'short_tag' => 'short',
            'name' => 'ABC',
            'status' => 'Active',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/leave-type

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

id   string  optional  
company_id   string   

Example: beatae

is_parent   string   

0 or 1. Example: 1

descriptions   string   

descriptions of the leave type. Example: some description

short_tag   string   

short tag. Example: short

name   string   

Name of the leave type. Example: ABC

status   string  optional  

Active Or InActive. Example: Active

Edit

requires authentication

get leave Type detail by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/leave-type/15" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/leave-type/15"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/leave-type/15',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/leave-type/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the leave type. Example: 15

delete

requires authentication

delete leave Type

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/leave-type/3" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/leave-type/3"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/leave-type/3',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been deleted successfully!):


{"error":"false",code:"200","message": "Record has been deleted successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/leave-type/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the leave type. Example: 3

Master

Team

requires authentication

List of the team.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/teamList" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/teamList"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/teamList',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Team List Get Successfully!):


{"error":"false", "message": "Team List Get Successfully", code:"200"}
 

Example response (401, unauthenticated):


{"error":"true", "message": "unauthenticated", code:"401"}
 

Example response (422, Unprocessable Entity):


{"error":"true", "message": "validation error", code:"422"}
 

Request      

GET api/v1/teamList

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Job Role

requires authentication

List of the Job role.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/jobRoleList" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/jobRoleList"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/jobRoleList',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Job Role List Get Successfully!):


{"error":"false", "message": "Job Role List Get Successfully", code:"200"}
 

Example response (401, unauthenticated):


{"error":"true", "message": "unauthenticated", code:"401"}
 

Example response (422, Unprocessable Entity):


{"error":"true", "message": "validation error", code:"422"}
 

Request      

GET api/v1/jobRoleList

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

department

requires authentication

List of the department.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/departmentList" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/departmentList"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/departmentList',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Department List Get Successfully!):


{"error":"false", "message": "Department List Get Successfully", code:"200"}
 

Example response (401, unauthenticated):


{"error":"true", "message": "unauthenticated", code:"401"}
 

Example response (422, Unprocessable Entity):


{"error":"true", "message": "validation error", code:"422"}
 

Request      

GET api/v1/departmentList

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Roles

requires authentication

List of the roles.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/rolesList" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/rolesList"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/rolesList',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Roles List Get Successfully!):


{"error":"false", "message": "Roles List Get Successfully", code:"200"}
 

Example response (401, unauthenticated):


{"error":"true", "message": "unauthenticated", code:"401"}
 

Example response (422, Unprocessable Entity):


{"error":"true", "message": "validation error", code:"422"}
 

Request      

GET api/v1/rolesList

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Worklocation

requires authentication

List of the Worklocation.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/workLocationList" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/workLocationList"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/workLocationList',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Worklocation List Get Successfully!):


{"error":"false", "message": "Worklocation List Get Successfully", code:"200"}
 

Example response (401, unauthenticated):


{"error":"true", "message": "unauthenticated", code:"401"}
 

Example response (422, Unprocessable Entity):


{"error":"true", "message": "validation error", code:"422"}
 

Request      

GET api/v1/workLocationList

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Education

requires authentication

List of the Education.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/educationList" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/educationList"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/educationList',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Education List Get Successfully!):


{"error":"false", "message": "Education List Get Successfully", code:"200"}
 

Example response (401, unauthenticated):


{"error":"true", "message": "unauthenticated", code:"401"}
 

Example response (422, Unprocessable Entity):


{"error":"true", "message": "validation error", code:"422"}
 

Request      

GET api/v1/educationList

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Tech Stack

requires authentication

List of the tech stack.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/techStack" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/techStack"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/techStack',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Education List Get Successfully!):


{"error":"false", "message": "Education List Get Successfully", code:"200"}
 

Example response (401, unauthenticated):


{"error":"true", "message": "unauthenticated", code:"401"}
 

Example response (422, Unprocessable Entity):


{"error":"true", "message": "validation error", code:"422"}
 

Request      

GET api/v1/techStack

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Library

requires authentication

List of the Library.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/library" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/library"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/library',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Library List Get Successfully!):


{"error":"false", "message": "Library List Get Successfully", code:"200"}
 

Example response (401, unauthenticated):


{"error":"true", "message": "unauthenticated", code:"401"}
 

Example response (422, Unprocessable Entity):


{"error":"true", "message": "validation error", code:"422"}
 

Request      

GET api/v1/library

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Master-common 0

Route Not Found

requires authentication

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/zX" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/zX"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/zX',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "code": "401",
    "message": "Access Token is not valid, Please login again",
    "access_token": "",
    "data": []
}
 

Request      

GET api/v1/{path}

POST api/v1/{path}

PUT api/v1/{path}

PATCH api/v1/{path}

DELETE api/v1/{path}

OPTIONS api/v1/{path}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

path   string   

Example: zX

Position

List

requires authentication

List of the Position.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/position?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/position"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/position',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/position

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a newly created Position

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/position" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"id\": \"1\",
    \"name\": \"Position 1\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/position"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "id": "1",
    "name": "Position 1"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/position',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => '1',
            'name' => 'Position 1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/position

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the Position. Example: 1

name   string   

Name of the Position. Example: Position 1

Edit

requires authentication

get Position detail by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/position/9" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/position/9"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/position/9',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/position/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the position. Example: 9

delete

requires authentication

delete Position

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/position/11" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/position/11"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/position/11',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record Deleted Successfully!):


{"error":"false",code:"200","message": "Record Deleted Successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/position/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the position. Example: 11

Report Type

List

requires authentication

List of the report type.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/report-type?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/report-type"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/report-type',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/report-type

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a newly created report type

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/report-type" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"company_id\": \"quia\",
    \"name\": \"ABC\",
    \"descriptions\": \"ABC\",
    \"status\": \"Active\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/report-type"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "company_id": "quia",
    "name": "ABC",
    "descriptions": "ABC",
    "status": "Active"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/report-type',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'company_id' => 'quia',
            'name' => 'ABC',
            'descriptions' => 'ABC',
            'status' => 'Active',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/report-type

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

id   string  optional  
company_id   string   

Example: quia

name   string   

Name of the report type. Example: ABC

descriptions   string   

descriptions of the report type. Example: ABC

status   string   

Active Or InActive. Example: Active

Edit

requires authentication

get report type detail by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/report-type/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/report-type/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/report-type/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/report-type/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the report type. Example: 1

delete

requires authentication

delete report type

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/report-type/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/report-type/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/report-type/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record Deleted Successfully!):


{"error":"false",code:"200","message": "Record Deleted Successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/report-type/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the report type. Example: 1

Roles

List

requires authentication

List of the Roles.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/role?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/role"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/role',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/role

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a newly created Role

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/role" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"id\": \"1\",
    \"name\": \"Test Role\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/role"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "id": "1",
    "name": "Test Role"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/role',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => '1',
            'name' => 'Test Role',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/role

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the Role. Example: 1

name   string   

Name of the Role. Example: Test Role

Edit

requires authentication

get Role detail by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/role/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/role/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/role/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/role/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the role. Example: 1

delete

requires authentication

delete Role

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/role/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/role/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/role/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record Deleted Successfully!):


{"error":"false",code:"200","message": "Record Deleted Successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/role/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the role. Example: 1

Team

List

requires authentication

List of the Team.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/teams?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/teams"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/teams',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/teams

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a newly created Team

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/teams" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"id\": \"1\",
    \"name\": \"TeamA\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/teams"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "id": "1",
    "name": "TeamA"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/teams',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => '1',
            'name' => 'TeamA',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/teams

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the team. Example: 1

name   string   

Name of the team. Example: TeamA

Edit

requires authentication

get Team detail by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/teams/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/teams/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/teams/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/teams/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the team. Example: 1

delete

requires authentication

delete Team

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/teams/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/teams/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/teams/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record Deleted Successfully!):


{"error":"false",code:"200","message": "Record Deleted Successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/teams/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the team. Example: 1

Team Member

Save

requires authentication

Store a new team member

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/user/adduser" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"id\": \"1\",
    \"first_name\": \"john\",
    \"last_name\": \"test\",
    \"phone_number\": \"1234567890\",
    \"dob\": \"2001-10-21\",
    \"email\": \"m1@moweb.com\",
    \"marital_status\": \"Married\",
    \"alternate_phone_number\": \"5234567890\",
    \"total_experience\": \"5 years\",
    \"personal_email\": \"test@gmail.com\",
    \"gender\": \"Male\",
    \"role_id\": \"1\",
    \"job_role_type_id\": \"1\",
    \"department_id\": \"2\",
    \"work_location_id\": \"2\",
    \"education_id\": \"2\",
    \"profile\": \"\",
    \"tech_stack_ids\": \"array[\'1\',\'2\',\'3\']\",
    \"user_libraries\": \"\",
    \"show_interest\": \"Cricket\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/user/adduser"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "id": "1",
    "first_name": "john",
    "last_name": "test",
    "phone_number": "1234567890",
    "dob": "2001-10-21",
    "email": "m1@moweb.com",
    "marital_status": "Married",
    "alternate_phone_number": "5234567890",
    "total_experience": "5 years",
    "personal_email": "test@gmail.com",
    "gender": "Male",
    "role_id": "1",
    "job_role_type_id": "1",
    "department_id": "2",
    "work_location_id": "2",
    "education_id": "2",
    "profile": "",
    "tech_stack_ids": "array['1','2','3']",
    "user_libraries": "",
    "show_interest": "Cricket"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/user/adduser',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => '1',
            'first_name' => 'john',
            'last_name' => 'test',
            'phone_number' => '1234567890',
            'dob' => '2001-10-21',
            'email' => 'm1@moweb.com',
            'marital_status' => 'Married',
            'alternate_phone_number' => '5234567890',
            'total_experience' => '5 years',
            'personal_email' => 'test@gmail.com',
            'gender' => 'Male',
            'role_id' => '1',
            'job_role_type_id' => '1',
            'department_id' => '2',
            'work_location_id' => '2',
            'education_id' => '2',
            'profile' => '',
            'tech_stack_ids' => 'array[\'1\',\'2\',\'3\']',
            'user_libraries' => '',
            'show_interest' => 'Cricket',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/user/adduser

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

id of the User. Example: 1

first_name   string   

First Name of the User. Example: john

last_name   string   

Last Name of the User. Example: test

phone_number   string   

Phone Number of the User. Example: 1234567890

dob   string   

Date Of Birth of the User. Example: 2001-10-21

email   string  optional  

Company EmailId of the User. Example: m1@moweb.com

marital_status   string  optional  

Marital status of the User. Example: Married

alternate_phone_number   string  optional  

Alternate Phone Number of the User. Example: 5234567890

total_experience   string  optional  

Total Experiance Of The User. Example: 5 years

personal_email   string  optional  

Personal EmailId of the User. Example: test@gmail.com

gender   string   

Enter Gender of the User Either Male or Female. Example: Male

role_id   string   

Roll id of the User. Example: 1

job_role_type_id   string   

Job Role Type. Example: 1

department_id   string   

Department id of the User. Example: 2

work_location_id   string   

Work Location id Of The User. Example: 2

education_id   string   

Education id Of The User. Example: 2

profile   string  optional  

The profile picture of the team member.

tech_stack_ids   string   

The tech stack of the team member. Example: array['1','2','3']

user_libraries   string  optional  

The library of the team member.

show_interest   string  optional  

Show Intereset Of The User. Example: Cricket

List

requires authentication

List of the team member.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/user/list?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/user/list"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/user/list',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/user/list

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Update

requires authentication

update team member

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/user/update" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"id\": \"1\",
    \"first_name\": \"john\",
    \"last_name\": \"test\",
    \"phone_number\": \"1234567890\",
    \"dob\": \"2001-10-21\",
    \"email\": \"m1@moweb.com\",
    \"marital_status\": \"Married\",
    \"alternate_phone_number\": \"5234567890\",
    \"total_experience\": \"5 years\",
    \"personal_email\": \"test@gmail.com\",
    \"gender\": \"Male\",
    \"role_id\": \"1\",
    \"job_role_type_id\": \"1\",
    \"department_id\": \"2\",
    \"work_location_id\": \"2\",
    \"education_id\": \"2\",
    \"profile\": \"\",
    \"tech_stack_ids\": \"array[\'1\',\'2\',\'3\']\",
    \"user_libraries\": \"\",
    \"show_interest\": \"Cricket\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/user/update"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "id": "1",
    "first_name": "john",
    "last_name": "test",
    "phone_number": "1234567890",
    "dob": "2001-10-21",
    "email": "m1@moweb.com",
    "marital_status": "Married",
    "alternate_phone_number": "5234567890",
    "total_experience": "5 years",
    "personal_email": "test@gmail.com",
    "gender": "Male",
    "role_id": "1",
    "job_role_type_id": "1",
    "department_id": "2",
    "work_location_id": "2",
    "education_id": "2",
    "profile": "",
    "tech_stack_ids": "array['1','2','3']",
    "user_libraries": "",
    "show_interest": "Cricket"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/user/update',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => '1',
            'first_name' => 'john',
            'last_name' => 'test',
            'phone_number' => '1234567890',
            'dob' => '2001-10-21',
            'email' => 'm1@moweb.com',
            'marital_status' => 'Married',
            'alternate_phone_number' => '5234567890',
            'total_experience' => '5 years',
            'personal_email' => 'test@gmail.com',
            'gender' => 'Male',
            'role_id' => '1',
            'job_role_type_id' => '1',
            'department_id' => '2',
            'work_location_id' => '2',
            'education_id' => '2',
            'profile' => '',
            'tech_stack_ids' => 'array[\'1\',\'2\',\'3\']',
            'user_libraries' => '',
            'show_interest' => 'Cricket',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been updated successfully!):


{"error":"false",code:"200","message": "Record has been updated successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/user/update

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

id of the User. Example: 1

first_name   string   

First Name of the User. Example: john

last_name   string   

Last Name of the User. Example: test

phone_number   string   

Phone Number of the User. Example: 1234567890

dob   string   

Date Of Birth of the User. Example: 2001-10-21

email   string  optional  

Company EmailId of the User. Example: m1@moweb.com

marital_status   string  optional  

Marital status of the User. Example: Married

alternate_phone_number   string  optional  

Alternate Phone Number of the User. Example: 5234567890

total_experience   string  optional  

Total Experiance Of The User. Example: 5 years

personal_email   string  optional  

Personal EmailId of the User. Example: test@gmail.com

gender   string   

Enter Gender of the User Either Male or Female. Example: Male

role_id   string   

Roll id of the User. Example: 1

job_role_type_id   string   

Job Role Type. Example: 1

department_id   string   

Department id of the User. Example: 2

work_location_id   string   

Work Location id Of The User. Example: 2

education_id   string   

Education id Of The User. Example: 2

profile   string  optional  

The profile picture of the team member.

tech_stack_ids   string   

The tech stack of the team member. Example: array['1','2','3']

user_libraries   string  optional  

The library of the team member.

show_interest   string  optional  

Show Intereset Of The User. Example: Cricket

delete

requires authentication

delete team member

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/user/delete/incidunt" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/user/delete/incidunt"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/user/delete/incidunt',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record Deleted Successfully!):


{"error":"false",code:"200","message": "Record Deleted Successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/user/delete/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the delete. Example: incidunt

Edit

requires authentication

get team member detail by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/user/view/id" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/user/view/id"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/user/view/id',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/user/view/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   string   

The ID of the view. Example: id

Get Profile Detail

requires authentication

Get details of the Authenticated team member

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/user/profile" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/user/profile"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/user/profile',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "success": false,
    "code": "401",
    "message": "Access Token is not valid, Please login again",
    "access_token": "",
    "data": []
}
 

Request      

GET api/v1/user/profile

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Manage Personal Profile

requires authentication

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/user/update-profile" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "Content-Type: application/json" \
    --data "{
    \"first_name\": \"John\",
    \"last_name\": \"doe\",
    \"email\": \"doe\",
    \"phone_number\": \"8743458435\",
    \"dob\": \"2001-10-21\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/user/update-profile"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "Content-Type": "application/json",
};

let body = {
    "first_name": "John",
    "last_name": "doe",
    "email": "doe",
    "phone_number": "8743458435",
    "dob": "2001-10-21"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/user/update-profile',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'first_name' => 'John',
            'last_name' => 'doe',
            'email' => 'doe',
            'phone_number' => '8743458435',
            'dob' => '2001-10-21',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Request      

POST api/v1/user/update-profile

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Content-Type      

Example: application/json

Body Parameters

first_name   string   

First Name of the user. Example: John

last_name   string   

Last Name of the user. Example: doe

email   string   

email of the user. Example: doe

phone_number   string   

Phone number of the user. Example: 8743458435

profile   string  optional  

The profile picture of the user.

dob   string   

Date Of Birth of the User. Example: 2001-10-21

Work Location

List

requires authentication

list of the Work Location.

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/work-location?page=1&order=desc&order_by=id&search=%22%22" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/work-location"
);

const params = {
    "page": "1",
    "order": "desc",
    "order_by": "id",
    "search": """",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/work-location',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
        'query' => [
            'page' => '1',
            'order' => 'desc',
            'order_by' => 'id',
            'search' => '""',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Records has been fetch successfully!):


{"error":"false",code:"200","message": "Records has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"422" "message": "Record does not Exist"}
 

Request      

GET api/v1/work-location

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

Query Parameters

page   integer   

The page number of the list. Example: 1

order   string   

The order of the list. Example: desc

order_by   string   

The order by of the list. Example: id

search   string  optional  

The search by of the list. Search only available for name Example: ""

Save

requires authentication

Store a newly created work location

Example request:
curl --request POST \
    "https://mis-backend.yecor.com/api/v1/work-location" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json" \
    --header "intudid: 12345" \
    --header "device-type: iphone" \
    --header "device-token: 123456" \
    --header "lang: english" \
    --header "rom: 123" \
    --header "ram: 123" \
    --header "brand: 123" \
    --header "model: 11231" \
    --header "app-version: 1" \
    --header "Content-Type: application/json" \
    --data "{
    \"id\": \"1\",
    \"name\": \"Work Location 1\"
}"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/work-location"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
    "intudid": "12345",
    "device-type": "iphone",
    "device-token": "123456",
    "lang": "english",
    "rom": "123",
    "ram": "123",
    "brand": "123",
    "model": "11231",
    "app-version": "1",
    "Content-Type": "application/json",
};

let body = {
    "id": "1",
    "name": "Work Location 1"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://mis-backend.yecor.com/api/v1/work-location',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
            'intudid' => '12345',
            'device-type' => 'iphone',
            'device-token' => '123456',
            'lang' => 'english',
            'rom' => '123',
            'ram' => '123',
            'brand' => '123',
            'model' => '11231',
            'app-version' => '1',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'id' => '1',
            'name' => 'Work Location 1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record has been created successfully!):


{"error":"false",code:"200","message": "Record has been created successfully!"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

POST api/v1/work-location

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

intudid      

Example: 12345

device-type      

Example: iphone

device-token      

Example: 123456

lang      

Example: english

rom      

Example: 123

ram      

Example: 123

brand      

Example: 123

model      

Example: 11231

app-version      

Example: 1

Content-Type      

Example: application/json

Body Parameters

id   string  optional  

Id of the Work Location. Example: 1

name   string   

Name of the Work Location. Example: Work Location 1

Edit

requires authentication

get Work Location detail by id

Example request:
curl --request GET \
    --get "https://mis-backend.yecor.com/api/v1/work-location/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/work-location/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://mis-backend.yecor.com/api/v1/work-location/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Details has been fetch successfully!):


{"error":"false",code:"200","message": "Details has been fetch successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

GET api/v1/work-location/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the work location. Example: 1

delete

requires authentication

delete work location

Example request:
curl --request DELETE \
    "https://mis-backend.yecor.com/api/v1/work-location/1" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}" \
    --header "Accept: application/json"
const url = new URL(
    "https://mis-backend.yecor.com/api/v1/work-location/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
    'https://mis-backend.yecor.com/api/v1/work-location/1',
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_AUTH_KEY}',
            'Accept' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));

Example response (200, Record Deleted Successfully!):


{"error":"false",code:"200","message": "Record Deleted Successfully!"}
 

Example response (404, Record does not Exist):


{"error":"true", code:"404" "message": "Record does not Exist"}
 

Example response (422, Unprocessable Entity):


{"error":"true", code:"422" "message": "Unprocessable Entity"}
 

Request      

DELETE api/v1/work-location/{id}

Headers

Authorization      

Example: Bearer {YOUR_AUTH_KEY}

Accept      

Example: application/json

URL Parameters

id   integer   

The ID of the work location. Example: 1