extend Web API gives error on build

Saturday, December 28, 2024 12:38:26 PM
  • Posted: Friday, November 27, 2020 1:35 PM
  • 2
Dear GrandNode,

I have downloaded the zip file to extend the orders.
But when I build I get the following error

\GrandNode\GrandNode-4.80.0_Source\GrandNode4.80.0_Source\Plugins\Grand.Plugin.Api.Extended\Controllers\OrderController.cs(15,26,15,41): error CS0246: The type or namespace name 'IMongoDBContext' could not be found (are you missing a using directive or an assembly reference?)
\GrandNode\GrandNode-4.80.0_Source\GrandNode4.80.0_Source\Plugins\Grand.Plugin.Api.Extended\Controllers\OrderController.cs(20,32,20,47): error CS0246: The type or namespace name 'IMongoDBContext' could not be found (are you missing a using directive or an assembly reference?)
\GrandNode\GrandNode-4.80.0_Source\GrandNode4.80.0_Source\Plugins\Grand.Plugin.Api.Extended\DTOs\OrderDto.cs(82,45,82,63): error CS0246: The type or namespace name 'BaseApiEntityModel' could not be found (are you missing a using directive or an assembly reference?)
Done building project "Grand.Plugin.Api.Extended.csproj" -- FAILED.

Regards,
0
  • Posted: Monday, November 30, 2020 7:07 AM
  • 953
nattee wrote:
Dear GrandNode,

I have downloaded the zip file to extend the orders.
But when I build I get the following error

\GrandNode\GrandNode-4.80.0_Source\GrandNode4.80.0_Source\Plugins\Grand.Plugin.Api.Extended\Controllers\OrderController.cs(15,26,15,41): error CS0246: The type or namespace name 'IMongoDBContext' could not be found (are you missing a using directive or an assembly reference?)
\GrandNode\GrandNode-4.80.0_Source\GrandNode4.80.0_Source\Plugins\Grand.Plugin.Api.Extended\Controllers\OrderController.cs(20,32,20,47): error CS0246: The type or namespace name 'IMongoDBContext' could not be found (are you missing a using directive or an assembly reference?)
\GrandNode\GrandNode-4.80.0_Source\GrandNode4.80.0_Source\Plugins\Grand.Plugin.Api.Extended\DTOs\OrderDto.cs(82,45,82,63): error CS0246: The type or namespace name 'BaseApiEntityModel' could not be found (are you missing a using directive or an assembly reference?)
Done building project "Grand.Plugin.Api.Extended.csproj" -- FAILED.

Regards,


Hello Nattee,

Extended Web API which you get from our docs page is for GrandNode 4.60, so if you want to use it in GrandNode 4.80.0 you will need to upgrade it. There is a briefly guide, how to upgrade the plugin to support GrandNode 4.80.0.

Also, if you are interested in the Extended Web API for GrandNode 4.80, you can check one of our newest plugin: Extended Web API It extends API by adding support for Orders, Shipments, and Return requests. Here is the list of all new requests:
Complete Orders' Management:
- Get all orders
- Get order by ID
- Set order as imported
- Set order mark as paid
- Set order mark as authorized
- Possibility to Cancel order
- Possibility to Delete order


Possibility to manage shipments:
- Create shipments
- Get all shipments
- Get shipment by Id
- Set as Shipped
- Set as Delivered
- Set tracking number
- Delete shipment

Possibility to manage return request:
- Get all return requests
- Get return request by id
- Update return request
- Delete return request
Best regards,
Patryk

GrandNode Team
0
  • Posted: Monday, November 30, 2020 1:14 PM
  • 2
Thanks
0
back to top
Filters