0.1.1 • Published 8 years ago

omni-chat-server-api v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Omni-chat server API

Description

Express middleware to handle the omni-chat API.

Install

npm install
gulp install.noNpm
gulp build.node

API

GET /

GET /accounts

POST /accounts

Parameters:

NameTypeDescription
loginstring3-32 characters, will be normalized to lowercase
passwordstring8+ characters

Example:

{
    "login": "Demurgos",
    "password": "p4ssw0rd"
}

Response:

{
    "_id": "570fcc0f3158b8b00549505a",
    "login": "demurgos"
}

GET /accounts/:id