Import a JSON file to AWS API Gateway to update an existing definition.
Before you begin
- You have access to AWS API Gateway.
- You have installed AWS CLI. For more information, see Installing the AWS CLI.
- You have exported your API definition as a JSON file.
- You have uploaded a previous version of the API definition to AWS API Gateway.
Procedure
Results
Your API definition is merged or overwritten, depending on the mode you defined. You can check your update on the AWS API Gateway console.
In this example, a first version of the API definition containing only the
/contacts
resource and its operations was uploaded. Then, a
second version with the /companies
resource was uploaded and merged
with the previous version.
For more information about the put-rest-api
command, see the AWS documentation.