Use HTTP Global Expected Codes #3

Merged
merged 2 commits into from Jan 7, 2013

Conversation

Projects
None yet
2 participants
@dadoonet
Contributor

dadoonet commented Dec 28, 2012

This PR uses global expected HTTP status codes when no specific status code is defined on a method.

{
    "name": "Amazon S3",
    "base_url": "http://s3.amazonaws.com",
    "version": "0.1",
    "methods": {
        "get_service": {
            "path": "/",
            "method": "GET",
            "headers": {
                "Date": "AWS"
            }
        },
        "delete_bucket": {
            "path": "/",
            "method": "DELETE",
            "headers": {
                "Date": "AWS"
            },
            "optional_params": [
                "bucket"
            ],
            "expected_status": [ 204 ]
        }
    },
    "expected_status": [ 200 ]
}

For example, the expected HTTP status code for get_service will be 200.

@nicoo

This comment has been minimized.

Show comment Hide comment
@nicoo

nicoo Dec 28, 2012

Owner

Thanks, I'll try and merge as soon as possible.

Owner

nicoo commented Dec 28, 2012

Thanks, I'll try and merge as soon as possible.

@nicoo nicoo merged commit 8f14c2d into nicoo:master Jan 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment