Skip to content

jwikberg/xyz-cv-model

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XYZ CV API

What?

This is a REST API server, representing the data model for xyz-cv-ui, built using ExpressJS and Bluebird.

Getting started

  1. Connect your app to XYZ build system; follow the instructions here.

TODO

Development

  1. Install NodeJS.
  2. Install and run a local copy of the xyz-cv-api from here.
  3. Open your terminal and do the following:
git clone <this repo>

cd <repo folder>

npm install

node app/server.js

API

NOTE Every request to the api needs to contain two headers, containing x-forwarded-user and x-forwarded-email. The is used by the server to create users upon connecting.

GET /profile/current

Get the profile for the current user.

Responses

200 - the profile, as an object, containing all nested objects connected to the user and the user itself.

500 - Something went wrong when querying the meta backend.

GET /profile/:userId

Get the profile for the given userId.

Responses

200 - the profile, as an object, containing all nested objects connected to the user and the user itself.

500 - Something went wrong when querying the meta backend.

License

TODO

PROMISES ETC.

About

model api for the xyz-cv project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%