- Method: POST
- Endpoint:
api/discussion
- Header:
- Content-type:
application/json
- Accept:
application/json
- Request:
{
"creator_username": "String",
"title": "String",
"question": "String"
}
{
"status": "Int",
"message": "String",
"data": {
"id_discussion": "String",
"creator_username": "String",
"created_at": "Date",
"title": "String",
"question": "String"
}
}
- Method: GET
- Endpoint:
api/discussion
- Header:
- Response Success:
{
"status": "Int",
"message": "String",
"data": {
"total": "Int",
"page": "Int",
"discussions": [
{
"id_discussion": "String",
"creator_username": "String",
"created_at": "Date",
"title": "String",
"question": "String",
"reply": "Int"
},
{
"id_discussion": "String",
"creator_username": "String",
"created_at": "Date",
"title": "String",
"question": "String",
"reply": "Int"
}
]
}
}
{
"status": "Int",
"message": "String"
}
- Method: POST
- Endpoint:
api/comment
- Header:
- Content-type:
application/json
- Accept:
application/json
- Request:
{
"id_parent": "String",
"creator_username": "String",
"comment": "String"
}
{
"status": "Int",
"message": "String",
"data": {
"id_parent": "String",
"id_comment": "String",
"creator_username": "String",
"created_at": "Date",
"title": "String",
"comment": "String"
}
}