Coder Social home page Coder Social logo

school-api's Introduction

School API Projectgr

For this exercise, we'll be writing a simple website which simulates a school's website, complete with grades, homework, and classes.

Since we only have so much time (and we haven't taught everything yet), we'll make a few assumptions that will speed up this exercise:

  • There is only one user, and you don't have to handle authentication
  • There are no limits or restrictions on the classes the user can take
  • None of the data needs to be persistent - don't save anything to file, nor a database.

Here are some facts about the school simulation:

  • The school has classes
  • A student can sign up for some or all of these classes
  • A student should only be able to sign up for a class once
  • A student in a class has a grade
  • A student in a class has a homework status for that class: "done" or "not done"

API Specification:

/grades

GET /grades

Returns the current grades for the user in JSON format.

{
    algebra : "A",
    "p.e." : "C",
    english : "B"
}

/schedule

GET /schedule

Return the current schedule for the user in JSON format.

["algebra", "p.e.", "english"]

POST /schedule [class_name]

A POST to /schedule with a post document variable called "class_name" should add that class to the user's schedule.

/homework

GET /homework/:class_name

Returns whether the student has completed their homework for the class matching class_name

POST /homework/

Sets that the student has completed their homework for this course

GET /homework/

Gets the current homework completion status for all of the student's classes

school-api's People

Contributors

lnerenbergdev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.