Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 981 Bytes

README.md

File metadata and controls

56 lines (34 loc) · 981 Bytes

Synonym

Install an app

Run the following command in root directory of an app in command prompt.

Install node packages

server/ node install

Run an app

Run Server

Run the following command in root directory of an app in command prompt.

server/ node server.js

You can see the port number in command prompt after sucessfull run

You can change the settings in server/config/config.js file

API Available

Create Synonyms
POST: http://localhost:8080/createSynonyms

{
    "originalWord": "classificationId",
    "synonyms": [
        "classification.",
        "classification",
        "classificationNo."
    ]
}
Get All Synonyms
GET: http://localhost:8080/getSynonyms
Update Synonyms
PUT: http://localhost:8080/updateSynonyms

{
    "originalWord": "classificationId",
    "synonyms": [
        "classification",
        "classificationNo."
    ]
}