Messages
Users

You're viewing old version number 10. - Current version

Kinglet API

Messages

GET /api/v1/messages - homepage. stream. messages created by or sent to the logged in user.

GET /api/v1/messages/page/3 - page three of the stream.
or GET /api/v1/messages/3/page - page three of the stream.

GET /api/v1/messages/5 - retrieve message 5.

POST /api/v1/messages - send a new message.

GET /api/v1/messages/5/replies - retrieve discussion thread. the original message and all replies.

POST /api/v1/messages/5/replies - create a reply message to message 5.

Users

GET /api/v1/users/JR - retrieve user info for user name JR.
or @GET /api/v1/users/123 - retrieve user info for user id 123.

???? GET /api/v1/users/JR/id - retrieve user id for user JR.
???? GET /api/v1/users/123/name - retrieve user name for id 123.

POST /api/v1/users - create a new user account.

PUT /api/v1/users/JR - update user account for user name JR.
or PUT /api/v1/users/123 - update user account for user id 123.

POST /api/v1/users/login - login user.

GET /api/v1/users/JR/logout - logout user JR.

#kinglet - #api

From JR's : articles
154 words - 1027 chars
created on
updated on - #
source - versions

Related articles
Kinglet User and Programmer Documentation - Mar 19, 2014



A     A     A     A     A

© 2013-2017 JotHut - Online notebook

current date: Nov 15, 2024 - 6:30 a.m. EST