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

support for Multiple Transaction #46

Open
Jebakumargodwin opened this issue Apr 4, 2016 · 1 comment
Open

support for Multiple Transaction #46

Jebakumargodwin opened this issue Apr 4, 2016 · 1 comment

Comments

@Jebakumargodwin
Copy link

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 😄

@timgent
Copy link

timgent commented Apr 26, 2016

+1, I have an identical issue

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

2 participants