api.hangulize.org

module
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2018 License: MIT

README

api.hangulize.org

Web API for Hangulize, powered by Google App Engine

API

You can find the actual API specification in openapi.yaml under OpenAPI Specification 3.0.1.

There was a former Hangulize Web API written in Python. That is considered as v1. The code still can be found at https://github.com/sublee/hangulize-web. The v1 API had complex content negotiation rules and not deterministic behaviors. v2 is re-designed against v1 to provide more simple and predictable usage.

GET /v2/version

Returns the version of the underlying Hangulize.

Content-Type Result Example
text/plain 0.1.0
application/json {"version": "0.1.0"}
GET /v2/hangulized/{lang}/{word}

Transcribes a non-Korean word into Hangul. The result of GET /v2/hangulized/ita/gloria would be:

Content-Type Result Example
text/plain 글로리아
application/json {"lang": "ita", "word": "gloria", "transcribed": "글로리아"}
GET /v2/specs

Provides the list of language-specific transcription specs.

Content-Type Result Example
text/plain ita jpn deu...
application/json {"specs": [{"lang": {"id": "ita", "english": "Italian", ...}, ...]}
GET /v2/specs/{lang}.hgl

The source code of the spec. The only result format is text/vnd.hgl.

lang:
    id      = "ita"
    codes   = "it", "ita"
    english = "Italian"
    korean  = "이탈리아어"
    script  = "latin"

Development

To run locally, use Cloud SDK:

$ dev_appserver.py app.yaml

Or just run the main package:

$ go run main.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL