Skip to content

jostly/phraser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phraser

Microservice to generate random adjective-animal phrases.

Available at http://phraser.herokuapp.com/

Usage

Output from the service will depend on the Accept header. The following media types can be produced:

text/plain: The phrase as text, with no terminating line feed

application/json: The phrase as a json object

    {
        "adjective": "<some adjective>",
        "animal": "<some animal>"
    }

text/html: A page designed for viewing in browsers

Alliterative phrase

The words start with the same letter, randomly chosen. Access at base URL: /, example: http://phraser.herokuapp.com/

Random phrase

Each word is randomly chosen independently. Access at URL /random, example: http://phraser.herokuapp.com/random

Phrase starting with specific letter

Each word is randomly chosen among those starting with the specified letter. Access at URL /{letter}, example: http://phraser.herokuapp.com/p

There are currently no animals or adjectives starting with the letter x, so the service will not accept that as a starting letter.

About

Microservice to generate random adjective-animal phrase

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages