Skip to content

Adapter for batch-request #40

@c1moore

Description

@c1moore

As far as I have been able to find, batch-request is one of the most full-featured batch request libraries available for Node.js.

The format for the request looks like

{
    "myRequest1": {
        "method": "GET",
        "uri": "http://api.mysite.com/users/1/first_name"
    },
    "myRequest2": {
        "method": "GET",
        "dependency": "myRequest1",
        "uri": "http://api.mysite.com/users/1"
    },
    "myRequest3": {
        "method": "GET",
        "uri": "http://api.mysite.com/users/1/company"
    },
}

While the response may look something like

{
    "myRequest1": {
        "statusCode": 200,
        "body": "Victor",
        "headers": {...}
    },
    "myRequest2": {
        "statusCode": 200,
        "body": "victor@socialradar.com",
        "headers": {...}
    },
    "myRequest3": {
        "statusCode": 200,
        "body": "SocialRadar",
        "headers": {...}
    },
}

I might work on a solution for this if I get some time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions