mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-05 21:56:50 +08:00
42 lines
880 B
Protocol Buffer
42 lines
880 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package api;
|
|
option go_package = "github.com/onepanelio/core/api/gen";
|
|
|
|
import "protoc-gen-openapiv2/options/annotations.proto";
|
|
|
|
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
|
info: {
|
|
title: "Onepanel";
|
|
description: "Onepanel API";
|
|
version: "0.10.0";
|
|
contact: {
|
|
name: "Onepanel project";
|
|
url: "https://github.com/onepanelio/core";
|
|
};
|
|
};
|
|
host: "localhost:8888";
|
|
schemes: HTTP;
|
|
schemes: HTTPS;
|
|
consumes: "application/json";
|
|
produces: "application/json";
|
|
produces: "application/octet-stream";
|
|
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: {};
|
|
}
|
|
}
|
|
};
|