Download data/lib/python3.10/site-packages/awscli/examples/apigateway/create-model.rst from ZTWHHH/envs_1: direct link, hf CLI and curl.
- Browser
- Download file 804 Bytes
-
https://huggingface.co/datasets/ZTWHHH/envs_1/resolve/main/data/lib/python3.10/site-packages/awscli/examples/apigateway/create-model.rst
- Command line
-
hf download hf://datasets/ZTWHHH/envs_1/data/lib/python3.10/site-packages/awscli/examples/apigateway/create-model.rst
-
curl -L -o create-model.rst https://huggingface.co/datasets/ZTWHHH/envs_1/resolve/main/data/lib/python3.10/site-packages/awscli/examples/apigateway/create-model.rst
804 Bytes
| **To create a model for an API** | |
| Command:: | |
| aws apigateway create-model --rest-api-id 1234123412 --name 'firstModel' --description 'The First Model' --content-type 'application/json' --schema '{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "firstModel", "type": "object", "properties": { "firstProperty" : { "type": "object", "properties": { "key": { "type": "string" } } } } }' | |
| Output:: | |
| { | |
| "contentType": "application/json", | |
| "description": "The First Model", | |
| "name": "firstModel", | |
| "id": "2rzg0l", | |
| "schema": "{ \"$schema\": \"http://json-schema.org/draft-04/schema#\", \"title\": \"firstModel\", \"type\": \"object\", \"properties\": { \"firstProperty\" : { \"type\": \"object\", \"properties\": { \"key\": { \"type\": \"string\" } } } } }" | |
| } | |