[Swagger] incorrect query strings

Maniaplanet public API, ManiaConnect system and the open source PHP SDK.

Moderator: NADEO

Post Reply
Posts: 205
Joined: 15 Jun 2010, 17:56

[Swagger] incorrect query strings

Post by zocka » 20 Aug 2017, 08:09

Array-arguments are expected as <argument>[]=<value> but swagger just puts in the argument as it is.
Example: https://v4.live.maniaplanet.com/swagger ... ers_online

Appearently the array-type has to be set like

Code: Select all

"items": {
  "type": "string"

Code: Select all

  "name": "titleUids",
  "in": "query",
  "allowEmptyValue": false,
  "required": false,
  "type": "array"
(http://docs.swagger.io/spec.html#4-3-3-data-type-fields) (https://github.com/swagger-api/swagger- ... t-76741467)
manialink minigame shatter
my manialink: zockaml
my maniaflash: maniaflash?zocka

Post Reply

Return to “Maniaplanet Web Services”

Who is online

Users browsing this forum: No registered users and 3 guests