Skip to content

Commit 13ec95d

Browse files
committed
docs: Update kdocs in project
1 parent 0c47417 commit 13ec95d

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

apps/api/src/main/kotlin/com/github/thorlauridsen/controller/CustomerController.kt

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ import java.net.URI
1010
import 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

apps/api/src/main/kotlin/com/github/thorlauridsen/controller/ICustomerController.kt

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ import java.util.UUID
2020

2121
const 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)
2531
interface ICustomerController {

settings.gradle.kts

+1-1
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)