Categories

How to extend Web API with plugin

Web API in GrandNode can be extended with an additional plugin. I will describe shortly how we can implement it in the newest version of GrandNode.

Download the source code of plugin

Please download the plugins source code here

Extract the zip file and please copy the whole content to your GrandNode directory. You should copy it to Source code -> Plugins folder. 

GrandNode Folder Structure

After that you should see result as below:

Plugin added to source code

Now, we need to add existing project to our solution. Go to Plugins section, right click on it and select Add -> Existing project.

Add existing project to GrandNode source code screen

If you want to get the compiled version, which you will be able to install in your GrandNode. Right click on the project and select the "Build" button. It will rebuild the whole project and create a compiled version of plugin. Files will be available in the Grand.Web -> Plugins folder.

Now you can run your GrandNode, login to your admin panel and go the Plugins list. Probably you should see the Extended API plugin. Install it. 

This plugin allows you to use data stored in the Orders collection in GrandNode database.

back to top