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.xyz

Authentication

This API uses JWT Bearer Token authentication. Login first to retrieve access token before accessing protected endpoints.

POST/api/auth/login

Login

Authenticate user and retrieve JWT access token.

Request Body

{
  "username": "username",
  "password": "password"
}

Response

{
  "success": true,
  "token": "JWT_TOKEN"
}

Authorization Header

Authorization: Bearer YOUR_TOKEN

Papers API

GET/api/papers

Get 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/papers

Create 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/:id

Update Paper

Update paper data by ID.

Request Body

{
  "title": "Updated Research Title"
}

Response

{
  "success": true,
  "message": "Paper updated successfully"
}
DELETE/api/papers/:id

Delete 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"
}