Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
course-discovery
Commits
834ec7f2
Commit
834ec7f2
authored
Apr 26, 2016
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added catalog courses endpoint to API gateway
ECOM-4285
parent
819f6ae4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
4 deletions
+71
-4
api-compact.yaml
+15
-2
api.yaml
+56
-2
No files found.
api-compact.yaml
View file @
834ec7f2
...
...
@@ -83,14 +83,27 @@ endpoints:
uri
:
"
https://${stageVariables.discovery_host}/v1/catalogs/"
# /v1/catalogs/{id}
catalog
s
ById
:
catalogById
:
get
:
produces
:
*produces
parameters
:
-
*auth_header
-
*id_parameter
operationId
:
"
get_catalog
s
_by_id"
operationId
:
"
get_catalog_by_id"
responses
:
*responses
x-amazon-apigateway-integration
:
<<
:
*apigateway_integration_with_id_parameter
uri
:
"
https://${stageVariables.discovery_host}/v1/catalogs/{id}/"
# /v1/catalogs/{id}/courses
catalogCourses
:
get
:
produces
:
*produces
parameters
:
-
*auth_header
-
*id_parameter
operationId
:
"
get_catalog_courses"
responses
:
*responses
x-amazon-apigateway-integration
:
<<
:
*apigateway_integration_with_id_parameter
uri
:
"
https://${stageVariables.discovery_host}/v1/catalogs/{id}/courses/"
api.yaml
View file @
834ec7f2
...
...
@@ -52,9 +52,9 @@ endpoints:
statusCode
:
"
400"
type
:
http
uri
:
"
https://${stageVariables.discovery_host}/v1/catalogs/"
catalog
s
ById
:
catalogById
:
get
:
operationId
:
get_catalog
s
_by_id
operationId
:
get_catalog_by_id
parameters
:
-
in
:
header
...
...
@@ -106,3 +106,57 @@ endpoints:
statusCode
:
"
400"
type
:
http
uri
:
"
https://${stageVariables.discovery_host}/v1/catalogs/{id}/"
catalogCourses
:
get
:
operationId
:
get_catalog_courses
parameters
:
-
in
:
header
name
:
Authorization
required
:
true
type
:
string
-
in
:
path
name
:
id
required
:
true
type
:
number
produces
:
-
application/json
-
application/csv
responses
:
200
:
description
:
OK
400
:
description
:
"
Bad
Request"
401
:
description
:
Unauthorized
403
:
description
:
Forbidden
404
:
description
:
"
Not
Found"
429
:
description
:
"
Too
Many
Requests"
500
:
description
:
"
Internal
Server
Error"
x-amazon-apigateway-integration
:
httpMethod
:
GET
requestParameters
:
integration.request.header.Authorization
:
method.request.header.Authorization
integration.request.path.id
:
method.request.path.id
responses
:
200
:
statusCode
:
"
200"
401
:
statusCode
:
"
401"
403
:
statusCode
:
"
403"
404
:
statusCode
:
"
404"
429
:
statusCode
:
"
429"
500
:
statusCode
:
"
500"
default
:
statusCode
:
"
400"
type
:
http
uri
:
"
https://${stageVariables.discovery_host}/v1/catalogs/{id}/courses/"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment