Skip to content

Commit cc6c8d1

Browse files
committed
Updated micronaut README.md
1 parent 1464c18 commit cc6c8d1

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

micronaut/README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Please refer to the list of [all features](../docs/features.md). To check the fe
88

99
### Paths
1010

11-
+ Supports Controller annotation in combination with empty HttpMethod annotation
11+
+ Supports Controller annotation combined with empty HttpMethod annotation
1212
+ _Example:_
1313
```
1414
@Controller("/todos")
@@ -19,13 +19,13 @@ class TodosController {
1919
}
2020
```
2121

22-
+ Supports path declaration in combination of Controller annotation and HttpMethod annotation
22+
+ Supports Controller annotation combined with HttpMethod annotation
2323
+ _Example:_
2424
```
2525
@Controller("/todo")
2626
class TodosController {
2727
28-
@Get("list")
28+
@Get("/list")
2929
fun todos() { }
3030
}
3131
```
@@ -107,6 +107,26 @@ class TodosController {
107107

108108
+ Supports optional header parameter based on the existence of a default value
109109
+ _Examples:_ `@Header("allow-cache", defaultValue = "true") otherName: String`
110+
111+
### Consumes
112+
113+
+ Supports default media type `application/json`
114+
115+
+ Supports single and multiple media type declarations in Controller annotation
116+
117+
+ Supports Consumes annotation with single and multiple media type declarations on class and function
118+
119+
+ Supports Consumes annotation overriding the value of the Controller annotation
120+
121+
### Produces
122+
123+
+ Supports default media type `application/json`
124+
125+
+ Supports single and multiple media type declarations in Controller annotation
126+
127+
+ Supports Produces annotation with single and multiple media type declarations on class and function
128+
129+
+ Supports Produces annotation overriding the value of the Controller annotation
110130

111131
## Usage
112132

0 commit comments

Comments
 (0)