GET http://<IP>/api/
POST {{base_url}}/api/users/register
Content-Type: application/json
{
"username" : "string",
"email" : "string",
"domicile" : "string",
"birthDate" : "date",
"password" : "string",
"confirmPass" : "string"
}{
message: "Successfully added data!",
status: 201,
data: {
"id" : "int",
"username" : "string",
"email" : "string",
"domicile" : "string",
"birthDate" : "date",
"password" : "string",
"confirmPass" : "string"
}
}{
error: "Internal Server Error"
}GET http://<IP>/api/result/:userId/test/:testId
- Authorization: Token
{
"status": 200,
"data" : [
{
"id" : "Integer",
"soal" : "String",
"jawaban" : "String",
"createdAt" : "date",
"updatedAt" : "date"
}
],
"recommendation" : "String"
}{
"status" : 404,
"message" : "Data tidak ditemukan!"
} DELETE http://<IP>/api/result/:userId/test/:testId
- Authorization: Token
{
"status" : 200,
"message" : "Data berhasil dihapus!"
}{
"status" : 500,
"message" : "Terjadi kesalahan server!"
}GET http://<IP>/api/user/:userId/lists
- Authorization: Token
{
"status" : 200,
"data" : [
{
"id" : "Integer",
"title" : "String",
"body" : "String",
"image": "String"
}
]
}{
"status" : 404,
"message" : "Data tidak ditemukan!"
}- Authorization: Token
POST http://<IP>/api/user/:userId/lists
Content-Type: application/json
{
"id" : "Integer",
"title" : "String",
"body" : "String",
"image": "String"
}{
"status" : 200,
"message" : "Data berhasil ditambahkan!"
}{
"status" : 500,
"message" : "Terjadi kesalahan server!"
}