Skip to content

stepanbenes/api-for-nopcommerce

Repository files navigation

API plugin for nopCommerce 4.80

This plugin provides a RESTful API for managing resources in nopCommerce 4.8. For the other versions of nopCommerce, please refer to the the other releases and branches.

Installation

  1. clone the NopCommerce repository (develop branch) into folder called nopCommerce
  2. clone this repository into the same folder where the nopCommerce folder is located
  3. build the nopCommerce solution
  4. build the api-for-nopcommerce solution (the output will be placed inside the nopCommerce directory)
  5. run the Nop.Web project in the nopCommerce solution
  6. install the nopCommerce database, create the admin user (skip this step if already done)
  7. go to the administration page, Api plugin should be listed in local plugins configuration section.
  8. in the customers section assign the role Api Users to the user that will be used to access the api.
  9. set fake appId and app secret in facebook authentication plugin as a workaround for issue #17.
  10. 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.