Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
Inovasi Daerah Master
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ghitha Dinan
Inovasi Daerah Master
Commits
9b7027f8
Commit
9b7027f8
authored
Jan 06, 2022
by
Ghitha Dinan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add swagger
parent
13516436
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
TagController.kt
...kuriang/inovasi/daerah/master/controller/TagController.kt
+2
-0
PaginationRequest.kt
.../inovasi/daerah/master/model/request/PaginationRequest.kt
+38
-0
No files found.
src/main/kotlin/id/co/sangkuriang/inovasi/daerah/master/controller/TagController.kt
View file @
9b7027f8
...
...
@@ -5,12 +5,14 @@ import id.co.sangkuriang.inovasi.daerah.master.model.request.PaginationRequest
import
id.co.sangkuriang.inovasi.daerah.master.model.response.ReturnData
import
id.co.sangkuriang.inovasi.daerah.master.pojo.Tag
import
id.co.sangkuriang.inovasi.daerah.master.service.TagService
import
io.swagger.annotations.Api
import
org.springframework.beans.factory.annotation.Autowired
import
org.springframework.http.ResponseEntity
import
org.springframework.web.bind.annotation.*
import
javax.servlet.http.HttpServletRequest
import
javax.validation.Valid
@Api
(
tags
=
[
"Tag"
],
description
=
"Tag API"
)
@RestController
@RequestMapping
(
path
=
[
"tag"
])
class
TagController
{
...
...
src/main/kotlin/id/co/sangkuriang/inovasi/daerah/master/model/request/PaginationRequest.kt
View file @
9b7027f8
package
id.co.sangkuriang.inovasi.daerah.master.model.request
import
io.swagger.annotations.ApiModelProperty
import
io.swagger.annotations.ApiParam
class
PaginationRequest
(
@ApiModelProperty
(
value
=
"1 enable or 0 disable, default 1"
,
name
=
"enablePage"
,
dataType
=
"Intreger"
,
example
=
"1"
)
var
enablePage
:
Int
?
=
1
,
@ApiModelProperty
(
value
=
"0 or 1, default 1"
,
name
=
"page"
,
dataType
=
"Intreger"
,
example
=
"0"
)
var
page
:
Int
?
=
0
,
@ApiModelProperty
(
value
=
"10 or 15, default 10"
,
name
=
"size"
,
dataType
=
"Intreger"
,
example
=
"10"
)
var
size
:
Int
?
=
10
,
@ApiModelProperty
(
value
=
"desc or asc, default desc"
,
name
=
"sort"
,
dataType
=
"Intreger"
,
example
=
"10"
)
var
sort
:
String
?
=
"desc"
,
@ApiModelProperty
(
value
=
"any, default updatedAt"
,
name
=
"sortBy"
,
dataType
=
"String"
,
example
=
"updatedAt"
)
var
sortBy
:
String
?
=
"updatedAt"
,
@ApiModelProperty
(
value
=
"any, default empty string"
,
name
=
"param"
,
dataType
=
"String"
)
var
param
:
String
?
=
""
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment