Browse Source

Add part-06 of microservice tutorial covering service integration with HTTP API calls

pull/21456/head
ahmetfarukulu 2 years ago
parent
commit
fdba7d5b12
  1. BIN
      docs/en/tutorials/microservice/images/abp-studio-run-build-start.png
  2. BIN
      docs/en/tutorials/microservice/images/web-orders-page.png
  3. 22
      docs/en/tutorials/microservice/part-05.md
  4. 16
      docs/en/tutorials/microservice/part-06.md

BIN
docs/en/tutorials/microservice/images/abp-studio-run-build-start.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
docs/en/tutorials/microservice/images/web-orders-page.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

22
docs/en/tutorials/microservice/part-05.md

@ -8,7 +8,7 @@
"Path": "tutorials/microservice/part-04"
},
"Next": {
"Name": "Integrating the modules: Implementing Integration Services",
"Name": "Integrating the services: HTTP API Calls",
"Path": "tutorials/microservice/part-06"
}
}
@ -410,3 +410,23 @@ private static async Task ConfigureMainMenuAsync(MenuConfigurationContext contex
);
}
```
## Building and Running the Application
Now, we can build and run the application to see the changes. Please stop the applications if they are running. Then open the *Solution Runner* panel, right-click the `CloudCrm` root item, and select the *Run* -> *Build & Start* command.
![abp-studio-run-build-start](images/abp-studio-run-build-start.png)
After the applications start, you can *Browse* and navigate to the `Orders` page to see the list of orders:
![web-orders-page](images/web-orders-page.png)
Great! We have successfully implemented the Ordering module. However, there is a problme:
- We see Product's GUID ID instead of its name. This is because the *Ordering* microservice has no integration with the *Catalog* microservice and doesn't have access to Product microservice's database to perform a JOIN query.
We will solve this problem in the next part by implementing an integration service between the *Ordering* and *Catalog* microservices.
## Summary
In this part, we implemented the Ordering module manually. We created the `Order` entity, the `OrderState` enum, the `OrderAppService` application service, and the user interface for the `Orders` page. We also added a menu item to the sidebar to navigate to the `Orders` page.

16
docs/en/tutorials/microservice/part-06.md

@ -0,0 +1,16 @@
# Microservice Tutorial Part 06: Integrating the services: HTTP API Calls
````json
//[doc-nav]
{
"Previous": {
"Name": "Building the Ordering module",
"Path": "tutorials/microservice/part-05"
},
"Next": {
"Name": "Integrating the services: Using Distributed Events",
"Path": "tutorials/microservice/part-07"
}
}
````
Loading…
Cancel
Save