makechat.api

makechat.api.utils module

All utils are should be placed here.

This module contain helpers function.

makechat.api.utils.encrypt_password(password)

Encrypt plain passowrd.

makechat.api.utils.session_create(user)

Create session.

makechat.api.utils.token_create(user, name)

Cretae a token.

makechat.api.rooms module

All logic of /api/rooms endpoint should be described here.

class makechat.api.rooms.RoomResource(items_per_page)

Bases: object

Chat room resource.

on_delete(req, resp, room_id)

Process DELETE requests for /api/rooms.

on_get(req, resp)

Process GET requests for /api/rooms.

on_patch(req, resp, room_id)

Process PUT requests for /api/rooms.

on_post(req, resp)

Process POST requests for /api/rooms.

on_put(req, resp, room_id)

Process PUT requests for /api/rooms.