I am facing problem in put command:
CASE 1: When I used Content type "text/plain" Body data is sending empty
CASE 2 :when i select Content type nothing or empty its working fine.
My Exception: I want to send data by using content-type "text/plain"
Following is my code:
put:
tags:
- sources
summary: Update script content.
description: This will update the content of a script.
operationId: UpdateScriptContent
consumes:
- text/plain
parameters:
- name: sourceId
in: path
description: Pass sourceId for update the script.
required: true
type: "string"
- name: groupId
in: path
description: Pass groupId for update the script.
required: true
type: "string"
- name: scriptId
in: path
description: Pass scriptId for update the script.
required: true
type: "string"
- in: "body"
name: "name"
description: Pass script content to be updated in template
directory.
required: true
schema:
$ref: "#/definitions/ScriptContent"
responses:
200:
description: "Ok : Successful requests"
definitions:
ScriptContent:
type: string
properties:
name:
type: string
description: task object name
Please helP me to resolve this issue ASAP.
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.