Giter Site home page Giter Site logo

ohi-chat's Introduction

What is this

ohi-chat backend server

Feature

  • 基本聊天室的CRUD
  • 加入聊天室、離開聊天室

API DOC and Feature

Chat room

可以善用MongoDB document storage的特性,一個聊天室等於一個文件的概念做設計。

DB Type: MongoDB DB Table: room_info DB Column: id, name, limit_amount, privacy, tags(暫時不需要用到)

  • list chat room

API [GET]: api/v1/chat-room/list token: requirement request: {} response: {result: 200 or 404, data: room_list[]}

  • create chat room

API [POST]: api/v1/chat-room/create token: requirement request: {room_id, room_name, room_limit_amount, room_privacy} response: {result: 200 or 404, data: null, message: create chat room successful or failed}

  • edit chat room info

API [PUT]: api/v1/chat-room/edit token: requirement request: {room_id, room_name, room_limit_amount, room_privacy} response: {result: 200 or 404, data: null, message: edit chat room successful or failed}

  • delete chat room

API [DELETE]: api/v1/chat-room/delete token: requirement request: {room_id} response: {result: 200 or 404, data: null, message: edit chat room successful or failed}

  • join chat room

API [POST]: api/v1/chat-room/join token: requirement request: {room_id} response: {result: 200 or 404, data: null, message: join chat room successful or failed}

  • leave chat room

API [POST]: api/v1/chat-room/leave token: requirement request: {room_id} response: {result: 200 or 404, data: null, message: leave chat room successful or failed}

ohi-chat's People

Contributors

junminhong avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.