4
4
import io .papermc .hangar .model .internal .api .requests .StringContent ;
5
5
import io .swagger .v3 .oas .annotations .Operation ;
6
6
import io .swagger .v3 .oas .annotations .Parameter ;
7
+ import io .swagger .v3 .oas .annotations .media .Content ;
8
+ import io .swagger .v3 .oas .annotations .media .Schema ;
7
9
import io .swagger .v3 .oas .annotations .responses .ApiResponse ;
8
10
import io .swagger .v3 .oas .annotations .responses .ApiResponses ;
9
11
import io .swagger .v3 .oas .annotations .security .SecurityRequirement ;
@@ -27,7 +29,7 @@ public interface IPagesController {
27
29
tags = "Pages"
28
30
)
29
31
@ ApiResponses ({
30
- @ ApiResponse (responseCode = "200" , description = "Ok" ),
32
+ @ ApiResponse (responseCode = "200" , description = "Ok" , content = @ Content ( mediaType = MediaType . TEXT_PLAIN_VALUE , schema = @ Schema ( type = "string" )) ),
31
33
@ ApiResponse (responseCode = "401" , description = "Api session missing, invalid or expired" ),
32
34
@ ApiResponse (responseCode = "403" , description = "Not enough permissions to use this endpoint" )
33
35
})
@@ -48,7 +50,7 @@ default String getMainPage(@Parameter(description = "The author of the project t
48
50
tags = "Pages"
49
51
)
50
52
@ ApiResponses ({
51
- @ ApiResponse (responseCode = "200" , description = "Ok" ),
53
+ @ ApiResponse (responseCode = "200" , description = "Ok" , content = @ Content ( mediaType = MediaType . TEXT_PLAIN_VALUE , schema = @ Schema ( type = "string" )) ),
52
54
@ ApiResponse (responseCode = "401" , description = "Api session missing, invalid or expired" ),
53
55
@ ApiResponse (responseCode = "403" , description = "Not enough permissions to use this endpoint" )
54
56
})
0 commit comments