Get custom alphabet

In order to get the character set of a custom alphabet known by name, the name of the alphabet MUST be sent as HTTP request path parameter.

The character set of the custom alphabet is returned from the remote service in the JSON response body as data attributes chars together with other attribute–value pairs.

Request endpoint

GET SERVER:PORT/api/alphabets/UPPER_VOWELS

Response status

200

Request headers

Accept:application/vnd.api+json
Content-Type:application/vnd.api+json
Session-Key:SSSSSSSS-SSSS-SSSS-SSSS-SSSSSSSSSSSS

Response headers

Transfer-Encoding:chunked
Connection:keep-alive
Accept:application/vnd.api+json
Cache-Control:no-cache
Date:Tue, 19 Mar 2024 12:57:19 GMT
Content-Type:application/vnd.api+json
Server:nginx/1.25.4

Request body

# intentionally blank

Response body

{
    "links": {
        "self": "/api/alphabets/UPPER_VOWELS"
    },
    "data": {
        "attributes": {
            "ascii": true,
            "length": 5,
            "bytes": 5,
            "parity": 87,
            "chars": "AEIOU"
        },
        "id": "UPPER_VOWELS",
        "type": "alphabet"
    }
}

HTTPie example

$ http get SERVER:PORT/api/alphabets/UPPER_VOWELS Accept:application/vnd.api+json Content-Type:application/vnd.api+json Session-Key:SSSSSSSS-SSSS-SSSS-SSSS-SSSSSSSSSSSS