API v1ProductionJWT Auth
AdamFahsyah Research API
Research API platform designed for academic publication management, student research ecosystem, and research automation tools.
Base URL
https://api.adamfahsyah.xyzAuthentication
This API uses JWT Bearer Token authentication. Login first to retrieve access token before accessing protected endpoints.
POST
/api/auth/loginLogin
Authenticate user and retrieve JWT access token.
Request Body
{
"username": "username",
"password": "password"
}Response
{
"success": true,
"token": "JWT_TOKEN"
}Authorization Header
Authorization: Bearer YOUR_TOKENPapers API
GET
/api/papersGet All Papers
Retrieve all research papers from database.
Response
{
"success": true,
"data": [
{
"id": 1,
"title": "Machine Learning Research",
"abstract": "Research abstract",
"keyword": "AI, ML",
"publicationType": "Journal",
"multidisciplinary": true
}
]
}POST
/api/papersCreate Paper
Create a new research paper.
Request Body
{
"title": "Machine Learning Research",
"abstract": "Research abstract",
"keyword": "AI, ML",
"publicationType": "Journal",
"multidisciplinary": true
}Response
{
"success": true,
"message": "Paper created successfully"
}PUT
/api/papers/:idUpdate Paper
Update paper data by ID.
Request Body
{
"title": "Updated Research Title"
}Response
{
"success": true,
"message": "Paper updated successfully"
}DELETE
/api/papers/:idDelete Paper
Delete research paper by ID.
Response
{
"success": true,
"message": "Paper deleted successfully"
}Error Handling
Standard error response returned by API endpoints.
{
"success": false,
"message": "Unauthorized"
}