Skip to content

RosHartigan/ldc_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ldc_example

###LDC Code sample using node.js and postgres.

Demonstrating simple user/course api.

// Get list of all courses
GET 	/api/courses

// Get list of all users
GET 	/api/users			

// Get info for specific user
GET 	/api/users/:user_id			

// Get list of courses for user with given enrollment status
GET 	/api/users/:user_id/courses?status=:status	

// Delete user's course enrollment
DELETE 	/api/users/:user_id/courses/:course_id	

// Set user's course enrollment status
POST 	/api/users/:user_id/courses/:course_id/status=:status	

To install:

Install postgres and create empty database ldc.

npm install

To run:

npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published