Coder Social home page Coder Social logo

byob-turing's Introduction

/api/v1/cohorts

GET parameters: none

    {
      "id": 22,
      "cohort_num": 1810,
      "current_mod": "4",
      "lead_instructor": "Leta Keane",
      "created_at": "2019-03-17T17:39:41.375Z",
      "updated_at": "2019-03-17T17:39:41.375Z"
    }

    response - 200 - array of all cohort objects

POST parameters: see table below

name type required
cohort_num string yes
current_mod string yes
lead_instructor string yes
    response - 200,  the id of the created cohort

/api/v1/cohorts/:id

GET parameters: id - string

    
    {
        "id": 22,
        "cohort_num": 1810,
        "current_mod": "4",
        "lead_instructor": "Leta Keane",
        "created_at": "2019-03-17T17:39:41.375Z",
        "updated_at": "2019-03-17T17:39:41.375Z"
    }

    response - 200 - object representing the specified cohort

/api/v1/students

GET parameters: none

    {
      "id": 127,
      "pronouns": "she/her",
      "first_name": "Hillary",
      "last_name": "Stewart",
      "cohort_id": 22,
      "created_at": "2019-03-17T17:39:41.386Z",
      "updated_at": "2019-03-17T17:39:41.386Z"
    }

    response - 200 - array of all student objects

POST parameters: see table below

name type required
pronouns string yes
first_name string yes
last_name string yes
cohort_id integer yes
    response - 200,  the id of the created cohort

/api/v1/students/:id

GET

parameters: id of student, integer

    {
      "id": 127,
      "pronouns": "she/her",
      "first_name": "Hillary",
      "last_name": "Stewart",
      "cohort_id": 22,
      "created_at": "2019-03-17T17:39:41.386Z",
      "updated_at": "2019-03-17T17:39:41.386Z"
    }

    response - 200 - student object matching specified id

DELETE

parameters: id of student, integer

    a message stating the deletion was successful

    response - 200

byob-turing's People

Contributors

hillstew avatar

Watchers

James Cloos 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.