Required. The name of the spec whose contents need to be retrieved. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of SpecContents.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
IAM Permissions
Requires the following IAM permission on the name resource:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-06 UTC."],[[["This endpoint retrieves the contents of a specified API spec using a GET request."],["The request URL follows gRPC Transcoding syntax and requires a `name` path parameter to identify the spec."],["The request body must be empty when requesting the spec contents."],["A successful response returns an instance of `SpecContents`."],["Access to this endpoint requires the OAuth scope `https://www.googleapis.com/auth/cloud-platform` and the IAM permission `apihub.specs.get`."]]],[]]