@@ -30,8 +30,7 @@ trait SubjectPageController {
30
30
class SubjectPageController extends TapirController {
31
31
override val serviceName : String = " subjectpage"
32
32
override val prefix : EndpointInput [Unit ] = " frontpage-api" / " v1" / serviceName
33
- private val pathSubjectPageId =
34
- path[Long ](" subject_page_id" ).description(" Id of the subject page that is to be fetched" )
33
+ private val pathSubjectPageId = path[Long ](" subjectpage-id" ).description(" The subjectpage id" )
35
34
private val pathLanguage = path[String ](" language" ).description(" The ISO 639-1 language code describing language." )
36
35
37
36
def getAllSubjectPages : ServerEndpoint [Any , Eff ] = endpoint.get
@@ -48,7 +47,7 @@ trait SubjectPageController {
48
47
49
48
def getSingleSubjectPage : ServerEndpoint [Any , Eff ] = endpoint.get
50
49
.summary(" Get data to display on a subject page" )
51
- .in(path[ Long ]( " subjectpage-id " ).description( " The subjectpage id " ) )
50
+ .in(pathSubjectPageId )
52
51
.in(query[String ](" language" ).default(props.DefaultLanguage ))
53
52
.in(query[Boolean ](" fallback" ).default(false ))
54
53
.out(jsonBody[SubjectPageDTO ])
@@ -92,7 +91,7 @@ trait SubjectPageController {
92
91
def updateSubjectPage : ServerEndpoint [Any , Eff ] = endpoint.patch
93
92
.summary(" Update subject page" )
94
93
.in(jsonBody[UpdatedSubjectPageDTO ])
95
- .in(path[ Long ]( " subjectpage-id " ).description( " The subjectpage id " ) )
94
+ .in(pathSubjectPageId )
96
95
.in(query[String ](" language" ).default(props.DefaultLanguage ))
97
96
.in(query[Boolean ](" fallback" ).default(false ))
98
97
.out(jsonBody[SubjectPageDTO ])
0 commit comments