You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
I have this OA file (top parts removed). I want Payments to do many things. for example /payments/invoice for paying invoices or payments/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 creates PaymentsController/actionCreateinvoice .
Is there a way of setting my own naming and disable treating everything as CRUD?
tags:
- name: Payments
description: Pay or receive payments for your products from different channels
externalDocs:
description: Find out more
url: http://developer.adiuta.com/book/payments
paths:
/payments/invoice/{invoice}:
post:
summary: Pay Invoice
description: Pay for Invoice with given invoice number
requestBody:
description: Record new payment for an invoice
content:
application/json:
schema:
$ref: '#/components/schemas/Payments'
required: true
responses:
'200':
description: Successfully paid the invoice
content:
application/json:
schema:
$ref: '#/components/schemas/Success'
components:
schemas:
Payments:
required:
- reference
- amount
- currency
properties:
invoice_number:
type: string
amount:
type: integer
format: int64
currency:
type: string
Success:
required:
- success
- message
properties:
success:
type: boolean
message:
type: string
Error:
required:
- code
- message
properties:
code:
type: integer
format: int32
message:
type: string
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: