Skip to content

Commit

Permalink
feat: TNL-10746 include missing api.yaml changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernard Szabo committed Oct 24, 2023
1 parent 6d4f888 commit ab4b8f5
Showing 1 changed file with 62 additions and 11 deletions.
73 changes: 62 additions & 11 deletions swagger/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,68 @@ paths:
requestParameters:
integration.request.path.proxy: "method.request.path.proxy"

# CMS API (Studio ingestion)
"/cms/v1/file_assets/{proxy+}":
$ref: "./cms.yaml#/endpoints/file_assets/{proxy+}"
"/cms/v1/videos/uploads/{proxy+}":
$ref: "./cms.yaml#/endpoints/videos/uploads/{proxy+}"
"/cms/v1/videos/images/{proxy+}":
$ref: "./cms.yaml#/endpoints/videos/images/{proxy+}"
"/cms/v1/video_transcripts/{proxy+}":
$ref: "./cms.yaml#/endpoints/video_transcripts/{proxy+}"
"/cms/v1/xblock/{proxy+}":
$ref: "./cms.yaml#/endpoints/xblock/{proxy+}"
# CMS API (content ingestion)
"cms/v0/file_assets/{proxy+}":
x-amazon-apigateway-any-method:
parameters:
- name: "proxy"
in: "path"
x-amazon-apigateway-integration:
type: "http_proxy"
uri: "https://${stageVariables.cms_host}/api/contentstore/v1/file_assets/{proxy}"
httpMethod: "ANY"
requestParameters:
integration.request.path.proxy: "method.request.path.proxy"

"cms/v0/videos/uploads/{proxy+}":
x-amazon-apigateway-any-method:
parameters:
- name: "proxy"
in: "path"
x-amazon-apigateway-integration:
type: "http_proxy"
uri: "https://${stageVariables.cms_host}/api/contentstore/v1/videos/uploads/{proxy}"
httpMethod: "ANY"
requestParameters:
integration.request.path.proxy: "method.request.path.proxy"

"cms/videos/images/{proxy+}":
x-amazon-apigateway-any-method:
parameters:
- name: "proxy"
in: "path"
x-amazon-apigateway-integration:
type: "http_proxy"
uri: "https://${stageVariables.cms_host}/api/contentstore/v1/videos/images/{proxy}"
httpMethod: "ANY"
requestParameters:
integration.request.path.proxy: "method.request.path.proxy"

"cms/video_transcripts/{proxy+}":
x-amazon-apigateway-any-method:
parameters:
- name: "proxy"
in: "path"
x-amazon-apigateway-integration:
type: "http_proxy"
uri: "https://${stageVariables.cms_host}/api/contentstore/v1/video_transcripts/{proxy}"
httpMethod: "ANY"
requestParameters:
integration.request.path.proxy: "method.request.path.proxy"

"cms/xblock/{proxy+}":
x-amazon-apigateway-any-method:
parameters:
- name: "proxy"
in: "path"
x-amazon-apigateway-integration:
type: "http_proxy"
uri: "https://${stageVariables.cms_host}/api/contentstore/v1/xblock/{proxy}"
httpMethod: "ANY"
requestParameters:
integration.request.path.proxy: "method.request.path.proxy"



# edX extension point. Lists the vendors in use and their specific
# parameters that are expected by upstream refs.
Expand Down

0 comments on commit ab4b8f5

Please sign in to comment.