From 8bcfbd74e7e62df4639ec67a368775342e6f5a28 Mon Sep 17 00:00:00 2001 From: Yang Guan Date: Wed, 7 Dec 2016 22:36:21 -0800 Subject: [PATCH] Allow ListShelves method to be called without API key This simplifies our quickstart such that reader does not need to go through an extra step to create an API key before calling this API. --- endpoints/bookstore-grpc/api_config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/endpoints/bookstore-grpc/api_config.yaml b/endpoints/bookstore-grpc/api_config.yaml index a7d4c576b8c..ccaee745c7b 100644 --- a/endpoints/bookstore-grpc/api_config.yaml +++ b/endpoints/bookstore-grpc/api_config.yaml @@ -34,3 +34,12 @@ name: bookstore..appspot.com title: Bookstore gRPC API apis: - name: endpoints.examples.bookstore.Bookstore + +# +# API usage restrictions. +# +usage: + rules: + # ListShelves methods can be called without an API Key. + - selector: endpoints.examples.bookstore.Bookstore.ListShelves + allow_unregistered_calls: true