How to Set Request and Response Example for Custom Format (XML) #1610
tegarportier
started this conversation in
General
Replies: 1 comment
-
|
probably something like this: class SoapNinjaAPI(NinjaAPI):
def get_openapi_schema(self):
schema = super().get_openapi_schema()
# and then patch examples to convert them to SOAP xml |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I plan to rewrite my legacy app (using XML with SOAP), it works and I can use request parser but not sure how do I add the request body example in swagger (or at least let me write it myself).
For example here is my expected request (from postman docs)
And here is my schema
And here is what I get in swagger
My goal is to change the header application/xml and also add the payload with custom envelop (or simply I will add the example manually if not possible).
Beta Was this translation helpful? Give feedback.
All reactions