rob-revisited/ide/tests/fixtures/api-platform-expected/requests/Livre/create.http

19 lines
468 B
HTTP

# @generated api-platform (rewritten while this file is not edited)
# @name Create a livre
# @seq 3
POST {{baseUrl}}/api/livres
Accept: application/ld+json
Content-Type: application/ld+json
{
"title": "example title",
"pages": 1,
"publishedAt": "2026-01-01T12:00:00+00:00",
"genre": "fantasy",
"author": "/api/authors/1"
}
> {%
client.test("Status 201", () => client.assert(response.status === 201));
client.global.set("livreId", response.body.id);
%}