Gender

List Genders

GET https://api.idol.io/api/v2/genders

Headers

Name
Type
Description

Authorization*

string

Bearer <token>

Content-Type*

string

application/vnd.api+json

{
  "data": [
    {
      "id": "<ID>",
      "type": "genders",
      "links": {
        "self": "https://api.idol.io/api/v2/genders/<ID>"
      },
      "attributes": {
        "name": "Male"
      }
    },
    {
      "id": "<ID>",
      "type": "genders",
      "links": {
        "self": "https://api.idol.io/api/v2/genders/<ID>"
      },
      "attributes": {
        "name": "Female"
      }
    }
  ],
  "meta": {
    "record-count": 2,
    "page-count": 1
  },
  "links": {
    "first": "https://api.idol.io/api/v2/genders?page%5Bnumber%5D=1&page%5Bsize%5D=3",
    "last": "https://api.idol.io/api/v2/genders?page%5Bnumber%5D=1&page%5Bsize%5D=3"
  }
}

Get Gender

GET https://api.idol.io/api/v2/genders/:id

Path Parameters

Name
Type
Description

id*

number

ID of the Gender

Headers

Name
Type
Description

Authorization*

string

Bearer <token>

Content-Type*

string

application/vnd.api+json

{
  "data": {
    "id": "<ID>",
    "type": "genders",
    "links": {
      "self": "https://api.idol.io/api/v2/genders/<ID>"
    },
    "attributes": {
      "name": "Male"
    }
  }
}

Last updated