Get preset alphabets by length
In order to get the character set (together with other attribute–value pairs) of all preset alphabets by length, the length of the alphabets MUST be sent by the HTTP request path attribute filter[length].
All matching alphabets are returned from the remote service as list in the JSON response body. Each data object of type: alphabet in the list has the same structure as if it had been requested by its identifier via HTTP request path parameter.
Request endpoint
GET SERVER:PORT/api/alphabets?filter[length]=16
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:52:47 GMT
Content-Type:application/vnd.api+json
Server:nginx/1.25.4
Request body
# intentionally blank
Response body
{
"links": {
"self": "/api/alphabets?filter[length]=16"
},
"data": [
{
"attributes": {
"ascii": true,
"length": 16,
"bytes": 16,
"parity": 0,
"chars": "0123456789abcdef"
},
"id": "BASE16",
"type": "alphabet"
},
{
"attributes": {
"ascii": true,
"length": 16,
"bytes": 16,
"parity": 0,
"chars": "0123456789abcdef"
},
"id": "LOWER_HEX",
"type": "alphabet"
},
{
"attributes": {
"ascii": true,
"length": 16,
"bytes": 16,
"parity": 0,
"chars": "0123456789ABCDEF"
},
"id": "UPPER_HEX",
"type": "alphabet"
}
]
}
HTTPie example
$ http get SERVER:PORT/api/alphabets?filter[length]=16 Accept:application/vnd.api+json Content-Type:application/vnd.api+json Session-Key:SSSSSSSS-SSSS-SSSS-SSSS-SSSSSSSSSSSS