API plugin for nopCommerce 4.50
This plugin provides a RESTful API for managing resources in nopCommerce 4.50.
Installation
- clone the NopCommerce repository (
develop
branch) into folder callednopCommerce
- clone this repository into the same folder where the
nopCommerce
folder is located - build the nopCommerce solution
- build the api-for-nopcommerce solution (the output will be placed inside the nopCommerce directory)
- run the Nop.Web project in the nopCommerce solution
- install the nopCommerce database, create the admin user (skip this step if already done)
- go to the administration page, Api plugin should be listed in local plugins configuration section.
- in the customers section assign the role
Api Users
to the user that will be used to access the api. - set fake appId and app secret in facebook authentication plugin as a workaround for issue #17.
- go to
/api/swagger
page and experiment with the api (use the Authorize button to authenticate requests) or run .NET 5 client application (ClientApp
project) that contains auto-generated Api client class generated from the swagger json file using C# 9 source generator.