CIP-RIU / brapiTS

BrAPI Test Server
2 stars 4 forks source link

/calls returns incorrect format (datatypes nesting) #5

Open martinbaste opened 7 years ago

martinbaste commented 7 years ago

The format in the /calls resource response is not correct, as there is an extra nesting level in the calls with more than one datatype.

As an example, the token call should be:

{"call":"token","datatypes":["json","text"],"methods":["POST"]}

Instead, it is:

{"call":"token","datatypes":[["json","text"]],"methods":["POST"]}