Get All Platforms
Retrieve a list of all available platforms in the system.
Endpoint
GET /platform/list
Authentication
Header | Value |
---|---|
Authorization | Bearer <jwt_token> |
Example Request
curl -X GET http://localhost:9000/platform/list \
-H "Authorization: Bearer <jwt_token>"
Response
Success Response (200 OK)
{
"platforms": [
{
"ID": "653a52481ff613bed613df58",
"PlatformName": "darwin",
"Updated_at": "2023-10-26T14:49:28.894+03:00"
},
{
"ID": "653a52401ff613bed613df57",
"PlatformName": "linux",
"Updated_at": "2023-10-26T14:49:20.976+03:00"
}
]
}
Response Fields
Field | Type | Description |
---|---|---|
platforms | array | Array of platform objects |
Platform Object Fields
Field | Type | Description |
---|---|---|
ID | string | Unique identifier of the platform |
PlatformName | string | Name of the platform (e.g., linux, darwin) |
Updated_at | string | Last update timestamp |
Notes
- This endpoint returns all platforms available for application deployment
- The
PlatformName
field contains the platform identifier used in uploads and searches - Results are typically sorted by creation date (newest first)
- Empty results array is returned if no platforms are configured