Menu

REST inteface

Julia Damerow

REST Interface Description

So far the REST interface provides two methods for retrieving words.
Search for a word given the word and its POS

http://<server.url>/wordpower/rest/WordLookup/{name}/{pos}

e.g.:

http://my.server.edu/wordpower/rest/WordLookup/horse/verb

Retrieve a word by its ID

http://<server.url>/wordpower/rest/Word/{id}

e.g.:

http://my.server.edu/wordpower/rest/Word/c53ef0a2-8950-4035-a828-cc619ba31d34

However, these methods return only basic information so far:

<wordpowerReply xmlns:digitalHPS="http://www.digitalhps.org/">
    <digitalHPS:dictionaryEntry>
        <digitalHPS:id>
            http://www.digitalhps.org/dictionary/c53ef0a2-8950-4035-a828-cc619ba31d34
        </digitalHPS:id>
    <digitalHPS:lemma>horse fetus</digitalHPS:lemma>
    <digitalHPS:pos>noun</digitalHPS:pos>
    <digitalHPS:description>fetus of a horse</digitalHPS:description>
    <digitalHPS:vocabulary>Biology Terms</digitalHPS:vocabulary>
    </digitalHPS:dictionaryEntry>
</wordpowerReply>

Related

Wiki: Home

MongoDB Logo MongoDB