github.com/kaydxh/golang@v0.0.131/pkg/grpc-gateway/date/date.yaml (about)

     1  # The configuration schema is defined by service.proto file
     2  # https://github.com/googleapis/googleapis/blob/master/google/api/service.proto
     3  type: google.api.Service
     4  config_version: 3
     5  
     6  #
     7  # Name of the service configuration.
     8  #
     9  name: sea.date.com
    10  
    11  #
    12  # API title to appear in the user interface (Swagger).
    13  #
    14  title: Sea Service Date API
    15  
    16  #
    17  # API usage restrictions.
    18  #
    19  usage:
    20    rules:
    21      # Allow unregistered calls for all methods.
    22      - selector: "*"
    23        allow_unregistered_calls: true
    24  
    25  #
    26  # HTTP rules define translation from HTTP/REST/JSON to gRPC. With these rules
    27  # HTTP/REST/JSON clients will be able to call the DeviceManage service.
    28  #
    29  http:
    30    rules:
    31      #
    32      # HTTP/REST/JSON clients can call the 'ListShelves' method of the Bookstore
    33      # service using the GET HTTP verb and the '/shelves' URL path. The response
    34      # will the JSON representation of the 'ListShelvesResponse' message.
    35      #
    36      # Client example (Assuming your service is hosted at the given 'DOMAIN_NAME'):
    37      #   curl http://DOMAIN_NAME/v1/shelves
    38      #
    39      - selector: sea.api.v1.date.DateService.Now
    40        # just for gin, ignore this path for grpc_gateway
    41        additional_bindings:
    42          - post: '/Now'
    43            body: "*"