Examples of using Root resource in English and their translations into Spanish
{-}
-
Colloquial
-
Official
The root resource ID for a RestApi resource. .
The default path value is/,i.e., the root resource of an API.
For the root resource(/), you can omit the path field.
This starts the beta stage GET request on the root resource of the API.
The root resource is special in that it does not have any parent.
A newly created RestApi comes with the API's root resource(/) of the API.
The API's root resource is appended after the stage name.
To support this, you can add/food,/toys, and other resources under the root resource.
The Invoke URL link points to the root resource of the API in its beta stage.
The root resource identifier is the id value associated with the path value of"/.
The Resources tree shows the root resource(/) without any methods.
The root resource ID for a RestApi resource, such as a0bc123d4e.
For this tutorial,use the root resource(/) as the parent resource. .
Navigating to the URL by choosing the link calls the beta stage GET method on the root resource.
Create an API,create a GET method on the API's root resource, if you have not already done so.
To get the API root resource identifier, invoke the restapi: resources link-relation.
When the resource path is not specified,the resource is assumed to be the root resource.
GET/: for read access of the API's root resource that is not integrated with any backend endpoint.
The root resource is relative to the API's base URL, which consists of the API endpoint and a stage name.
For the PetStore sample API, the root resource(/) exposes the pet store.
For the root resource(/), choose Create Method from the Actions drop-down menu, and then choose GET.
For illustration purposes,we will create an API with only a GET method on the root resource(/) and integrate the method with the VpcLink.
For root resource methods,specify the RestApi root resource ID, such as{" Fn::GetAtt":"MyRestApi","RootResourceId.
For the preceding examples,/{proxy+}refers to any resources under the root resource except for the/parent[/*] resources. .
Under the API's root resource, create a child resource named Folder and set the required Resource Path as/{folder.
Each item lists the identifiers of the resource( id) and, except for the root resource, its immediate parent( parentId), as well as the resource name pathPart.
If the API's root resource exposes a GET method without requiring user authentication, you can call the method by clicking the Invoke URL link.
API Gateway will automatically create a root resource for you, even if it is not explicitly declared in your definition file.
To add documentation for the root resource of an API, add a DocumentationPart resource targeted for the corresponding Resource resource. .
You need to specify the id value of this root resource to append a child resource, and to add a method on the root resource.
