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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Set-password link generator
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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": []
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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));
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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"}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.