Skip to content
Codemonkey51 edited this page Oct 14, 2020 · 1 revision

The api is currently being revamped with #35 and on the Branch: mat1/ReplDex#api-dev

current routes

all routes will start with https://repldex.com/api (or replace that with your own domain)
all routes are get unless specified otherwise

/entries/{sort}

query parameters

page the page number (used with limit to get other pages), default to 0 limit the maximum amount of entries per page, default to 20 query the search query (sort must be search for this to work), default to None

sort values

new or last_edited the last edited entries search or relevant entries that match your query

returns

a json object with all the entries' data

/entry/{entry}

query parameters

None

entry value

the name of the entry you want, if the entry is not found it will give you the entry closest related to it

returns

A json object of the entry

/selfentry/{owner_id}

query parameters

None

owner_id value

the discord id of the user you want a selfentry for

returns

A json object of the entry

/website-title

query parameters

url a url you want the data of (used when hovering over links)

returns

A json object with title (only for entry urls), favicon and content keys

other info

there are currently no api keys, or routes that need a privileged api key When api keys are added, some routes will work without a key, all routes that need a key will say so, and will say what permissions that key must have