18 lines
396 B
HTTP
18 lines
396 B
HTTP
# @generated api-platform (rewritten while this file is not edited)
|
|
# @name Create an author
|
|
# @seq 3
|
|
POST {{baseUrl}}/api/authors
|
|
Accept: application/ld+json
|
|
Content-Type: application/ld+json
|
|
|
|
{
|
|
"name": "example name",
|
|
"books": [
|
|
"/api/livres/1"
|
|
]
|
|
}
|
|
|
|
> {%
|
|
client.test("Status 201", () => client.assert(response.status === 201));
|
|
client.global.set("authorId", response.body.id);
|
|
%}
|