Experience Endpoint - ShengHuaWu/cv-soar GitHub Wiki

Get all experiences of a user

method: GET

path: /users/:user_id/experiences

success response example

{
    "experiences": [
        {
            "location": "Berlin, Germany",
            "id": "1",
            "description": "",
            "title": "iOS Developer",
            "links": "",
            "user_id": 1,
            "company": "Conichi",
            "start_date": "2017-09-17T00:00:00.000Z",
            "end_date": null
        }
    ]
}

Create an experience of a user

method: POST

path: /users/:user_id/experiences

parameters:

title: String
company: String
location: String
start_date: timestamp
end_date: timestamp
user_id: Int

parameter example:

{
	"title": "iOS Developer",
	"company": "Nogle",
	"location": "Taipei City, Taiwan",
	"start_date": 1435708800,
	"end_date": 1467331200,
	"user_id": "1"
}

success response example:

{
    "experience": {
        "location": "Taipei City, Taiwan",
        "id": "2",
        "description": "",
        "title": "iOS Developer",
        "links": "",
        "user_id": "1",
        "company": "Nogle",
        "start_date": "2015-07-01T00:00:00.000Z",
        "end_date": "2016-07-01T00:00:00.000Z"
    }
}

Delete an experience of a user

method: DELETE

path: /user/:user_id/experiences/:experience_id

success response example:

{
    "experience": {
        "location": "Taipei City, Taiwan",
        "id": "2",
        "description": "",
        "title": "iOS Developer",
        "links": "",
        "user_id": 1,
        "company": "Nogle",
        "start_date": "2015-07-01T00:00:00.000Z",
        "end_date": "2016-07-01T00:00:00.000Z"
    }
}