1414import de .chojo .gamejam .data .access .Guilds ;
1515import io .javalin .http .Context ;
1616import io .javalin .http .HttpStatus ;
17- import io .javalin .openapi .HttpMethod ;
18- import io .javalin .openapi .OpenApi ;
19- import io .javalin .openapi .OpenApiContent ;
20- import io .javalin .openapi .OpenApiResponse ;
17+ import io .javalin .openapi .*;
2118import net .dv8tion .jda .api .entities .Guild ;
2219import net .dv8tion .jda .api .entities .Member ;
2320import net .dv8tion .jda .api .entities .User ;
@@ -80,6 +77,16 @@ private <T> T completeEntity(RestAction<T> action, String entity) throws Interru
8077 @ OpenApi (path = "/api/v1/users/{user-id}/{guild-id}/guild" ,
8178 summary = "Get the user profile of a user on a guild" ,
8279 methods = HttpMethod .GET ,
80+ pathParams = {
81+ @ OpenApiParam (
82+ name = "user-id" ,
83+ description = "The the user id" ,
84+ required = true ),
85+ @ OpenApiParam (
86+ name = "guild-id" ,
87+ description = "The the guild id" ,
88+ required = true )
89+ },
8390 responses = {
8491 @ OpenApiResponse (status = "200" , content = {@ OpenApiContent (from = GuildProfile [].class )})
8592 })
@@ -92,6 +99,16 @@ private void getMutualGuilds(Context ctx) throws InterruptException {
9299
93100 @ OpenApi (path = "/api/v1/users/{user-id}/{guild-id}/team" ,
94101 methods = HttpMethod .GET ,
102+ pathParams = {
103+ @ OpenApiParam (
104+ name = "user-id" ,
105+ description = "The the user id" ,
106+ required = true ),
107+ @ OpenApiParam (
108+ name = "guild-id" ,
109+ description = "The the guild id" ,
110+ required = true )
111+ },
95112 responses = {
96113 @ OpenApiResponse (status = "200" , content = {@ OpenApiContent (from = TeamProfile .class )})
97114 })
@@ -111,6 +128,16 @@ private void getUserTeam(Context ctx) throws InterruptException {
111128
112129 @ OpenApi (path = "/api/v1/users/{user-id}/{guild-id}/profile" ,
113130 methods = HttpMethod .GET ,
131+ pathParams = {
132+ @ OpenApiParam (
133+ name = "user-id" ,
134+ description = "The the user id" ,
135+ required = true ),
136+ @ OpenApiParam (
137+ name = "guild-id" ,
138+ description = "The the guild id" ,
139+ required = true )
140+ },
114141 responses = {
115142 @ OpenApiResponse (status = "200" , content = @ OpenApiContent (from = UserProfile .class ))
116143 })
0 commit comments