Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/krdlab/direct-http-agent

EXPERIMENTAL: Provide REST API and Webhook for direct
https://github.com/krdlab/direct-http-agent

Last synced: 9 days ago
JSON representation

EXPERIMENTAL: Provide REST API and Webhook for direct

Awesome Lists containing this project

README

        

# direct HTTP agent

`direct-http-agent` is a small web service to provide REST API and Webhook for [direct](https://direct4b.com/ja/).

## Build & Launch

This project uses Docker containers.
If you would like to launch the service locally, execute commands as below:

```sh
$ docker-compose -f docker-compose.yml -f docker-compose.local.yml up -d
$ open http://localhost:3000/
```

You can also launch the service as production mode.

```sh
$ docker-compose -f docker-compose.yml -f docker-compose.vps.yml up -d
```

## Usage

Please see `/home`.

## API

- [x] `POST /control/restart`
- [x] `GET /dapi/domains`
- [x] `GET /dapi/domains/:domainId/talks`
- [x] `POST /dapi/domains/:domainId/talks/:talkId/messages`
- [x] `GET /webhooks`
- [x] `POST /webhooks`
- [ ] `GET /webhooks/:webhookId`
- [ ] `PUT /webhooks/:webhookId`
- [x] `DELETE /webhooks/:webhookId`