Questions Management – API Category Service – Create api-category-service project using Spring Tool Suite

Check out the full series of Questions Management tutorial here.

API Services are the services that expose the API to external systems that can be used. They will call the other services in the Core Service or Composite Service depending on the needs of the user. In this tutorial, I show you how to create the Spring Boot project for first API Service, the API Category Service.

The steps to create a Spring Boot project, I already guided to you all. Here, I only mention some important points in the process of creating projects for the API Service Category only.

In the New Spring Starter Project window, after filling in the information about our project, in the Location section, you point to the project questions-management directory:

Questions Management – API Category Service – Create api-category-service project using Spring Tool Suite

 

As you can see in the questions-management project folder, I have added an api folder inside this directory to contain all of the API Services related projects.

For the dependencies to use for the api-category-service project because API Service will not have any operations on the database, we will only use the following dependencies:

Questions Management – API Category Service – Create api-category-service project using Spring Tool Suite

Result:

Questions Management – API Category Service – Create api-category-service project using Spring Tool Suite

Next, I’ll revise this project a little bit so that it uses the parent project of the project questions-management.

In this project’s pom.xml file, I will delete the current <parent> and <properties> to declare using the parent project of the project questions-management:

Then declare the project api-category-service as a module of the project questions-management as follows:

Chia sẽ bài viết này ...Share on Facebook
Facebook
0Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin

Add Comment