Use ASP.NET Core Razor Pages as API Endpoints
Use Razor Pages and jQuery to Quickly Create RESTful Interactivity
What Are We Building?
We’re going to whip up a simple Razor page application with some jQuery interactivity built into it. The jQuery will call upon another specialised Razor page to act as a mini-API, a source of RESTful data. That’s it.
Why Would I Need This?
If you have an existing API for your product, and this API is wired into your…