Skip to content

Conversation

@yifeili98
Copy link
Member

Relating to issue #2

@yifeili98 yifeili98 requested a review from kis87988 as a code owner April 12, 2020 04:42
@yifeili98 yifeili98 mentioned this pull request Apr 12, 2020
@yifeili98 yifeili98 changed the title Initialize first version of raw API Initiate first version of raw API Apr 12, 2020
400:
description: bad input parameter

/add_course:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to use /api/course/add?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, will work on it in next commit

description: Secured Admin-only calls

paths:
/course_by_quarter:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similarly, would /api/course/get be better? and you can use something like /api/course/get?quarter=2020winter

400:
description: bad input parameter

/course_by_quarter_and_dept:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e.g. /api/course/get?quarter=2020winter&dept=MATH

@yifeili98 yifeili98 requested a review from hk-mp5a3 May 20, 2020 04:44


#################Instructor OPERATIONS###########################
/instructor/get:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to have a URL as “/instructor”, the method as "GET"(for retrieving), "POST"(for adding), etc?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants