Files
onepanel/api/api.proto
2020-05-01 17:42:40 -07:00

40 lines
807 B
Protocol Buffer

syntax = "proto3";
package api;
import "protoc-gen-swagger/options/annotations.proto";
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_swagger) = {
info: {
title: "Onepanel Core";
description: "Onepanel Core project API";
version: "1.0.0-beta1";
contact: {
name: "Onepanel Core project";
url: "https://github.com/onepanelio/core";
};
};
host: "localhost:8888";
schemes: HTTP;
schemes: HTTPS;
consumes: "application/json";
produces: "application/json";
security_definitions: {
security: {
key: "Bearer";
value: {
type: TYPE_API_KEY;
in: IN_HEADER;
name: "authorization";
description: "Authentication token, prefixed by Bearer"
}
}
}
security: {
security_requirement: {
key: "Bearer";
value: {};
}
}
};