Skip to content

batch support #8

@greenpdx

Description

@greenpdx

querystring.stringify is used to create the URI query. When sending a batch request the array of commands is trashed by querystring.stringify. There needs to a a separate URI generation for batch request.
example
action = 'batch'
parameters: [
{action:'domain.resource.create', domainid:12345, name:'example.com', target:'10.0.42.1', type:'A'}, {action:'domain.resource.create', domainid:12345, name:'mail.example.com', target:'10.0.42.2', type:'A'}]

now it creates a URI that is ?api_key=sekrit&api_action=batch&api_requestArray=&api_requestArray=
read querystring.stringify documentation.

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