Giter VIP home page Giter VIP logo

g-connect-backend's Introduction

G-Connect-Backend

This repo contains API information for Galvanize_Connect_react application.

TODO: required endpoints list

  • desired routing structure
  • endpoint roots (eg; campuses; cohorts; profiles)
  • admin only endpoints;
  • instructor only endpoints;
  • short endpoint requirement description, see example below

router.post('/login', auth.login) .get('/users', usersCtrl.get) .get('/users/:id', usersCtrl.byid) .delete('/users/:id', usersCtrl.delete)

    .get('/cohorts', cohortsCtrl.get)
    .get('/cohorts/:id', cohortsCtrl.byid)
    .post('/cohorts', cohortsCtrl.post)
    .delete('/cohorts/:id', cohortsCtrl.delete)

    .get('/profiles', cohortsCtrl.get)
    .get('/profiles/cohorts/members/:cohort_id', cohortsCtrl.members);


    Writing desired routes for student user

router.post('/login', auth.login)
  .get('/home', homeCtrl.get)
  .get('/posts', get all Posts)
  .get('/comments', all user's comments)
  .get('/jobs', get all jobs)
  .post('/')

  .get('/user/:id/profile', profileCtrl.sbyid)//get a use's profile based on user/id
  .post('/user/:id/profile/skills', profileCtrl.posts )// get user profile by their id and allows to add skills
  .post('/user/:id/profile/projects', profileCtrl.posts)//get user profile by id and allows to add projects
  .put('/user/:id/profile/skills', skillsCtrl.put)
  .put('/user/:id/profile/projects', projectsCtrl.put)
  .delete('/user/:id/profile/skill', profileCtrl.delete)// deletes user skill


cohort routes
  .get('/cohort_members/:cohort_id/users', cohortsCtrl.get)
  .get('/cohort_members/:cohort_id/users/user_id', cohortsCtrl.get )
  .post('/cohort')


  how do we make calls for the social media links that the user give us.

  route.get('/users_social_network/user_id/:id', users_social_network )
        .get('/users_social_network/')

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.