Search code examples
.netapinopcommercenopcommerce-4.1

How nopCommerce-API access from Fiddler or mobile app


As a new to the nopCommerce, stuck in one issue. Need a nopCommerce API, use this you can create a product, retrieve a product, update a product or delete a product with out associated with your nopCommerce website.

API deploy separately not with nopCommerce website both have same Database and functionalities, suppose any mobile app or third party client tool like Fiddler can access those functionality via API.

Note: my NopCommerce version is 4.10


Solution

  • Based on comment, what you are trying to do is to create an API of your website and consume it from other platform(s). This is basic scenario where a single DB is being used from both the ends. Generally, in a simple MVC project, you can create an API project in solution where BAL and DAL are the same for web as well as API. Your

    enter image description here

    If you look around the nopCommerce, it's really simple to create an API. As nopCommerce is plugable architecture, you would need to develop a plugin(or have to use already developed by vendor API Plugin if required version available)

    However, to make separate API you would need to use existing DLLs on APIs are depended on. Make sure to give reference of same DLLs that build by web project.