Initial QSfera import
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package qsfera.services.policies.v0;
|
||||
|
||||
option go_package = "github.com/qsfera/server/protogen/gen/qsfera/service/policies/v0";
|
||||
|
||||
import "qsfera/messages/policies/v0/policies.proto";
|
||||
import "protoc-gen-openapiv2/options/annotations.proto";
|
||||
import "google/api/annotations.proto";
|
||||
|
||||
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
||||
info: {
|
||||
title: "КуСфера policies";
|
||||
version: "1.0.0";
|
||||
contact: {
|
||||
name: "КуСфера";
|
||||
url: "";
|
||||
email: "";
|
||||
};
|
||||
license: {
|
||||
name: "Apache-2.0";
|
||||
url: "";
|
||||
};
|
||||
};
|
||||
schemes: HTTP;
|
||||
schemes: HTTPS;
|
||||
consumes: "application/json";
|
||||
produces: "application/json";
|
||||
external_docs: {
|
||||
description: "Developer Manual";
|
||||
url: "";
|
||||
};
|
||||
};
|
||||
|
||||
service policiesProvider {
|
||||
rpc Evaluate(EvaluateRequest) returns (EvaluateResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/v0/policies/evaluate",
|
||||
body: "*"
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
message EvaluateRequest {
|
||||
string query = 1;
|
||||
qsfera.messages.policies.v0.Environment environment = 2;
|
||||
}
|
||||
|
||||
message EvaluateResponse {
|
||||
bool result = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user