yii2, I write api REST API, I test in postman.

yii2 builds queries like this: example.com/controller/id .

postman builds queries like this: example.com/controller?id=id .

How to bring them to a single mind?

If you change something in the application yii, then you need to make sure that the CNC remains.

  • And why don't you write unit tests using, for example, guzzle? - ArchDemon
  • @ArchDemon, because there is no development experience as such, and no experience of writing and testing your own api. and, if I understood correctly, the comparison between postman and guzzle is like a comparison between soft and warm. - dasauser

1 answer 1

Well, while there is no complete solution, I do this:

just without specifying the parameters in the postman do requests directly to the link. those. in the query string a link of the form example/controller/id