Browse Source

Merge pull request #22023 from abpframework/EngincanV/modular-monolith-docs-improvements

Made improvements for modular monolith tutorial
pull/22024/head
Enis Necipoglu 1 year ago
committed by GitHub
parent
commit
5bd2e1a362
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-ordering-swagger-ui-in-browser.png
  2. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-swagger-ui-create-order-execute.png
  3. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-swagger-ui-create-product-execute.png
  4. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-swagger-ui-create-product-try.png
  5. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-swagger-ui-in-browser.png
  6. 7
      docs/en/tutorials/modular-crm/part-03.md
  7. 16
      docs/en/tutorials/modular-crm/part-05.md

BIN
docs/en/tutorials/modular-crm/images/abp-studio-ordering-swagger-ui-in-browser.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 54 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-swagger-ui-create-order-execute.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 28 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-swagger-ui-create-product-execute.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 27 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-swagger-ui-create-product-try.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-swagger-ui-in-browser.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 63 KiB

7
docs/en/tutorials/modular-crm/part-03.md

@ -387,7 +387,10 @@ Configure<AbpAspNetCoreMvcOptions>(options =>
options.ConventionalControllers.Create(typeof(ModularCrmModule).Assembly);
//ADD THE FOLLOWING LINE:
options.ConventionalControllers.Create(typeof(ProductsApplicationModule).Assembly);
options.ConventionalControllers.Create(typeof(ProductsApplicationModule).Assembly, settings =>
{
settings.RootPath = "products";
});
});
````
@ -409,7 +412,7 @@ Once you see the user interface of the web application, type `/swagger` at the e
![abp-studio-swagger-ui-in-browser](images/abp-studio-swagger-ui-in-browser.png)
Expand the `/api/app/product` API and click the *Try it out* button as shown in the following figure:
Expand the `/api/products/product` API and click the *Try it out* button as shown in the following figure:
![abp-studio-swagger-ui-create-product-try](images/abp-studio-swagger-ui-create-product-try.png)

16
docs/en/tutorials/modular-crm/part-05.md

@ -345,7 +345,9 @@ public class OrderAppService : OrderingAppService, IOrderAppService
}
````
Open the `ModularCrmModule` class in the main application's solution (the `ModularCrm` solution), find the `ConfigureAutoApiControllers` method and add the following lines inside that method:
### Exposing Application Services as HTTP API Controllers
After implementing the application service, now we need to create HTTP API endpoints for the ordering module. For that purpose, open the `ModularCrmModule` class in the main application's solution (the `ModularCrm` solution), find the `ConfigureAutoApiControllers` method and add the following lines inside that method:
````csharp
private void ConfigureAutoApiControllers()
@ -353,10 +355,16 @@ private void ConfigureAutoApiControllers()
Configure<AbpAspNetCoreMvcOptions>(options =>
{
options.ConventionalControllers.Create(typeof(ModularCrmModule).Assembly);
options.ConventionalControllers.Create(typeof(ProductsApplicationModule).Assembly);
options.ConventionalControllers.Create(typeof(ProductsApplicationModule).Assembly, settings =>
{
settings.RootPath = "products";
});
//ADD THE FOLLOWING LINE:
options.ConventionalControllers.Create(typeof(OrderingModule).Assembly);
options.ConventionalControllers.Create(typeof(OrderingModule).Assembly, settings =>
{
settings.RootPath = "orders";
});
});
}
````
@ -373,7 +381,7 @@ Once you see the user interface of the web application, type `/swagger` at the e
![abp-studio-ordering-swagger-ui-in-browser](images/abp-studio-ordering-swagger-ui-in-browser.png)
Expand the `/api/app/order` API and click the *Try it out* button. Then, create a few orders by filling in the request body and clicking the *Execute* button:
Expand the `/api/orders/order` API and click the *Try it out* button. Then, create a few orders by filling in the request body and clicking the *Execute* button:
![abp-studio-swagger-ui-create-order-execute](images/abp-studio-swagger-ui-create-order-execute.png)

Loading…
Cancel
Save