Skip to content

Commit

Permalink
Removed all roomfidner things from the docs as they are replaced by n…
Browse files Browse the repository at this point in the history
…avigatum
  • Loading branch information
CommanderStorm committed Sep 11, 2023
1 parent 2635c0e commit d000175
Show file tree
Hide file tree
Showing 12 changed files with 1,650 additions and 3,772 deletions.
3,256 changes: 1,040 additions & 2,216 deletions server/api/CampusService.pb.go

Large diffs are not rendered by default.

479 changes: 0 additions & 479 deletions server/api/CampusService.pb.gw.go

Large diffs are not rendered by default.

117 changes: 0 additions & 117 deletions server/api/CampusService.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,45 +26,6 @@ service Campus {
};
}

rpc SearchRooms (SearchRoomsRequest) returns (SearchRoomsReply) {
option (google.api.http) = {
post: "/roomfinder/room/search",
body: "*",
response_body: "rooms"
};
}

// a location is a campus location/building, e.g. "Garching Forschungszentrum"
rpc GetLocations (GetLocationsRequest) returns (GetLocationsReply) {
option (google.api.http) = {
get: "/locations/{location}",
response_body: "locations"
};
}

rpc GetRoomMaps (GetRoomMapsRequest) returns (GetRoomMapsReply) {
option (google.api.http) = {
post: "/roomfinder/maps",
body: "*",
response_body: "maps"
};
}

rpc GetRoomCoordinates (GetRoomCoordinatesRequest) returns (GetRoomCoordinatesReply) {
option (google.api.http) = {
post: "/roomfinder/room/coordinates",
body: "*"
};
}

rpc GetRoomSchedule (GetRoomScheduleRequest) returns (GetRoomScheduleReply) {
option (google.api.http) = {
post: "/roomfinder/room/scheduleById",
body: "*",
response_body: "events"
};
}


// This endpoint retrieves Cafeteria Ratings from the Backend.
rpc GetCafeteriaRatings (CafeteriaRatingRequest) returns (CafeteriaRatingReply) {
Expand Down Expand Up @@ -305,83 +266,6 @@ message IOSDeviceRequestResponseReply {
string message = 1;
}

message GetRoomScheduleRequest {
int32 room = 1;
google.protobuf.Timestamp start = 2;
google.protobuf.Timestamp end = 3;
}

message GetRoomScheduleReply {
message RoomScheduleEvent {
google.protobuf.Timestamp start = 1;
google.protobuf.Timestamp end = 2;
string title = 3;
int32 event_id = 4;
string course_code = 5;
}
repeated RoomScheduleEvent events = 1;
}

message GetRoomCoordinatesRequest {
string arch_id = 1;
}

message GetRoomCoordinatesReply {
string utm_zone = 1;
float utm_easting = 2;
float utm_northing = 3;
}

message GetRoomMapsRequest {
string arch_id = 1;
}

message GetRoomMapsReply {
message Map {
int64 map_id = 1;
string description = 2;
int64 scale = 3;
int64 width = 4;
int64 height = 5;
};
repeated Map maps = 1;
}

message GetLocationsRequest {
string location = 1;
}

message GetLocationsReply {
message Location {
string location = 1;
string name = 2;
string lon = 3;
string lat = 4;
string radius = 5;
}
repeated Location locations = 1;
}

message SearchRoomsRequest {
string query = 1;
}

message SearchRoomsReply {
repeated Room rooms = 1;
}

message Room {
int32 roomId = 1;
string room_code = 2;
string building_nr = 3;
string arch_id = 4;
string info = 5;
string address = 6;
string purpose = 7;
string campus = 8;
string name = 9;
}

message NewsSourceArray {
repeated NewsSource sources = 1;
}
Expand Down Expand Up @@ -610,7 +494,6 @@ message GetOpeningTimesRequest{

message GetOpeningTimesReply{
repeated OpeningTimesMsgElement facilities = 1;

}

message OpeningTimesMsgElement{
Expand Down
187 changes: 0 additions & 187 deletions server/api/CampusService_grpc.pb.go

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

14 changes: 3 additions & 11 deletions server/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,10 @@ sudo dnf install go protobuf
## Buf
Buf is required to generate protobuf files automatically.
Follow the installation instructions detailed here: https://docs.buf.build/installation#github-releases
Alternatively, we have prepared this installation script:

## Go Dependencies

```bash
go get google.golang.org/protobuf/cmd/protoc-gen-go \
google.golang.org/grpc/cmd/protoc-gen-go-grpc

go install \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
google.golang.org/protobuf/cmd/protoc-gen-go \
google.golang.org/grpc/cmd/protoc-gen-go-grpc
```shell
sh installBuf.sh
```

## Generating
Expand Down
Loading

0 comments on commit d000175

Please sign in to comment.