Logo
Logo
  • Blazor CMS Home
  • Oqtane Tutorials
  • Blazor CMS Home
  • Oqtane Tutorials
Oqtane Tutorials
Oqtane Tutorials

WebAPI and REST Tutorials

Tutorial Home › WebApi and REST
turnOn Tutorial
#1 WebAPI and REST - Introduction
WebAPI Basics: Call WebAPIs and REST using JavaScript
Requirements
  • 2sxc 12.08
Resources
  • WebApi Docs
  • WebApi fetch Docs
  • WebApi Minimal Docs
  • ApiController Docs

WebAPI and REST - Introduction

Learn how to create and use WebApi to provide data to JavaScript SPA apps.

Some notes before we start

WebApi is not directly razor, as it's not meant to actualy render HTML. It's coded using C# just like razor, but won't have commands like @Html.Raw(...). Since it's the best way to communicate from the server with your JavaScript apps, we've included the basics in this tutorial.

Our examples use very trivial JavaScript code to call the API and show the results. Your SPA apps will usually be more sophisticated, but that would then be a topic for a JavaScript tutorial.

 

turnOn Tutorial
#1 WebAPI and REST - Introduction
WebAPI Basics: Call WebAPIs and REST using JavaScript
  • 2sic internet solutions
  • Langäulistrasse 62, 9470 Buchs SG, Switzerland
  • +41 81 750 67 77
Login