Skip to content

Commit

Permalink
changed the naming a bit 🤷
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Oct 14, 2024
1 parent 2bb9fba commit a7046b8
Show file tree
Hide file tree
Showing 7 changed files with 478 additions and 289 deletions.
503 changes: 257 additions & 246 deletions server/api/tumdev/campus_backend.pb.go

Large diffs are not rendered by default.

91 changes: 89 additions & 2 deletions server/api/tumdev/campus_backend.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions server/api/tumdev/campus_backend.proto
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,14 @@ service Campus {
}

// List all information necessary for the "Campus" tab
rpc ListStudentClub(ListCampusRequest) returns (ListCampusReply) {
rpc ListStudentClub(ListStudentGroupRequest) returns (ListStudentGroupReply) {
option (google.api.http) = {get: "/student_clubs"};
option deprecated = true;
}

// List all student groups information
rpc ListStudentGroup(ListStudentGroupRequest) returns (ListStudentGroupReply) {
option (google.api.http) = {get: "/student_groups"};
}
}

Expand Down Expand Up @@ -532,12 +538,12 @@ enum Language {
English = 1;
}

message ListCampusRequest {
message ListStudentGroupRequest {
// Language of the student clubs and categories
// Defaults to german
optional Language language = 1;
}
message ListCampusReply {
message ListStudentGroupReply {
repeated StudentClubCollection student_clubs = 1;
repeated StudentCouncilCollection student_councils = 2;
}
Expand Down
87 changes: 62 additions & 25 deletions server/api/tumdev/campus_backend.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -667,13 +667,50 @@
},
"/student_clubs": {
"get": {
"summary": "List all information nessesary for the \"Campus\" tab",
"summary": "List all information necessary for the \"Campus\" tab",
"operationId": "Campus_ListStudentClub",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/apiListCampusReply"
"$ref": "#/definitions/apiListStudentGroupReply"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "language",
"description": "Language of the student clubs and categories\nDefaults to german",
"in": "query",
"required": false,
"type": "string",
"enum": [
"German",
"English"
],
"default": "German"
}
],
"tags": [
"Campus"
]
}
},
"/student_groups": {
"get": {
"summary": "List all student groups information",
"operationId": "Campus_ListStudentGroup",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/apiListStudentGroupReply"
}
},
"default": {
Expand Down Expand Up @@ -1031,25 +1068,6 @@
}
}
},
"apiListCampusReply": {
"type": "object",
"properties": {
"studentClubs": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/apiStudentClubCollection"
}
},
"studentCouncils": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/apiStudentCouncilCollection"
}
}
}
},
"apiListCanteenRatingsReply": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1192,6 +1210,25 @@
}
}
},
"apiListStudentGroupReply": {
"type": "object",
"properties": {
"studentClubs": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/apiStudentClubCollection"
}
},
"studentCouncils": {
"type": "array",
"items": {
"type": "object",
"$ref": "#/definitions/apiStudentCouncilCollection"
}
}
}
},
"apiMovie": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1477,19 +1514,19 @@
"properties": {
"name": {
"type": "string",
"title": "The name of the club"
"title": "The name of the council"
},
"description": {
"type": "string",
"title": "How the club describes itsself"
"title": "How the council describes itsself"
},
"linkUrl": {
"type": "string",
"title": "Where the clubs main internet presence is"
"title": "Where the council main internet presence is"
},
"coverUrl": {
"type": "string",
"title": "Where to find a image for this club"
"title": "Where to find a image for this council"
}
}
},
Expand Down
Loading

0 comments on commit a7046b8

Please sign in to comment.