Skip to content

Commit a7f00ad

Browse files
author
AWS
committed
AmplifyBackend Update: Updated GetBackendAPIModels response to include ModelIntrospectionSchema json string
1 parent 49feee5 commit a7f00ad

File tree

3 files changed

+13
-27
lines changed

3 files changed

+13
-27
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AmplifyBackend",
4+
"contributor": "",
5+
"description": "Updated GetBackendAPIModels response to include ModelIntrospectionSchema json string"
6+
}

services/amplifybackend/src/main/resources/codegen-resources/endpoint-rule-set.json

+1-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"parameters": {
44
"Region": {
55
"builtIn": "AWS::Region",
6-
"required": false,
6+
"required": true,
77
"documentation": "The AWS region used to dispatch the request.",
88
"type": "String"
99
},
@@ -52,15 +52,6 @@
5252
"ref": "Endpoint"
5353
}
5454
]
55-
},
56-
{
57-
"fn": "parseURL",
58-
"argv": [
59-
{
60-
"ref": "Endpoint"
61-
}
62-
],
63-
"assign": "url"
6455
}
6556
],
6657
"type": "tree",

services/amplifybackend/src/main/resources/codegen-resources/service-2.json

+6-17
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@
553553
"documentation": "<p>400 response</p>"
554554
}
555555
],
556-
"documentation": "<p>Generates a model schema for existing backend API resource.</p>"
556+
"documentation": "<p>Gets a model introspection schema for an existing backend API resource.</p>"
557557
},
558558
"GetBackendAuth": {
559559
"name": "GetBackendAuth",
@@ -2915,22 +2915,6 @@
29152915
}
29162916
}
29172917
},
2918-
"GetBackendAPICodegenRespObj": {
2919-
"type": "structure",
2920-
"members": {
2921-
"Models": {
2922-
"shape": "__string",
2923-
"locationName": "models",
2924-
"documentation": "<p>Stringified JSON of the datastore model.</p>"
2925-
},
2926-
"Status": {
2927-
"shape": "Status",
2928-
"locationName": "status",
2929-
"documentation": "<p>The current status of the request.</p>"
2930-
}
2931-
},
2932-
"documentation": "<p>The response object for this operation.</p>"
2933-
},
29342918
"GetBackendAPIModelsRequest": {
29352919
"type": "structure",
29362920
"members": {
@@ -2971,6 +2955,11 @@
29712955
"shape": "Status",
29722956
"locationName": "status",
29732957
"documentation": "<p>The current status of the request.</p>"
2958+
},
2959+
"ModelIntrospectionSchema": {
2960+
"shape": "__string",
2961+
"locationName": "modelIntrospectionSchema",
2962+
"documentation": "<p>Stringified JSON of the model introspection schema for an existing backend API resource.</p>"
29742963
}
29752964
}
29762965
},

0 commit comments

Comments
 (0)