guzzle / guzzle-services

Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create request without root key

vladx1900 opened this issue · comments

How can I define the operation's parameters when there is no root key?

I'm trying to create a request for an endpoint which accepts the following request body:

[
    {"Text":"I would really like to drive your car around the block a few times."}
]

Copy the jsonLocation class. You can remove the 'root key' from the jsonData variable. Be sure to set the location to your new class.