Pixela API Document

API Document for Pixela ( https://pixe.la/ ) .

API Index

User

POST /v1/users - Create a user

PUT /v1/users/<username> - Update a user

DELETE /v1/users/<username> - Delete a user


User Profile

GET /@<username> - View user profile

PUT /@<username> - Update user profile


Graph

POST /v1/users/<username>/graphs - Create a graph

GET /v1/users/<username>/graphs - Get graph definitions

GET /v1/users/<username>/graphs/<graphID> - Get a graph SVG

PUT /v1/users/<username>/graphs/<graphID> - Update a graph

DELETE /v1/users/<username>/graphs/<graphID> - Delete a graph

GET /v1/users/<username>/graphs.html - View graph list by detail

GET /v1/users/<username>/graphs/<graphID>/pixels - Get graph pixels list

GET /v1/users/<username>/graphs/<graphID>/stats - Get a graph stats

POST /v1/users/<username>/graphs/<graphID>/stopwatch - Measuring and recording time


Pixel

POST /v1/users/<username>/graphs/<graphID> - Post a pixel

GET /v1/users/<username>/graphs/<graphID>/<yyyyMMdd> - Get a pixel

PUT /v1/users/<username>/graphs/<graphID>/<yyyyMMdd> - Update a pixel

PUT /v1/users/<username>/graphs/<graphID>/increment - Increment a pixel

PUT /v1/users/<username>/graphs/<graphID>/decrement - Decrement a pixel

DELETE /v1/users/<username>/graphs/<graphID>/<yyyyMMdd> - Delete a pixel


Webhook

POST /v1/users/<username>/webhooks - Create a webhook

GET /v1/users/<username>/webhooks - Get webhooks

POST /v1/users/<username>/webhooks/<webhookHash> - Invoke a webhook

DELETE /v1/users/<username>/webhooks/<webhookHash> - Delete a webhook