File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
apps/api/src/main/kotlin/com/github/thorlauridsen/controller Expand file tree Collapse file tree 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
1010import java.util.UUID
1111
1212/* *
13- * REST controller for customers.
14- * This controller consists of endpoints for:
13+ * This REST controller consists of endpoints for:
1514 * - Saving customers.
1615 * - Fetching customers.
1716 *
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+ *
1821 * @param customerService [CustomerService] service layer.
1922 */
2023@Controller
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ import java.util.UUID
2020
2121const val CUSTOMER_BASE_ENDPOINT = " /customers"
2222
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+ */
2329@Tag(name = " Customer Controller" , description = " API for managing customers" )
2430@RequestMapping(CUSTOMER_BASE_ENDPOINT )
2531interface ICustomerController {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ pluginManagement {
2020}
2121
2222/* *
23- * Includes all subprojects within the given directory.
23+ * Include all subprojects within the given directory.
2424 * This function scans the given directory for subdirectories containing a build.gradle.kts file.
2525 * @param directory The relative path (from the root project) of the directory containing subprojects.
2626 */
You can’t perform that action at this time.
0 commit comments