WebApi is IMHO the most
important part of ASP.net going forward. In this post I'll explain more about
the server side of WebAPI.
Pre-Requisites
In the following 9
minute Video, I'll show you
-
Folder where to place your
API-code (the api-folder)
-
Registering your API (there
is no registration, it just works by default)
-
The code details like
inherited classes
naming conventions
-
Sending data from the server
to the client
-
Simple examples sending back
one or multiple values
-
Security aspects like the
security token and DNN-permissions
-
Difference DNN-WebAPI and
2sxc-WebAPI, mainly
that
-
DNN requires
visual studio, compiling and DLL deployment, 2sxc is happy with a
text-editor and compiles on the fly
-
DNN requires a "route
registration", 2sxc does this automatically
-
DNN requires DNN to restart
when you edit the API,
-
2sxc only restarts the API
-
DNN requires the API to be
installed in the DesktopModules, for all portals, while 2sxc installs
them in the Portals/x/2sxc folder, separating each portal and App
Further links
With love from Switzerland,
Daniel