Sign inSign up

ryantate13/dictionary

By ryantate13

•Updated over 8 years ago

Dictionary REST API

Image
0

211

ryantate13/dictionary repository overview

⁠📖 Dictionary 📚

Powered by Wordset⁠.

⁠Search For a Specific Word

Make a GET request to /:word. Returns a 404 if the word is not found.

⁠Example Response

GET /foo

{
  "error": "not found"
}

GET /foolishly

{
  "word": "foolishly",
  "wordset_id": "54bd55e87265742391a22500",
  "meanings": [
    {
      "id": "54bd55e87265742391a42500",
      "def": "without good sense or judgment",
      "example": "They acted foolishly when they agreed to come.",
      "speech_part": "adverb",
      "synonyms": [
        "unwisely"
      ]
    }
  ],
  "editors": [
    "bryanedu"
  ],
  "contributors": [
    "zellerpress",
    "msingle",
    "sabreuse"
  ]
}
⁠Search for Words Matching a Predicate

Make a GET request to /search/:term. All words starting with the search term will be returned.

⁠Example Response

GET /search/foo

[
  {
    "word": "foolishly",
    "wordset_id": "54bd55e87265742391a22500",
    "meanings": [
      {
        "id": "54bd55e87265742391a42500",
        "def": "without good sense or judgment",
        "example": "They acted foolishly when they agreed to come.",
        "speech_part": "adverb",
        "synonyms": [
          "unwisely"
        ]
      }
    ],
    "editors": [
      "bryanedu"
    ],
    "contributors": [
      "zellerpress",
      "msingle",
      "sabreuse"
    ]
  },
  "..."
]

Tag summary

Content type

Image

Digest

Size

39.3 MB

Last updated

over 8 years ago

docker pull ryantate13/dictionary