Coder Social home page Coder Social logo

session-schedular-assignment-3's Introduction

session-schedular-assignment-3

#[Points]

  1. i need to built a middleware indicating to differentiate between a student and teacher(Admin)

#[APIs [ Input and about ]]

  • addCourse/updateCourse - POST method input - course name, coach name, description

  • getCourseByName - GET method input - couse name

  • getAllCourse - GET method input - none

  • addSession/updateSession - POST method input - coach , title, agenda. link, start_time, end_time

  • getCourseSessions (paginated api) - GET method input - none

  • deleteSession- DELETE method input - session name/id

#[Models/Tables]

  1. course course_id, coach_id, course name, coach name, description,

  2. coach/user (optional) coach_id, coach_name, about, mail, password

  3. session session_id, coach , title, agenda. link, start_time, end_time

#[TestCase]

  • addCourse/ updateCourse
  1. course name unique - search in db - same name - error [same course exist]
  • getCourseByName
  1. search course - not available [course not available]
  • getAllCourse
  1. query - not course available (add course to show)
  • addSession/ updateSession
  1. if same session exist at time slot - error ( try choosing any other time slot )
  • getCourseSessions (paginated api)
  1. search session by course - not available [course not available]
  2. query - error (session not available)
  • deleteSession
  1. get the session id - not available session - error (session not found)

Notes:

  1. [paginated API: means divide the result of a query into multiple parts just like Flipkart here 20 products is listed at a time then we can use next page to see next 20 products ]
  2. two-session should not collide

Postman screenshot Add a Course Diagram 1 : Add a Course

Update the Course Diagram 2 : Update the Course

Get All the Course Diagram 3 : Get All the Course

Get Course by Name Diagram 4 : Get Course by Name

Add session Diagram 5 : Add session

Add session - collide1 Add session - collide1 Add session - html Add session - css Diagram 6 : Trying to Add session when their is collision with another session

Update Session Diagram 7 : Update Session using Id

Update Session Diagram 8 : Trying to update a existing session that is colliding with another session

get course1 get course2 get course2 Diagram 9 : Display session for a particular course - paginated api (course 1)

Delete Session Diagram 10 : delete a session using Id

session-schedular-assignment-3's People

Contributors

cyrax21 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.