Role Category

A role category is a profession or job title.

Search

Search for a role category. This is a open endpoint. No authentication is needed. It also supports autocompletion.

Request

GET /api/role-categories/search?language=en&name=chemi
Host:   api.happyrmatch.com
Accept: application/vnd.api+json

The language parameter must be a valid ISO-639 code.

Response

HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type:  application/vnd.api+json
Date:          Wed, 07 Aug 2019 08:40:05 GMT

{
    "data": [
        {
            "type": "role-category",
            "id": "144256dc-b4a6-450a-b54f-890beebeefb7",
            "attributes": {
                "language": "en",
                "name": "Chemist"
            }
        },
        {
            "type": "role-category",
            "id": "e6e37b3a-dbb9-4c9a-9898-b43f7733d5e6",
            "attributes": {
                "language": "en",
                "name": "Chemical expert"
            }
        }
    ]
}

Index

You may also get all role categories. This is useful when you want to download the database and process it locally. It is recommended to do this one or two times every month to always get the latest data.

Request

GET /api/roles/all-categories
Host:   api.happyrmatch.com
Accept: application/vnd.api+json

Response

HTTP/1.0 200 OK
Cache-Control: no-cache, private
Content-Type:  application/vnd.api+json
Date:          Wed, 07 Aug 2019 08:40:05 GMT

{
    "data": {
        "type": "role-category-database",
        "id": "58faa6fadb5237c87ed1fa897d040edf205fa6bf",
        "attributes": {
            "last-modified": "2020-01-07T16:33:17+00:00",
            "rows": [
                {
                    "id": "0e33a525-b910-4b0e-8d6e-37d04d88530b",
                    "name": "Receptionist",
                    "language": "sv"
                },
                {
                    "id": "6b81b374-d773-494f-9d4e-24df8e6952f3",
                    "name": "Ordningsvakt",
                    "language": "sv"
                }
            ]
        }
    }
}