The swagger json is incorrect
-
https://test.fiskeback.com/wp-json/tribe/events/v1/doc
The swagger file is not consistent with the result that I get
https://test.fiskeback.com/wp-json/tribe/events/v1/events?start_date=2020-04-01
and I don’t think it depends on the start_date ;-).
Swagger json says the result is a simple array, when it in fact is
{ “events”: […], “rest_url”:”http:\/\/test.fiskeback.com\/wp-json\/tribe\/events\/v1\/events\/?page=1&per_page=10&start_date=2020-04-01 00:00:00&end_date=2022-05-03 23:59:59&status=publish”,”next_rest_url”:”http:\/\/test.fiskeback.com\/wp-json\/tribe\/events\/v1\/events\/?per_page=10&start_date=2020-04-01+00%3A00%3A00&end_date=2022-05-03+23%3A59%3A59&status=publish&page=2″,”total”:80,”total_pages”:8 }
Also, when trying to use the Swagger json on https://editor.swagger.io/ I get a lot of errors.
Best regards,
Stefan
- The topic ‘The swagger json is incorrect’ is closed to new replies.