Request :
- Method : POST
- Endpoint :
api/mahasiswa
- Header :
- Content-Type : application/json
- Accept : application/json
- Body :
{
"nim": "string, unique, (9)",
"nama": "string",
"fakultas": "string",
"prodi": "string"
}
Response :
{
"code": "number",
"status": "string",
"data": {
"nim": "string, unique, (9)",
"nama": "string",
"fakultas": "string",
"prodi": "string"
}
}
Request :
- Method : GET
- Endpoint :
api/mahasiswa/{nim_mahasiswa}
- Header :
- Accept : appliaction/json
Response :
{
"code": "number",
"status": "string",
"data": {
"nim": "string, unique, (9)",
"nama": "string",
"fakultas": "string",
"prodi": "string"
}
}
Request :
- Method : PUT/PATCH
- Endpoint :
api/mahasiswa/{nim_mahasiswa}
- Header :
- Content-Type : application/json
- Accept : application/json
- Body :
{
"nama": "string",
"fakultas": "string",
"prodi": "string"
}
Response :
{
"code": "number",
"status": "string",
"data": {
"nim": "string, unique, (9)",
"nama": "string",
"fakultas": "string",
"prodi": "string"
}
}
Request :
- Method : DELETE
- Endpoint :
api/mahasiswa/{nim_mahasiswa}
- Header :
- Accept : application/json
Response :
{
"code": "number",
"status": "string"
}