GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Batch Quarter & Year Parameters Are URL-Specific · Issue #13 · OpenCourseAPI/OpenCourseAPI

Batch Quarter & Year Parameters Are URL-Specific #13

New issue
Copy link
New issue
Copy link
Open
Open
Batch Quarter & Year Parameters Are URL-Specific#13
Copy link

Description

@Pandawan
Pandawan
opened on Dec 15, 2020
Issue body actions

When making a batch request (/:campus/classes), the quarter and year parameters are passed in the URL (as query parameters) rather than in the class object of the resources. This means that when requesting for multiple classes in different quarters or different years, a separate request is required. It'd make more sense if all of these could be grouped into one batch request.

Ideally, the batch endpoint could take resources like these:

{
  campus: string,
  CRN: number,
  year: number,
  quarter: 'summer' | 'fall' | 'winter' | 'spring'
}

Retaining the same possible combinations: CRN, dept, or dept + course.
I also threw campus in there for the same reason; the endpoint would therefore be /classes.

It'd be more efficient (one batch request for any data in the entire database) and would probably allow for more use-cases.

Reacted by Madhav Varshney

Activity

  1. madhavarshney commented on Dec 15, 2020

    @madhavarshney
    madhavarshney
    on Dec 15, 2020
    Member
    More actions

    We may want to think about the max # of individual results the batch endpoint should accept and the max amount of data it should send.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.