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

Body data empty when POST/PUT request is defined in MSON #27

Open
david-espinosa opened this issue Mar 5, 2017 · 0 comments
Open

Body data empty when POST/PUT request is defined in MSON #27

david-espinosa opened this issue Mar 5, 2017 · 0 comments

Comments

@david-espinosa
Copy link

Hi,
When I create a postman file using apiary2postman to my blueprint file, where I used MSON to define any structure, the created postman doesn't contain any body data in the POST and PUT requests.

Is apiary2postman incompatible with MSON blueprint annotation?

This is my blueprint/MSON definition:

  • Request (application/hal+json)

    • Headers

        Accept-Charset: utf-8
      
    • Body

    • Attributes (object)

      • title: Modified title (string, optional)
      • description: Modified description (string, optional)
      • type: TASK (string, optional)
      • category: 210486 (string, optional)

And this is the generated postman for this request:

{
responses: [ ],
dataMode: "params",
tests: "",
description: "A new goal will be created using this action. This action takes a JSON payload as a part of the request. Response then return specific header and body + type (STRING) - Type of type of goal + title (string) - Title of the goal + description (string) - Description of the goal + creator (string) - Position id of the Goal creator + category (string) - Category of the created Goal ",
collectionId: "edeef016-6b25-487b-9269-1972535c0142",
url: "{{HOST}}/positions/132/periods/103/goals",
method: "POST",
headers: "Content-Type: application/hal+json Accept-Charset: utf-8 X-AUTH-TOKEN: {{token}} X-FORWARDED-HOST: local-133.umantis.lan Accept: application/hal+json;charset=UTF-8",
descriptionFormat: "html",
version: 2,
time: 1488549551,
synced: false,
pathVariables: { },
folder: "0d82c745-cfeb-4142-83a4-73009ac018a6",
data: [ ],
id: "ca288b97-cef6-497e-98de-520b4b09c273",
name: "Create a new goal"
},

.... where data is empty.

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

1 participant