Giter Club home page Giter Club logo

mldic's Introduction

MLDIC API

MLDIC API has 3 entry points:

/entries /languages /users

Entries

Each entry has a following structure:

    {
        id: 123,
        phrase: "abdominal cavity",
        language: {
            id: 1,
            code: "en",
            name: "English"
        },
        createdBy: {
            id: 345,
            email: "[email protected]",
            firstName: "Some",
            lastName: "One"
        },
        createdDate: "280920111015", (*not certain about the date format yet)
        modifiedBy: {
            id: 987,
            email: "[email protected]",
            firstName: "Another",
            lastName: "Dude"
        },
        modifiedDate: "290920111034",
        descriptions: [
            {...},
            ...
        ],
        synonyms: [ {
                id: 89743,
                phrase: "some other synonym",
                link: {
                    rel: "...",
                    href: "http://api.url...com/entries/some other synonym/en"
                }
            },
            ...
        ],
        translations: [ {
                id: 14,
                code: "hu",
                name: "Hungarian",
                entries: [ {
                        id: 92343,
                        phrase: "blah blah",
                        link: {
                            rel: "...",
                            href: "http://api.url...com/entries/blah blah/fr"
                        }
                    },
                    ...
                ]
            },
            ...
        ]
    }

Each entry is unque in terms of Phrase+Language combination. In other words there could onyl be one entry with a given phrase in a given language (e.g. there would be only one "abdominal cavity" entry for english language). Phrase can consist of 1+ words.

Here are some request examples for the Entry resources:

  • HTTP GET: /entries/abdomen - Will return all entries with a phrase "abdomen" in all languages.
  • GET: /entries/abdomen/en - Return a single entry "abdomen" in english. If not found status code 404.
  • GET: /entries/acut* - Return all entries where phrase starts with "acut" in all languages.
  • GET: /entries/*acut/hu - Return all entries where phrase ends with "acut" in hungarian language.
  • GET: /entries/~blah - Return all entries where phrase is similar to "blah" (useful when not certain about the correct spelling).
  • GET: /entries/~slovo/ru - Return all entries with phrase similar to "slovo" in russian. (e.g. slava, sleva, slovo)

mldic's People

Contributors

polad avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.