/shevchenko-http

HTTP API for shevchenko library

Primary LanguageJavaScriptMIT LicenseMIT

shevchenko HTTP API

This repository provides an example of HTTP API for shevchenko library.

Requirements

Installation

To start Docker container, run the following command:

docker-compose up

Open http://localhost:3000 in a web browser to verify installation.

Examples

HTTP request example:

POST http://localhost:3000/vocative
Content-Type: application/json

{
    "gender": "masculine",
    "givenName": "Тарас",
    "patronymicName": "Григорович",
    "familyName": "Шевченко"
}

HTTP response example:

{
    "givenName": "Тарасе",
    "patronymicName": "Григоровичу",
    "familyName": "Шевченку"
}

More examples in test.http.