robot-contrib a9eaa1d528 Update contrib/libs/googleapis-common-protos to 1.63.0 | 7 months ago | |
---|---|---|
.. | ||
README.md | 2 years ago | |
annotations.proto | 2 years ago | |
auth.proto | 1 year ago | |
backend.proto | 1 year ago | |
billing.proto | 1 year ago | |
client.proto | 7 months ago | |
config_change.proto | 1 year ago | |
consumer.proto | 2 years ago | |
context.proto | 1 year ago | |
control.proto | 1 year ago | |
distribution.proto | 1 year ago | |
documentation.proto | 7 months ago | |
endpoint.proto | 1 year ago | |
error_reason.proto | 7 months ago | |
field_behavior.proto | 7 months ago | |
field_info.proto | 7 months ago | |
http.proto | 1 year ago | |
httpbody.proto | 1 year ago | |
label.proto | 1 year ago | |
launch_stage.proto | 1 year ago | |
log.proto | 1 year ago | |
logging.proto | 1 year ago | |
metric.proto | 1 year ago | |
monitored_resource.proto | 7 months ago | |
monitoring.proto | 1 year ago | |
policy.proto | 1 year ago | |
quota.proto | 1 year ago | |
resource.proto | 1 year ago | |
routing.proto | 1 year ago | |
service.proto | 1 year ago | |
source_info.proto | 1 year ago | |
system_parameter.proto | 1 year ago | |
usage.proto | 1 year ago | |
visibility.proto | 1 year ago |
This folder contains the schema of the configuration model for Google's internal API serving platform, which handles routing, quotas, monitoring, logging, and the like.
Google refers to this configuration colloquially as the "service config",
and the service.proto
file in this directory is the entry point for
understanding these.
To be honest, we probably open sourced way too much of this (basically by
accident). There are a couple files in here you are most likely to be
interested in: http.proto
, documentation.proto
, auth.proto
, and
annotations.proto
.
The http.proto
file contains the Http
message (which then is wrapped
in an annotation in annotations.proto
), which provides a specification
for REST endpoints and verbs (GET
, POST
, etc.) on RPC methods.
We recommend use of this annotation for describing the relationship
between RPCs and REST endpoints.
The documentation.proto
file contains a Documentation
message which
provides a mechanism to fully describe an API, allowing a tool to build
structured documentation artifacts.
The auth.proto
file contains descriptions of both authentication rules
and authenticaion providers, allowing you to describe what your services
expect and accept from clients.
Google provides a tool called api-compiler, which is a tool that accepts
a protocol buffer descriptor and a YAML file specifying some of the
options described in service.proto
, and outputs a much more thorough
Service
descriptor based on the information it infers from the protos
themselves.