learning to build a web api
- FREEEEEEEEE
- database with some fonts i used
- getting fonts by various methods
- id
- name
- family
- projects
- (sans)serif
- random
- will hopefully turn this into a gallery on my website eventually
- possible images and otf/files coming if i feel like it
go to https://mynte.pythonanywhere.com/items. this will return the entire database. from here you can sort to whatever is your use case is by appending the appropriate subpath to the link above and parameters which can be found below. if ur still confused just read the code lol.
/[id] where [id] is some whole number (probably) that i assigned to the font and has no real meaning otherwise will return the font with that id
/name/[name] where [name] is the name of the font according to css, if that doenst work then its according to google, otherwise its whatever i have on my computer will return the font with that name (if the name has multiple words still use a space in between; -'s should also work)
/family/[family] where [family] is one of the 5 generic font families set out by css (serif, sans-serif, monospace, cursive, fantasy) will retusn all the fonts in that family
/project/[project] where [project] is the project the font was used in will return all the fonts used in that project
/serif will return all the serif fonts
/sans-serif will return all the sans-serif fonts
/random will get you a random font
/count will get you the amount of items in the database
just make a pull request and if its a cool font why not or if you do something else cool thats nice too
thanks for reading have fun