You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Swagger
I'm having trouble getting Swagger to send my request body as a raw JSON document using the "Try This Operation" feature. It keeps converting the JSON to a query string and sending the request as a GET, which my server rejects. I'm running locally, with the server on port 8080 and the editor on port 8081.
Here is my yaml:
paths:
/signup:
post:
description:
signup a user
parameters:
- in: body
name: json
description: The user signup details
required: true
schema:
$ref: '#/definitions/UserSignup'
responses:
200:
description: newly created user
schema:
properties:
status:
description: "status of the response"
type: string
enum: ['OK','Error']
result:
$ref: '#/definitions/UserBasic'
The UI is parsing it correctly, in that the UI displays the correct fields, and in the request preview it looks correct:
I get the same error in Firefox. I assume there is something wrong with my definition, but I can't figure out what it is. I have tried setting the 'name' field in the parameters to 'body', but that doesn't help. I'm on Linux (Ubuntu 14.04), and using a version of the editor cloned from Github on August 1st.
Ron Ratovsky
unread,
Aug 3, 2015, 9:28:56 AM8/3/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Swagger
Can you open an issue directly on the swagger-editor repo?