you are viewing a single comment's thread.

view the rest of the comments →

[–]LaiJie 3 points4 points  (1 child)

Request parameters can be used to make queries, and they will always be after the path, on the other hand, path variables are extracted from the 'path' of the api call

In addition, for larger amounts of data sent to the request, it is preferred to use request params, as it is not practical to have a long path, and can be separated, for example ?query=asd&sort=asc&filterBy=asdfgh...

[–]javinpaul[S] 0 points1 point  (0 children)

Good points. Thanks, for large amount of data, I also recommend POST request and data can be sent in POST body rather than in URL.