API ReferenceExample Request

Example Requests

Requests

inspenctra.js
// POST /api/v1/spring HTTP/1.1
 
{
  "gitUrl": "https://github.com/user/repo",
  "branch": "main",
  "projectName": "SpringApp"
}

Response

inspenctra.js
{
  "status": "success",
  "scanId": "abc123",
  "message": "Scan initiated successfully.",
  "details": {
    "framework": "Spring Boot",
    "gitUrl": "https://github.com/user/repo",
    "branch": "main",
    "projectName": "SpringApp"
  }
}

Error Responses

  • 400 Bad Request: Invalid or missing parameters.
  • 401 Unauthorized: Missing or invalid API token.
  • 404 Not Found: Endpoint not found.
  • 500 Internal Server Error: Unexpected server error.