This post covers the changes to the REST API in 1.26.11-r4 compared to 1.26.11-r3.
Rate limiting#
Added a new batch rate limit for POST /v1/*/batch endpoints
- 20 requests per 60 seconds
Batch#
Added 13 batch endpoints accepting up to 50 items per request ({ "items": [...] })
Item order is preserved and individual item failures return errors per item without failing the rest of the batch
POST /v1/hash/batchPOST /v1/base64/encode/batch,POST /v1/base64/decode/batchPOST /v1/base32/encode/batch,POST /v1/base32/decode/batchPOST /v1/hex/encode/batch,POST /v1/hex/decode/batchPOST /v1/url/encode/batch,POST /v1/url/decode/batchPOST /v1/json/format/batch,POST /v1/json/minify/batchPOST /v1/text/slugify/batchPOST /v1/color/convert/batch
Encoding, HMAC and JWT#
- Base32:
POST /v1/base32/encodeandPOST /v1/base32/decode(supportsrfc4648,rfc4648_hexandcrockford, with optional padding)
- Hex:
POST /v1/hex/encodeandPOST /v1/hex/decode(supportsutf8andbase64input/output, uppercase output and0xprefixes)
- HMAC:
POST /v1/hmacandPOST /v1/hmac/verify(supports 12 algorithms withutf8,hex,base64andbase64urlkeys and outputs)
- JWT:
POST /v1/jwt/decodePOST /v1/jwt/verify(verifiesHS*,RS*,PS*,ES*andEdDSAtokens withsecret,pemorjwkkeys)POST /v1/jwt/sign
JSON and YAML#
POST /v1/json/formatPOST /v1/json/minifyPOST /v1/json/comparePOST /v1/yaml/validatePOST /v1/yaml/to-json
Text, cron, color#
POST /v1/text/diffPOST /v1/text/slugifyPOST /v1/cron/parsePOST /v1/color/convert(#hex,rgb/rgba,hsl/hsla,hsv,cmyk)
Other changes#
POST /v1/url/encodeandPOST /v1/url/decodeadded alongside the existingGETroutes, withcomponentandformmodes/v1/base64/encodeand/v1/base64/decodenow supporturl_safeandpaddingoptions/v1/hashnow supportsencoding(hex,base64,base64url),uppercaseandseed(formurmur3)/v1/uuidnow supports?version=v4|v7(defaults tov4)/v1/epoch/{timestamp}now supports?unit=seconds|millisecondsand returnsmillisecondsandrfc2822/v1/regex/testnow supportsUandxflags,named_capturesandglobal: true/v1/randomnow supportshsvandcmykformats fortype=color/v1/coinflip/verify/{id}now also verifies the stored outcome against the seed hash
