Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

How to send an invisible parameter to a Web API

$
0
0

I am developing my first ASP.NET MVC project and also I am writing my first Web API. The web page (a view with the Javascript code) that consumes the Web API displays "n" records at a time and, as the user scrolls and reaches the end of the browser window, the Web API is called again to get and display more records from a database. Of course, the Web API needs to know which set of records to get and I suppose that I need to call the Web API and send a parameter to specify which group of records to retrieve. For example:

  • api/GetRecords/0: retrieves records 1 to 10
  • api/GetRecords/1: retrieves records 11 to 20
  • api/GetRecords/2: retrieves records 21 to 30

And so on.

What I would like to do is to send such a parameter in some other way so users do not see the value.
I will very much appreciate about how to achieve my goal.

Respectfully,
Jorge Maldonado


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>