cujojs / rest

RESTful HTTP client for JavaScript
http://cujojs.com/
Other
1k stars 146 forks source link

rest params don't work #145

Closed Fornori closed 5 years ago

Fornori commented 8 years ago

Hello. I have the code like this: rest({ method: 'GET', path: 'http://localhost:7777/api/users', params: { size: "2" } });

As result I expect some think like this: http://localhost:7777/api/users?size=2 but i get. with out any params. So params only work with post|put|delete?

rashtao commented 8 years ago

I think you need this: template interceptor

here some examples

scothis commented 8 years ago

One of the major changes in rest.js 2.0 is that request params are no longer automatically applied to the path. The same behavior is available in the rest/interceptor/params interceptor.

scothis commented 5 years ago

rest.js is no longer maintained