-
Notifications
You must be signed in to change notification settings - Fork 1
API
sfiquet edited this page Mar 20, 2018
·
4 revisions
- Users API
- Projects API
For now the only format supported will be JSON.
/api/users
/api/users/:id
Proposed structure for user:
-
displayName
: string -
name
: string -
stack
: array of strings, similar to keywords in project -
dateCreated
: date the account was created, read-only -
projectsOwned
: array of projects they created -
projectsJoined
: array of projects they joined as a team member -
email
: string in email format -
github
: string in url format? -
dateFormat
: preferred format for displaying dates (do we need this?)
POST: create a user (register)
GET: get the list of all users - not needed
PUT: bulk update of users - not needed
DELETE: delete all users - not needed
GET: get a specific user's details
PUT: update a specific user
DELETE: delete a specific user
POST
/api/projects
/api/projects/:id
Structure of a project:
-
title
: string - not too long, should fit on one to two lines on screen -
author
: should identify the user who created it -
keywords
: array of strings -
description
: text -
repository
: text (url)
GET: get a list of all projects
POST: create a new project
PUT: bulk update of projects - not needed
DELETE: delete all projects - not needed
GET: get a specific project
PUT: update a specific project
DELETE: delete a specific project
POST