Welcome to BahasaApi

Welcome to Bahasa API. A simple API built using SvelteKit

How to use

The base API url point http://bahasa-api.vercel.app/api/word?length=10&amount=10&order=random

Parameter

Heres are available parameters to fetch the words

Length Parameter

length is used to fetch words with specific amount of character length.
Default: 999999999
E.g.
http://bahasa-api.vercel.app/api/word?length=10 with return any words that is less or equal than 10 characters in length

Amount Parameter

amount is used to fetch specific amount of words
Default: 10
E.g. http://bahasa-api.vercel.app/api/word?amount=20 will return 20 words from database

Order Parameter

order is used to fetch words in a specific order
Available Types: asc for ascending order, desc from descending order, random for a random order
Default: random
E.g http://bahasa-api.vercel.app/api/word?order=desc will return words in descending order based on the characters of the wordss

More...

One or more of these parameter can be combined to build a complex query based on what you need. If you found any error or problem using this application, please report it to the https://github.com/aidilrx04/bahasa-api