Skip to content

A small Node.js API to serve random words for madlibs.

Notifications You must be signed in to change notification settings

kmaida/madlibs-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

madlibs-api

This is a small Node.js API that returns random words upon request.

Requirements

Installation

$ npm install

Serve

$ node server

API runs at http://localhost:8084/api/.

Usage

  • GET a noun (person, place, or thing): /api/noun
  • GET a noun (person/animal): /api/noun/person
  • GET a noun (place): /api/noun/place
  • GET a noun (thing): /api/noun/thing
  • GET an adjective: /api/adjective
  • GET a verb (present-tense; -ing): /api/verb/present
  • GET a verb (past-tense; -ed): /api/verb/past
  • GET random navigation (e.g., up, down, back, etc.): /api/navigation
  • GET a random pronoun object: /api/pronoun
  • GET a random pronoun object that is not "it": /api/pronoun/gendered (male, female)
  • GET a pronoun object by ID: /api/pronoun/:id (male, female, neutral, plural)

About

A small Node.js API to serve random words for madlibs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published