Asyncronous Lightweight ActivityPub API
Based on little-boxes. Implements both the client-to-server API and the federated server-to-server API. Compatible with Mastodon, Pleroma and microblog.pub
Support extensions (collects blueprints and listeners):
- pubgate-rssbot: federates rss-feeds*
- pubgate-philip: minimalist blogging UI(early development)*
API documentation
Support create / delete / un-/follow users / share / like
Endpoints
Overview swagger docs example
Federated
- /.well-known/ (webfinger, nodeinfo)
- /user/ (create, profile, token(password grant OAuth 2), following)
- /inbox/ (create, list)
- /outbox/ (create, list, details)
Additional
- /swagger (api docs)
More details:
At Postmat documenter or download latest Postman collection
Run
Prerequisites
MongoDB, Python3.6
Shell
git clone https://github.com/autogestion/pubgate.git
pip install -r requirements/base.txt
Only federator
cp -r config/base_sample_conf.cfg config/conf.cfg
To run with extensions (marked * in list )
pip install -r requirements/extensions.txt
cp -r config/extensions_sample_conf.cfg config/conf.cfg
Run
python run_api.py
Tests
python -m pytest tests/