Users

Get all the tags for your company

GET /tags

Example

GET /tags

[
    {
        "id": 16,
        "title": "Pilote",
        "type": 0
    },
    {
        "id": 17,
        "title": "M├ęcanicien",
        "type": 1
    },
    {
        "id": 18,
        "title": "Scientifique",
        "type": 2
    },
    {
        "id": 19,
        "title": "Politicien",
        "type": 3
    },
    {
        "id": 20,
        "title": "Viper",
        "type": 0
    },
    {
        "id": 21,
        "title": "Co-Pilote",
        "type": 0
    },
    {
        "id": 265,
        "title": "Statut",
        "type": 0
    },
    {
        "id": 266,
        "title": "En mission",
        "type": 0
    },
    {
        "id": 267,
        "title": "Disponible",
        "type": 0
    },
    {
        "id": 269,
        "title": "Localisation",
        "type": 0
    },
    {
        "id": 270,
        "title": "Caprica",
        "type": 0
    },
    {
        "id": 271,
        "title": "Battlestar",
        "color": 0
    },
    {
        "id": 272,
        "title": "Pegasus",
        "color": 0
    },
    {
        "id": 273,
        "title": "Basestar",
        "type": 0
    },
    {
        "id": 274,
        "title": "Colonial one",
        "type": 0
    }
]

Get a single tag information

GET /tags/:id

Example

GET /tags/271

{
    "id": 271,
    "title": "Battlestar",
    "type": 1
}

Return the users belonging to a tag

GET /tags/:id/users

Example

GET /tags/271/users

[
    {
        "id": 1,
        "username": "will.adama@bg.com",
        "email": "will.adama@bg.com",
        "firstname": "Will",
        "lastname": "Adama"
    },
    {
        "id": 6,
        "username": "kara.thrace@bg.com",
        "email": "kara.thrace@bg.com",
        "firstname": "Kara",
        "lastname": "Thrace",
        "kind": "user"
    },
    {
        "id": 7,
        "username": "galen.tyrol@bg.com",
        "email": "galen.tyrol@bg.com",
        "firstname": "Galen",
        "lastname": "Tyrol",
        "kind": "user"
    },
    {
        "id": 8,
        "username": "samuel.anders@bg.com",
        "email": "samuel.anders@bg.com",
        "firstname": "Samuel",
        "lastname": "Anders",
        "kind": "candidate"
    }
]

Return the tags colors

  • 0
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

GET /tags/colors

Example

GET /tags/colors

[
    {
        "type": 0,
        "color": "7A7A7A"
    },
    {
        "type": 1,
        "color": "c82e1e"
    },
    {
        "type": 2,
        "color": "ffa800"
    },
    {
        "type": 3,
        "color": "61ac00"
    },
    {
        "type": 4,
        "color": "50a3d9"
    },
    {
        "type": 5,
        "color": "738DA8"
    },
    {
        "type": 6,
        "color": "b900db"
    },
    {
        "type": 7,
        "color": "956200"
    },

]