Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

[BUG] [API] Different types of returned data for case_fields.configs

#1

http://docs.gurock.com/testrail-api2/reference-cases-fields#apicase_fields

GET index.php?/api/v2/get_case_fields
return configs with array type

POST index.php?/api/v2/add_case_field
return configs with string type

For development languages ​with strict typing, the parsing of this model is akin to a severe toothache. I’m already silent about 1/0 and true/false.
And in general generating code from json schemes for your API is a task for the brave.
You should be ashamed of such a DTO.

UPD
I ask you to look at the specifications of your competitors. Done much better. Both with examples and with models and with json schemes.
https://www.kanoah.com/docs/public-api/1.0/

0 Likes