Quantcast
Viewing all articles
Browse latest Browse all 4827

GET request with parameters (api never see parameters)

@niconel wrote:

My API (asp.net web API) method looks as follows and thus expect a URL like "http://localhost/..../api/dealtests/25/2"

    [Route("api/dealtests/{take}/{page}")]
    public IHttpActionResult Get(int take = 50, int page=1)       
    { ....

I have a second method that takes no parameters, and that one keep getting hit instead of this one (trying to make my own component since cannot find something that does server-side pagination, search and ordering)

However, I just cannot get the call right. I tried many variations of the following using find, findall, query, filter...

return this.get('store').query('dealtest', { take: 10, page: 2 } )

total noob, but I'm supposed to make an adapter for this call? not sure how to do that if that's what need to be done...

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4827

Trending Articles