Akce
API v0 » Historie » Revize 1
Revize 1/3
| Další »
Lukáš Černý, 2019-04-29 12:15
API v0¶
GET /users?status=[<AUTHORIZED, PENDING, REJECTED>] [{
id: number,
name {
first: string,
last: string,
},
photo: url,
calendar: [ // + a - 7 dni
{
date: dd/MM/yyyy,
from: hh:mm,
to: hh:mm,
type: <VACATION, SICKDAY>
}
],
}]
GET /user/<id>/profile {
id: number,
name {
first: string,
last: string,
},
photo: url,
settings: {
notiffication: timestamp
}
vacation: {
value: number,
unit: <DAY, HOUR>
},
sickday: {
value: number,
unit: <DAY, HOUR>
},
status: <AUTHORIZED, PENDING, REJECTED>
role: <EMPLOYEE, EMPLOYER>
}
GET /users/requests?type=<VACATION, AUTHORIZATION> {
vacation: [
{
id: long,
user: {
name: {
first: string,
last: string,
}
},
date: dd/MM/yyyy,
from: hh:mm,
to: hh:mm,
type: <VACATION, SICKDAY>
status: <ACCEPTED, PENDING, REJECTED>
}
],
authorization: [
{
id: long,
user: {
name: {
first: string,
last: string,
}
},
date: timestamp,
}
]
}
GET /user/<id>/calendar
GET /user/calendar?viewType=<MONTH,WEEK>, value=? {
[
{
date: dd/MM/yyyy,
from: hh:mm,
to: hh:mm,
type: <VACATION, SICKDAY>
status: <ACCEPTED, PENDING, REJECTED>
}
]
}
GET /settings/default {
sickday: {
value: number,
unit: <DAY, HOUR>
},
notiffication: timestamp
}
POST /settings/default {
sickday: {
value: number,
unit: <DAY, HOUR>
},
notiffication: timestamp
}
POST /user/calendar {
[
{
date: dd/MM/yyyy,
from: hh:mm,
to: hh:mm,
type: <VACATION, SICKDAY>
}
]
}
POST /user/requests?type=<VACATION, AUTHORIZATION> {
id: long
status: <ACCEPTED, REJECTED>
}
POST /user/<id>/settings {
role: <EMPLOYEE, EMPLOYER>,
vacation: {
value: number,
unit: <DAY, HOUR>
},
sickday: {
value: number,
unit: <DAY, HOUR>
}
}
Aktualizováno uživatelem Lukáš Černý před více než 5 roky(ů) · 1 revizí