토큰은 Set-Cookie: access_token=aaa.bbb.ccc
또는 Authorization: Bearer aaa.bbb.ccc
헤더로 전송
- 핑퐁
- 모든 사물함 현황 조회
- 사물함 현황 조회
- 사물함 대여
- 사물함 반납
- 모든 복지물품 현황 조회
- 복지물품 현황 조회
- 복지물품 대여
- 복지물품 반납
- 과자치비 납부
- 과자치비 현황 조회
- 과자치비 환불
Output:
{
message: 'pong',
}
(Manager Auth Required) 모든 사물함 현황 조회
Output:
{
message: 'success',
lockers: [
{
id: 0, // locker id
location: '하이테크센터 1층',
userId: 00000000, // nullable
note: '', // nullable
rentedAt: '2020-01-01 00:00:00', // nullable
returnedAt: '2020-01-01 00:00:00', // nullable
},
],
}
(Manager Auth Required) 사물함 현황 조회
Output:
{
message: 'success',
locker: {
location: '하이테크센터 1층',
userId: 00000000, // nullable
note: '', // nullable
rentedAt: '2020-01-01 00:00:00', // nullable
returnedAt: '2020-01-01 00:00:00', // nullable
},
}
(Manager Auth Required) 사물함 현황 수정
Input:
{
location: '하이테크센터 1층',
userId: 00000000, // nullable
note: '', // nullable
rentedAt: '2020-01-01 00:00:00', // nullable
returnedAt: '2020-01-01 00:00:00', // nullable
}
Output:
{
message: 'success',
}
(Manager Auth Required) 사물함 대여
Input:
{
userId: 00000000,
note: '', // nullable
rentedAt: '2020-01-01 00:00:00', // nullable
}
Output:
{
message: 'success',
}
(Manager Auth Required) 사물함 반납
Input:
{
note: '', // nullable
returnedAt: '2020-01-01 00:00:00', // nullable
}
Output:
{
message: 'success',
}
(Manager Auth Required) 모든 복지물품 현황 조회
Output:
{
message: 'success',
resources: {
id: 0, // resource id
name: '보조배터리 C타입 1',
userId: 00000000, // nullable
note: '', // nullable
rentedAt: '2020-01-01 00:00:00', // nullable
returnedAt: '2020-01-01 00:00:00', // nullable
},
}
(Manager Auth Required) 복지물품 현황 조회
Output:
{
message: 'success',
resource: {
id: 0,
name: '보조배터리 C타입 1',
userId: 00000000, // nullable
note: '', // nullable
rentedAt: '2020-01-01 00:00:00', // nullable
returnedAt: '2020-01-01 00:00:00', // nullable
},
}
(Manager Auth Required) 복지물품 현황 수정
Input:
{
name: '보조배터리 C타입 1',
userId: 00000000, // nullable
note: '', // nullable
rentedAt: '2020-01-01 00:00:00', // nullable
returnedAt: '2020-01-01 00:00:00', // nullable
}
Output:
{
message: 'success',
}
(Manager Auth Required) 복지물품 대여
Input:
{
userId: 00000000,
note: '', // nullable
rentedAt: '2020-01-01 00:00:00', // nullable
}
Output:
{
message: 'success',
}
(Manager Auth Required) 복지물품 반납
Input:
{
note: '', // nullable
returnedAt: '2020-01-01 00:00:00', // nullable
}
Output:
{
message: 'success',
}
(Manager Auth Required) 과자치비 납부
Input:
{
paid: 80000,
note: '', // nullable
paidAt: '2020-01-01 00:00:00', // nullable
}
Output:
{
message: 'success',
}
(Manager Auth Required) 과자치비 현황 조회
Output:
{
message: 'success',
user: {
paid: 80000,
refunded: 0,
note: '', // nullable
paidAt: '2020-01-01 00:00:00', // nullable
refundedAt: '2020-01-01 00:00:00', // nullable
},
}
(Manager Auth Required) 과자치비 환불
사물함, 복지물품 대여여부 확인필요
Input:
{
refunded: 80000, // nullable
note: '', // nullable
refundedAt: '2020-01-01 00:00:00', // nullable
}
Output:
{
message: 'success',
}