Skip to content

Commit 1c11ec6

Browse files
authored
Merge pull request #683 from ghanbari/patch-1
host & schemes are not options
2 parents a324050 + 57cf6bf commit 1c11ec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/operations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ use ApiPlatform\Core\Annotation\ApiResource;
147147
/**
148148
* ...
149149
* @ApiResource(itemOperations={
150-
* "get"={"method"="GET", "path"="/grimoire/{id}", "requirements"={"id"="\d+"}, "defaults"={"color"="brown"}, "options"={"my_option"="my_option_value", "schemes"={"https"}, "host"="{subdomain}.api-platform.com"}},
150+
* "get"={"method"="GET", "path"="/grimoire/{id}", "requirements"={"id"="\d+"}, "defaults"={"color"="brown"}, "options"={"my_option"="my_option_value"}, "schemes"={"https"}, "host"="{subdomain}.api-platform.com"},
151151
* "put"={"method"="PUT", "path"="/grimoire/{id}/update", "hydra_context"={"foo"="bar"}},
152152
* })
153153
*/

0 commit comments

Comments
 (0)