mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-24 08:25:31 +00:00
docs
This commit is contained in:
@@ -5,12 +5,11 @@ package holidays;
|
||||
option go_package = "./proto;holidays";
|
||||
|
||||
service Holidays {
|
||||
// Get the list of countries that are supported by this API
|
||||
rpc Countries(CountriesRequest) returns (CountriesResponse) {}
|
||||
// List the holiday dates for a given country and year
|
||||
rpc List(ListRequest) returns (ListResponse) {}
|
||||
}
|
||||
|
||||
// Get the list of countries that are supported by this API
|
||||
message CountriesRequest {
|
||||
}
|
||||
|
||||
@@ -25,6 +24,7 @@ message Country {
|
||||
string name = 2;
|
||||
}
|
||||
|
||||
// List the holiday dates for a given country and year
|
||||
message ListRequest {
|
||||
// The 2 letter country code (as defined in ISO 3166-1 alpha-2)
|
||||
string country_code = 1;
|
||||
|
||||
Reference in New Issue
Block a user