Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 715 Bytes

File metadata and controls

46 lines (35 loc) · 715 Bytes

Request & Response Structure

Request

  • Content-Type: application/json
  • Authentication: JWT in Authorization header for protected endpoints

Example Request

POST /api/v1/resource
Authorization: Bearer <token>
Content-Type: application/json

{
  "name": "Example",
  "description": "Sample resource"
}

Response

  • Content-Type: application/json
  • Standard fields for error responses

Example Success Response

{
  "id": 1,
  "name": "Example",
  "description": "Sample resource"
}

Example Error Response

{
  "timestamp": "2024-06-01T12:34:56",
  "status": 400,
  "error": "Bad Request",
  "message": "Invalid input",
  "path": "/api/v1/resource"
}