Skip to content

support for Multiple Transaction #46

@Jebakumargodwin

Description

@Jebakumargodwin

Hi,

The following is my api blueprint file.

FORMAT: 1A

# Sample Heading

Sample info

## Endpoint 1 [/sample]

### Create endpoing [POST]

+ Request A (application/json)

        {
            "test": "v1"
        }

+ Response 201 (application/json)

    + Body

            {
                "test": "v1"
            }

+ Request B (application/json)

        {
            "test": "v2"
        }

+ Response 422 (application/json)

    + Body

            {
                "test": "invalid choice"
            }

This is my test code

import requests
url = "http://localhost:3000/sample/"
print requests.post(url, data={"test":"v1"}).json()
print requests.post(url, data={"test":"v2"}).json()

Response 422 is not considered in this case. Both the requests return the response related to Request A (Response 201).

Could you please tell me if there is any error in my api blueprint document (I tried validating it it apiary.io. The doc was validated there) and if api mock supports multiple transactions (As given in blueprint docs).

Thanks a lot 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions