0x4d4f5448.systems Pointing to nothing

API

This page lays out an idea for the client <-> instance API for the Catsup protocol. It will touch on ideas mentioned in fcs-1. This spec has NOT been approved by the rest of the team.

Written by Klara Bohringer.

[ UNFINISHED ]

Connection

This is a typical REST API implemented in HTTP over TLS, each non-login request is authenticated with the random-ass header of 'AUTHTOK'.

Classes

Authentication

Login

Type: POST

Relative URL: /auth/login

Expected input:

Responses:

Logout

Type: POST

Relative URL: /auth/logout

Takes session token

Responses:

Nuke

Type: POST

Relative URL: /auth/nuke

Description: Removes all sessions

Takes session token

Responses:

Group management

Creation

Type: POST

Relative URL: /groups/create

Takes session token

Expected input:

Responses:

Editing

Type: POST

Relative URL: /groups//edit

Description: Takes full new group properties

Takes session token

Expected input: group object

Responses:

Creating invites

Type: POST

Relative URL: /groups//invite

Takes session token

Responses:

Invite info

Type: GET

Relative URL: /groups/invite//info

Responses:

Joining

Type: POST

Relative URL: /groups/invite/

Takes session token

Responses: