Skip to content

iRAMBI/API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API

DO NOT USE VS's INTEGRATED GIT. BE A CONSOLE WIZARD.

Ben's Dev API base URL: api.thunderchicken.ca/

-note if this route is not working try using api.thunderchicken.ca:8080

#Setup

  1. Download the repo. Load it into VS. Build the project. You will need to configure your connections to your database and generate a Web.config file
  2. In App_Data is a build script. run it in MSSQL to load your database. The script needs a user named ben and alan to work correctly. Add them as users with read / write / update / delete access to the DB.
  3. You may need to create a user that is both a windows authenticated user in MSSQL and a ApplicationPool user in IIS depending on your configuration setup. The project was last setup with the DB being localhost so assume any set settings in the project are expecting that

#Routes Reference See oneNote For Full Documentation

##Authentication ####POST Authenticate Route: /api/auth
Body:

{ 
  "email": String,
  "password": String
}

####POST Submit Apple Toke Route: /api/auth/:userid/appletoken/:appletoken/:token
Body: There is no body content to send

##Newsfeed ####GET Standard Newsfeed Route: GET /api/newsfeed/:userid/standard/:token
Body: There is no body content to send ####GET Critical Newsfeed Route: GET /api/newsfeed/critical
Body: There is no body content to send ####GET Course Section Newsfeed Route: GET /api/newsfeed/:userid/coursesection/:coursesectionid/:token Body: There is no body content to send ####GET Single News Article Route: GET /api/newsfeed/:userid/article/:newsid/:token
Body: There is no body content to send ####POST News Article Route: POST /api/newsfeed/:userid/article/:token
Body:

{
  "coursesectionid": Number,
  "title": String,
  "content": String,
  "priority": String,
  "expirydate": DateTime
}

####POST Comment Route: POST /api/newsfeed/:userid/article/:newsid/comment/:token
Body:

{
  "content" : String
}

##MyCourses ####GET All Courses Belonging to Logged In User Route: GET /api/mycourses/:userid/:token
Body: There is no body content to send

##Contacts ####Get All Contacts Route: GET /api/contacts/:userid/:token
Body: There is no body content to send ####Get Specific Contact Route: GET /api/contacts/:userid/single/:contactid/:token
Body: There is no body content to send ####Get Postable Contacts Route: GET /api/contacts/:userid/postable/:token
Body: There is no body content to send ####Post Search for Contacts Route: POST /api/contacts/:userid/search/:token Body:

{
  "searchContent": String
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published