getGlobal library of fonts for ASB Sports uniforms

Parameters

NameInTypeFormatRequiredDescription
idquerystring
namequerystringFont family name (e.g., "Roboto", "Arial Black")
codequerystringUnique font code identifier (e.g., "ROBOTO", "ARIALBLK")
categoryquerystringFont category (serif, sans-serif, display, handwriting, monospace)
stylequerystringFont style (normal, italic, oblique)
weightquerystringFont weight (light, regular, medium, bold, black)
file_urlquerystringURL to the font file (TTF, OTF, WOFF)
preview_urlquerystringURL to a preview image of the font
descriptionquerystringOptional font description or notes
is_activequerystringWhether the font is active/enabled
sort_orderquerystringDisplay order for sorting
created_byquerystring
created_atquerystring
updated_atquerystring
deleted_atquerystringSoft delete timestamp
selectquerystringFiltering Columns
orderquerystringOrdering
RangeheaderstringLimiting and Pagination
Range-UnitheaderstringLimiting and Pagination
offsetquerystringLimiting and Pagination
limitquerystringLimiting and Pagination
PreferheaderstringPreference

Example

bash
curl "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/fonts?select=*&limit=10" \
  -H "apikey: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Responses

200OK
206Partial Content

postGlobal library of fonts for ASB Sports uniforms

Parameters

NameInTypeFormatRequiredDescription
fontsbodyobjectfonts
selectquerystringFiltering Columns
PreferheaderstringPreference

Example

bash
curl -X POST "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/fonts" \
  -H "apikey: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Prefer: return=representation" \
  -d '{
  "name": "example",
  "code": "example",
  "category": "example",
  "is_active": true,
  "sort_order": 0
}'

Responses

201Created

patchGlobal library of fonts for ASB Sports uniforms

Parameters

NameInTypeFormatRequiredDescription
idquerystring
namequerystringFont family name (e.g., "Roboto", "Arial Black")
codequerystringUnique font code identifier (e.g., "ROBOTO", "ARIALBLK")
categoryquerystringFont category (serif, sans-serif, display, handwriting, monospace)
stylequerystringFont style (normal, italic, oblique)
weightquerystringFont weight (light, regular, medium, bold, black)
file_urlquerystringURL to the font file (TTF, OTF, WOFF)
preview_urlquerystringURL to a preview image of the font
descriptionquerystringOptional font description or notes
is_activequerystringWhether the font is active/enabled
sort_orderquerystringDisplay order for sorting
created_byquerystring
created_atquerystring
updated_atquerystring
deleted_atquerystringSoft delete timestamp
fontsbodyobjectfonts
PreferheaderstringPreference

Example

bash
curl -X PATCH "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/fonts?id=eq.YOUR_ID" \
  -H "apikey: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Prefer: return=representation" \
  -d '{"name": "example"}'

Responses

204No Content

deleteGlobal library of fonts for ASB Sports uniforms

Parameters

NameInTypeFormatRequiredDescription
idquerystring
namequerystringFont family name (e.g., "Roboto", "Arial Black")
codequerystringUnique font code identifier (e.g., "ROBOTO", "ARIALBLK")
categoryquerystringFont category (serif, sans-serif, display, handwriting, monospace)
stylequerystringFont style (normal, italic, oblique)
weightquerystringFont weight (light, regular, medium, bold, black)
file_urlquerystringURL to the font file (TTF, OTF, WOFF)
preview_urlquerystringURL to a preview image of the font
descriptionquerystringOptional font description or notes
is_activequerystringWhether the font is active/enabled
sort_orderquerystringDisplay order for sorting
created_byquerystring
created_atquerystring
updated_atquerystring
deleted_atquerystringSoft delete timestamp
PreferheaderstringPreference

Example

bash
curl -X DELETE "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/fonts?id=eq.YOUR_ID" \
  -H "apikey: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Responses

204No Content

Schema

Global library of fonts for ASB Sports uniforms

ColumnTypeFormatNullableDefaultNotes
idPK
stringuuidextensions.uuid_generate_v4()This is a Primary Key.
name
stringtextFont family name (e.g., "Roboto", "Arial Black")
code
stringtextUnique font code identifier (e.g., "ROBOTO", "ARIALBLK")
category
stringtextsans-serifFont category (serif, sans-serif, display, handwriting, monospace)
style
stringtextnormalFont style (normal, italic, oblique)
weight
stringtextregularFont weight (light, regular, medium, bold, black)
file_url
stringtextURL to the font file (TTF, OTF, WOFF)
preview_url
stringtextURL to a preview image of the font
description
stringtextOptional font description or notes
is_active
booleanbooleanWhether the font is active/enabled
sort_order
integerinteger0Display order for sorting
created_by
stringuuid
created_at
stringtimestamp with time zonenow()
updated_at
stringtimestamp with time zonenow()
deleted_at
stringtimestamp with time zoneSoft delete timestamp