File tree 3 files changed +12
-3
lines changed
apps/api/src/main/kotlin/com/github/thorlauridsen/controller
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,14 @@ import java.net.URI
10
10
import java.util.UUID
11
11
12
12
/* *
13
- * REST controller for customers.
14
- * This controller consists of endpoints for:
13
+ * This REST controller consists of endpoints for:
15
14
* - Saving customers.
16
15
* - Fetching customers.
17
16
*
17
+ * This class implements the [ICustomerController] interface and
18
+ * overrides the methods defined in the interface with implementations.
19
+ * The controller is responsible for converting data transfer objects to models and vice versa.
20
+ *
18
21
* @param customerService [CustomerService] service layer.
19
22
*/
20
23
@Controller
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ import java.util.UUID
20
20
21
21
const val CUSTOMER_BASE_ENDPOINT = " /customers"
22
22
23
+ /* *
24
+ * Customer controller interface.
25
+ * This interface defines the endpoints for the customer controller.
26
+ * It also defines the operations which will be used in the OpenAPI documentation.
27
+ * The purpose with this interface is to separate the controller definition from the implementation.
28
+ */
23
29
@Tag(name = " Customer Controller" , description = " API for managing customers" )
24
30
@RequestMapping(CUSTOMER_BASE_ENDPOINT )
25
31
interface ICustomerController {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ pluginManagement {
20
20
}
21
21
22
22
/* *
23
- * Includes all subprojects within the given directory.
23
+ * Include all subprojects within the given directory.
24
24
* This function scans the given directory for subdirectories containing a build.gradle.kts file.
25
25
* @param directory The relative path (from the root project) of the directory containing subprojects.
26
26
*/
You can’t perform that action at this time.
0 commit comments