Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to document JSON inputs #1

Open
wgosse opened this issue Jun 3, 2015 · 2 comments
Open

Need to document JSON inputs #1

wgosse opened this issue Jun 3, 2015 · 2 comments

Comments

@wgosse
Copy link

wgosse commented Jun 3, 2015

docman doesn't seem to document json inputs being posted like:
{
"apiKey": "oz91xbptCZsC9tlGpTeMcggNqbDll4Y",
"requestId": "testgenkey002",
"userId": 10664,
"emailAddress": "[email protected]"
}
image

@davidevernizzi
Copy link
Owner

Could you post the whole request? In my examples it documents JSON inputs, but only if they are passed as raw data:

        {
            "collectionId": "79544af9-6e5f-7b72-5559-2434ddd30c9f",
            "id": "9a2ac490-0049-4b72-9710-5da16abda4f8",
            "name": "POST bar",
            "description": "",
            "url": "http://192.168.56.101/yii_restful_api/index.php/bar/",
            "method": "POST",
            "headers": "Authorization: hmac johndoe:386c5ff8231507f8087463a4dbdf7a9831c6e440\nTimestamp: 1429562482\n",
            "data": [],
            "dataMode": "raw",
            "timestamp": 0,
            "responses": [],
            "version": 2,
            "owner": 0,
            "preRequestScript": "",
            "tests": "",
            "synced": false,
            "rawModeData": "{\"name\":\"aw, also raw data here\"}"
        }

Does your data is in the rawModeData field?

@harshreddy
Copy link

Any update for documenting "urlencoded" dataMode ?

rowasc added a commit that referenced this issue Jun 28, 2016
 Added panels. Handling postman's folders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants