Skip to content
Snippets Groups Projects
Commit 71412e16 authored by Malte Bauch's avatar Malte Bauch
Browse files

defined first routes for grpc-gateway

parent e7d5fcef
No related branches found
No related tags found
No related merge requests found
......@@ -2,13 +2,22 @@ syntax = "proto3";
package gosdn.core;
import "google/api/annotations.proto";
import "gosdn/pnd/pnd.proto";
option go_package = "code.fbi.h-da.de/danet/api/go/gosdn/core";
service core {
rpc GetPnd(GetPndRequest) returns (GetPndResponse);
rpc GetPndList(GetPndListRequest) returns (GetPndResponse);
rpc GetPnd(GetPndRequest) returns (GetPndResponse) {
option (google.api.http) = {
get: "/v1/pnd/{pid}"
};
}
rpc GetPndList(GetPndListRequest) returns (GetPndResponse) {
option (google.api.http) = {
get: "/v1/pnd"
};
}
rpc SetPnd(SetPndRequest) returns (SetPndResponse);
}
......
......@@ -2,6 +2,7 @@ syntax = "proto3";
package gosdn.pnd;
import "google/api/annotations.proto";
import "google/protobuf/descriptor.proto";
import "github.com/openconfig/gnmi/proto/gnmi/gnmi.proto";
import "gosdn/transport/transport.proto";
......@@ -12,15 +13,39 @@ option go_package = "code.fbi.h-da.de/danet/api/go/gosdn/pnd";
service pnd {
// Allows to request Orchestrated Networking Devices which are managed by a
// specific Principal Network Domain.
rpc GetOnd(GetOndRequest) returns (GetOndResponse);
rpc GetOndList(GetOndListRequest) returns (GetOndResponse);
rpc GetOnd(GetOndRequest) returns (GetOndResponse) {
option (google.api.http) = {
get: "/v1/pnd/{pid}/ond/{did}"
};
}
rpc GetOndList(GetOndListRequest) returns (GetOndResponse) {
option (google.api.http) = {
get: "/v1/pnd/{pid}/ond"
};
}
// Allows to request the Southbound Interfaces a specific Principal Network
// Domain supports.
rpc GetSbi(GetSbiRequest) returns (GetSbiResponse);
rpc GetSbiList(GetSbiListRequest) returns (GetSbiResponse);
rpc GetSbi(GetSbiRequest) returns (GetSbiResponse) {
option (google.api.http) = {
get: "/v1/pnd/{pid}/sbi/{sid}"
};
}
rpc GetSbiList(GetSbiListRequest) returns (GetSbiResponse) {
option (google.api.http) = {
get: "/v1/pnd/{pid}/sbi"
};
}
// Allows to request Changes registered for a specific Principal Network Domain.
rpc GetChange(GetChangeRequest) returns (GetChangeResponse);
rpc GetChangeList(GetSbiListRequest) returns (GetChangeResponse);
rpc GetChange(GetChangeRequest) returns (GetChangeResponse) {
option (google.api.http) = {
get: "/v1/pnd/{pid}/change/{cuid}"
};
}
rpc GetChangeList(GetSbiListRequest) returns (GetChangeResponse) {
option (google.api.http) = {
get: "/v1/pnd/{pid}/change"
};
}
// Allows to request a specific Path of a Orchestrated Networking Device,
// managed by a specific Principal Network Domain.
rpc GetPath(GetPathRequest) returns (GetPathResponse);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment