Skip to content

Commit a956a13

Browse files
author
Thiago Bustamante
committed
2 parents c2024a1 + 5dc6731 commit a956a13

File tree

9 files changed

+169
-78
lines changed

9 files changed

+169
-78
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ coverage
88
*.log
99
npm-debug.log*
1010
.idea
11+
reports

README.MD

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This is a tool to generate swagger files from a [typescript-rest](https://github
1515
- [@Response](#response)
1616
- [@Example](#example)
1717
- [@Tags](#tags)
18+
- [@Consumes](#consumes)
1819
- [@Produces](#produces)
1920
- [@Hidden](#hidden)
2021
- [@IsInt, @IsLong, @IsFloat, @IsDouble](#isint-islong-isfloat-isdouble)
@@ -165,6 +166,21 @@ class PeopleService {
165166
```
166167

167168

169+
#### @Consumes
170+
171+
Document the consumes property in generated swagger docs
172+
173+
```typescript
174+
@Path('people')
175+
@Consumes('text/html')
176+
class PeopleService {
177+
@PUT
178+
createPeople(@Param('name') name: string, people: People) {
179+
// ...
180+
}
181+
}
182+
```
183+
168184
#### @Produces
169185

170186
Document the produces property in generated swagger docs

0 commit comments

Comments
 (0)