Open mtangoo opened 1 year ago
Addition: I see it is spitting wrong names
/payments/invoice-payment
produces actionCreateinvoicePayment
instead of actionCreateInvoicePayment
wrong capitalization
At this moment, there is no way to do that.
Loosely similar to https://github.com/cebe/yii2-openapi/issues/84
Work-around is
class PaymentController ...
{
public function actionCreateinvoice($invoice)
{
return $this->runAction('invoice', ['invoice' => $invoice]);
}
public function actionInvoice($invoice)
{
// TODO implement
}
}
I just fell back to classic API/Code crafting. hope to come back soon
I have this OA file (top parts removed). I want Payments to do many things. for example
/payments/invoice
for paying invoices orpayments/cash
for non-credit payments. These takes different objects and are obviously non crud. I cannot get the library to generate correct methods for me. For example for the file below it createsPaymentsController/actionCreateinvoice
.Is there a way of setting my own naming and disable treating everything as CRUD?