This is a REST API server, representing the data model for xyz-cv-ui, built using ExpressJS and Bluebird.
- Connect your app to XYZ build system; follow the instructions here.
- Install NodeJS.
- Install and run a local copy of the xyz-cv-api from here.
- Open your terminal and do the following:
git clone <this repo>
cd <repo folder>
npm install
node app/server.js
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 the profile for the current user.
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 the profile for the given userId.
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.
TODO
PROMISES ETC.