Skip to content

User Detail API

Christopher Posada edited this page May 9, 2019 · 10 revisions

Info

Endpoint

api/users/{id} (give me details on the user with {id} )

Response

{
    "id": 1,
    "firstName": "Chris",
    "lastName": "Posada",
    "username": "cposada@here.there",
    "roleId": 1,
    "role": {
        "name": "Creative Technologist",
        "id": 1
    },
    "locationId": 1,
    "location": {
        "name": "Brooklyn",
        "id": 1
    },
    "deactivated": false,
    "imageUrl": "/api/images/4/17/19/bfd9febc-a6a0-4dd1-abf1-1e06fe85acb1.png",
    "directoryName": "Christopher Posada (Digital)",
    "userInterests": [{
        "name": "Dogs",
        "id": 1
    },{
        "name": "Trash Pandas",
        "id": 2
    }],
    "workshopsAttending": [
        {
            "workshopId": 1,
            "name": "So you wanna do a design sprint?",
            "imageUrl": null,
            "startDate": "2019-04-11T17:02:00.87"
        }
    ],
    "workshopsTeaching": [
        {
            "workshopId": 1,
            "name": "So you wanna do a design sprint?",
            "imageUrl": null,
            "startDate": "2019-04-11T00:00:00"
        },
        {
            "workshopId": 2,
            "name": "How to be a pirate",
            "imageUrl": null,
            "startDate": "2019-04-11T00:00:00"
        }
    ]
}

Clone this wiki locally