2021-06-02 20:20:11 +00:00
|
|
|
// Copyright 2020 Prysmatic Labs.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
// This is an optional proto that provides some gRPC gateway metadata for
|
|
|
|
// generating the OpenAPIv2(swagger) header.
|
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package ethereum.eth.v1alpha1;
|
|
|
|
|
|
|
|
import "protoc-gen-openapiv2/options/annotations.proto";
|
|
|
|
|
2021-07-21 21:34:07 +00:00
|
|
|
option go_package = "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1;eth";
|
2021-06-02 20:20:11 +00:00
|
|
|
|
|
|
|
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
|
|
|
|
info: {
|
|
|
|
title: "Ethereum Serenity APIs";
|
|
|
|
version: "v1alpha1";
|
|
|
|
license: {
|
|
|
|
name: "Licenced under Apache 2.0";
|
|
|
|
url: "http://www.apache.org/licenses/LICENSE-2.0";
|
|
|
|
};
|
|
|
|
description: "{{ index . "description" }}";
|
|
|
|
};
|
|
|
|
external_docs: {
|
2021-08-19 18:00:57 +00:00
|
|
|
url: "https://github.com/ethereum/consensus-specs";
|
2021-06-26 19:00:33 +00:00
|
|
|
description: "Ethereum Consensus Specification on Github";
|
2021-06-02 20:20:11 +00:00
|
|
|
};
|
|
|
|
host: "api.prylabs.net",
|
|
|
|
schemes: HTTPS;
|
|
|
|
schemes: WSS;
|
|
|
|
consumes: "application/json";
|
|
|
|
consumes: "application/grpc-web-text";
|
|
|
|
consumes: "application/grpc-web-json";
|
|
|
|
produces: "application/json";
|
|
|
|
produces: "application/grpc-web-text";
|
|
|
|
produces: "application/grpc-web-json";
|
|
|
|
};
|