- 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.
20 lines
604 B
HTTP
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");
|
|
});
|
|
%}
|