Skip to content

CSUMB-SP17-CST499/otter-share

Repository files navigation

OtterShare

Welcome to OtterShare
This repo houses both server and native files, in our case Android.

API Documentation

Below is a brief description on our endpoints
Note: Some of our endpoints are still under construction, therefore this documentation will be updated regularly

GET /

Eventually, when our development team has more time, we plan to serve up an active website to go with our app. As of now we serve up a welcome message at our root.

POST /createUser

Creates a user with default fields
JSON to post:
"name": "name here",
"email": "email-here",
"password": "password-here"
Response
Creation successful! To continue, check your email to verify account!

POST /createUser/completeProfile

Completes a user profile with a few more fields
JSON to post
"api-key" : "api-key-here",
"schedule" : "schedule-here",
"carMakeModel": "car-make-and-model-here"
Response
Success! Profile complete!

POST /login

Takes username and email of registered user for login
JSON to post:
"email" : "enter-email-here",
"password" : "password-here"
Response
Info on current user along with authentication key for requests.

GET /verify/{email-key}

Takes verification key sent to user email account, activates user account
JSON to append
"key" : "Alpha-numeric key here"
Response
Verification message response of true or false

POST /myProfile

Takes api-key and email of current users account, and returns their profile as seen by themselves
JSON to post:
"email" : "csumb-email-here",
"api_key" : "api-key-here"
Response
Returns json formatted profile information including schedule

POST /users

Takes api-key of current user and email of a certain account, and returns their public profile information
JSON to post:
"email" : "csumb-email-here",
"api_key" : "api-key-here"
Response
Returns json formatted profile information excluding schedule

POST /registerPass

Creates a pass for a user from given info (api_key, email-address, lotLocation, price and notes )
JSON to post:
"api_key" : "api-key-here",
"email": "email-here",
"lotLocation" : "lot-location-here",
"price" : "price-here",
"notes" : "notes-here"
Response
Success: 'pass-id'

POST /activeUsers

Returns active passes based on given lot location : api_key, keyword (Either 'all' or a specific lot)
JSON to post:
"api_key" : "api-key-here",
"keyword": "keyword-here"

Response
Pass(es) information
UPDATE: Now returns the average rating of the user tied to pass, as avgRating.

About

OtterShare repo with both front and backend sources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published