Files
api/services/nginx/app/tests/HTTP/self-serve-allowed-services.http
T
Jeppe Bundgaard 76496fc403 Add Nginx test configurations, HTTP scripts for self-serve APIs, and .env example; update .gitignore for IntelliJ files and logs.
- Introduced `PemToCoseConversionTest` for WebAuthn key testing.
- Added example Nginx config (`nginx-example.conf`) with CORS and PHP handling.
- Created HTTP test scripts for self-serve API endpoints.
- Provided `.env` example for Elastic Stack credentials.
- Updated `.gitignore` to include IntelliJ and Nginx logs.
2026-02-24 11:44:09 +01:00

20 lines
604 B
HTTP

### Set allowed services for a lane using shown task IDs
POST http://localhost/modules/self-serve/lane/services/allowed
Content-Type: application/json
Authorization: Bearer {{admin_token}}
{
"lane_id": 1,
"task_ids": [
{{machine_task_id}}
]
}
> {%
client.test("Setting allowed services should return 200 and include MACHINE if provided task has MACHINE service", function() {
client.assert(response.status === 200, "Expected 200 OK, got " + response.status);
const body = response.body;
client.assert(Array.isArray(body.allowed_services), "allowed_services should be an array");
});
%}