- name:
db_course
http://localhost:9000/api
{
"status": boolean,
"messages": [
string,
string,
.....
],
"payload": [
{
.....
},
{
.....
}
]
}
- URL:
/register
- Method:
POST
- Request Body:
{ "name": string, "username": string, "email": string, "password": string }
- Response
{ "status": true, "messages": ["Akun berhasil didaftarkan"], "payload": [ { "id": 1, "username": "kana", "password": "$2a$10$XzDN3cVVL.RPYUS2TbrI9.1CAmIGnmKA6zLESEhZb81it8zLGzjdm", "is_enabled": true, "is_account_non_locked": true, "created_at": "2023-06-20T06:42:31.544+00:00", "roles": [ { "id": 1, "name": "user", "privileges": [ { "id": 1, "name": "create" }, { "id": 2, "name": "read" }, { "id": 3, "name": "update" }, { "id": 4, "name": "delete" } ] } ] } ] }
-
URL:
/login
-
Method:
POST
-
Request Body:
{ "username": string, "password": string }
-
Response
{ "status": true, "messages": [ "berhasil login" ], "payload": [ { "username": "kana", "email": "kana@gmail.com", "authorities": [ "ROLE_USER", .... .... ] } ] }
-
Method:
POST
-
URL:
/trasaction
-
Request Body:
{ "courseId": integer }
- Method:
GET
- URL:
/transaction/member-transactions
- Method:
GET
- URL
/history/member
- Method:
GET
- URL:
/transaction/course-registered
-
Method Available:
GET, POST, PUT, DELETE
-
URL
GET, POST
:/course
-
URL
GET, PUT, DELETE
:/course/{id}
-
Request Body
POST
:{ "thumbnail" : "this url img x", "title": "fullstack java", "instructor": "rizki", "description": "belajar fullstack springboot java dev", "price": "free", "periode": "3 bulan", "start" : "typedata date" "end": "typedata date" "category": { "id": 1 } }
- Method:
GET
- URL:
/transaction
-
Method:
PUT
-
URL:
/transaction/{id}
-
Request Body
{ "statusUpdate": "success" // success, process, failed }
- Method:
GET
- URL:
/history
- Method:
GET
- URL:
/member
- Method:
GET
- URL:
/course
- Method:
GET
- URL:
/course/{id}