Use ASP.NET Core Razor Pages as API Endpoints

Use Razor Pages and jQuery to Quickly Create RESTful Interactivity

Christopher Laine
Nov 3 · 5 min read

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…

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Christopher Laine

Written by

Writer, sci fi / Lovecraftian nutbag, "master' chef, gym rat, martial artist, Dungeon Master, and programmer. I cover all the useless bases

IT Dead Inside

IT is a cesspool, but its home

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade