aws apigateway get-rest-api --rest-api-id <api_id> --> gives you a specific API but I want to know is there a way that u can get an API by its name using the aws cli.
I have already tried this command but didn't work.
aws apigateway get-rest-api --rest-api-name <api_name>