Skip to content

A simple API to get words of the dictionary. This version only works with Portuguese words.

Notifications You must be signed in to change notification settings

PedroCorcaque/words-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Words-API

This project was made for educational purposes. This API is hosted in Vercel.

Endpoints

  • Main URL: words-api-zeta.vercel.app

Get a random word in Portuguese

Endpoint

  • /random

Returns:

{
    "word": A random word,
    "uuid": An unique ID asssociated with the word
}

Possible errors:

500 - No words in the database
500 - DB Connection exception

Find a word by uuid

Endpoint

  • /find_by_id/<string:id>

Returns:

{
    "word": A specific word,
    "uuid": The uuid used in the search
}

Possible errors:

400 - Invalid UUID format
404 - The UUID isn't in the database
500 - DB Connection exception

About

A simple API to get words of the dictionary. This version only works with Portuguese words.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages