running this command to run service
docker-compose up -d db
and then running this command to check database can connection
docker logs -f db
last running this command to running app
docker-compose up -d app
Feature | Status |
---|---|
Authentication | ✔️ |
Event | ✔️ |
Payment | ✔️ |
User | ✔️ |
Dockerize | ✔️ |
Frontend | Ongoing |
Order | ✔️ |
Monitoring | Ongoing |
File Handler | ✔️ |
Webhook | ✔️ |
- Method : POST
- Endpoint :
/user/register/
- Header :
- Content-Type :
application/json
- Accept:
application/json
- Content-Type :
- Body :
{
"name": "string",
"email": "string",
"password": "string",
"address": "long",
"telephone": "string"
}
- Response :
{
"code": "number",
"message": "string",
"data": {
"name": "string",
"email": "string",
"password": "string",
"address": "long",
"telephone": "string",
"role": "string"
}
}
- Method : POST
- Endpoint :
/user/login/
- Header :
- Content-Type :
application/json
- Accept:
application/json
- Content-Type :
- Body :
{
"email": "string",
"password": "string",
}
- Response :
{
"code": "number",
"message": "string",
"data": {
"name": "string",
"email": "string",
"token": "string"
}
}
- Method : POST
- Endpoint :
/user/refresh-token/
- Header :
- Content-Type :
application/json
- Accept:
application/json
- Content-Type :
- Body :
- Header :
- Content-Type :
header
- Content-Type :
- Body :
Set-Cookie: "token"
- Response :
{
"code": "number",
"message": "string"
}
- Method : POST
- Endpoint :
/user/validate-token
- Header :
- Content-Type :
header
- Content-Type :
- Body :
{
"token": "string",
}
- Response :
{
"code": "number",
"message": "string"
}
- Method : POST
- Endpoint :
/midtrans/payment-callback/
- Header :
- Content-Type :
application/json
- Accept:
application/json
- Content-Type :
- Response :
response dari midtrans, sebagai callback untuk ke midtrans
Semua api wajib di tambahkan authentikasi dari hasil login user
- Header :
- Authorization: Token JWT
- Method : GET
- Endpoint :
/api/event/{id}
- Header :
- Accept:
application/json
- Accept:
- Response :
{
"code": "number",
"message": "string",
"data": {
"name": "string",
"desc": "string",
"price": "int",
"participant": "array"
}
}
- Method : DELETE
- Endpoint :
/user/logout/
- Header :
- Content-Type :
application/json
- Accept:
application/json
- Content-Type :
- Body :
- Header :
- Content-Type :
header
- Content-Type :
- Body :
Set-Cookie: "token"
- Response :
{
"code": "number",
"message": "string"
}
- Method : POST
- Endpoint :
/api/order/
- Header :
- Accept :
application/json
- Content-Type :
application/json
- Accept :
- Body :
{
"user_id": "int",
"event_id": "int"
}
- Response :
{
"code": "number",
"message": "string",
"data": {
"uuid": "string",
"name": "string",
"email": "string",
"address": "string",
"telephone": "string",
"event_name": "string",
"event_price": "int"
}
}
-
Method : GET
-
Endpoint :
/api/order/{uuid}
-
Header :
- Accept :
application/json
- Content-Type :
application/json
- Accept :
-
Response :
{
"code": "number",
"message": "string",
"data": {
"uuid": "string",
"name": "string",
"email": "string",
"address": "string",
"telephone": "string",
"event_name": "string",
"event_price": "int"
}
}
-
Method : GET
-
Endpoint :
/api/order/{user_id}
-
Header :
- Accept :
application/json
- Content-Type :
application/json
- Accept :
-
Response :
{
"code": "number",
"message": "string",
"data": {
"uuid": "string",
"name": "string",
"email": "string",
"address": "string",
"telephone": "string",
"event_name": "string",
"event_price": "int"
}
}
-
Method : GET
-
Endpoint :
/api/order/{user_id}/{uuid}
-
Header :
- Accept :
application/json
- Content-Type :
application/json
- Accept :
-
Response :
{
"code": "number",
"message": "string",
"data": {
"uuid": "string",
"name": "string",
"email": "string",
"address": "string",
"telephone": "string",
"event_name": "string",
"event_price": "int"
}
}
- Method : POST
- Endpoint :
/api/order/checkout/
- Header :
- Accept :
application/json
- Content-Type :
application/json
- Accept :
{
"order_id": "int",
}
- Response :
{
"code": "number",
"message": "string",
"data": {
"snap_url": "string",
"token": "string",
"name": "string",
"event": "string",
"price": "int"
}
}
- Method : POST
- Endpoint :
/api/event/{id}/submission
- Header :
- Accept :
application/json
- Content-Type :
application/json
- Accept :
{
"name": "string",
"user_id": "int",
"event_id": "int",
"file": "string"
}
- Response :
{
"code": "number",
"message": "string",
"data": {
"name": "string",
"event": "string",
"filename": "string"
}
}
- Method : GET
- Endpoint :
/api/order/{uuid}/status
- Header :
- Accept :
application/json
- Content-Type :
application/json
- Accept :
- Response :
response by midtrans
- Method : POST
- Endpoint :
/api/event/
- Header :
- Content-Type :
application/json
- Accept:
application/json
- Content-Type :
- Body :
{
"name": "string",
"desc": "string",
"price": "int"
}
- Response :
{
"code": "number",
"message": "string",
"data": {
"name": "string",
"desc": "string",
"price": "int",
"participant": "array"
}
}
- Method : PUT
- Endpoint :
/api/event/{id}
- Header :
- Content-Type :
application/json
- Accept:
application/json
- Content-Type :
- Body :
{
"name": "string",
"desc": "string",
"price": "int"
}
- Response :
{
"code": "number",
"message": "string",
"data": {
"name": "string",
"desc": "string",
"price": "int",
"participant": "array"
}
}
-
Method : GET
-
Endpoint :
/api/role/{id}
-
Header :
- Content-Type :
application/json
- Content-Type :
-
Response :
{
"code": "number",
"message": "string",
"data": {
"name": "string",
"description": "text",
"user": "array",
}
}
- Method : PUT
- Endpoint :
/api/role/{id}
- Header :
- Content-Type :
application/json
- Accept:
application/json
- Content-Type :
- Body :
{
"name": "string",
"description": "text"
}
- Response :
{
"code": "number",
"message": "string",
"data": {
"name": "string",
"description": "text",
"user": "array",
}
}