File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -347,6 +347,12 @@ paths:
347
347
It won't generate `actionCreateInvoice` in `PaymentsController.php` file, but will generate `actionInvoice` instead in
348
348
same file.
349
349
350
+ Generated URL rules config for above is (in `urls.rest.php` or pertinent file) :
351
+ ` ` ` php
352
+ 'POST payments/invoice/<invoice:\d +>' => 'payments/invoice',
353
+ 'payments/invoice/<invoice:\d +>' => 'payments/options',
354
+ ` ` `
355
+
350
356
Also, if same action is needed for HTTP GET and POST then use same value for `x-route`. Example :
351
357
352
358
` ` ` yaml
@@ -370,6 +376,13 @@ paths:
370
376
description: The Response
371
377
` ` `
372
378
379
+ Generated URL rules config for above is (in `urls.rest.php` or pertinent file) :
380
+ ` ` ` php
381
+ 'GET a1/b1' => 'abc/xyz',
382
+ 'POST a1/b1' => 'abc/xyz',
383
+ 'a1/b1' => 'abc/options',
384
+ ` ` `
385
+
373
386
# # Many-to-Many relation definition
374
387
375
388
There are two ways for define many-to-many relations :
You can’t perform that action at this time.
0 commit comments