Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/krdlab/direct-http-agent
- Owner: krdlab
- License: mit
- Created: 2017-09-08T00:44:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T16:02:05.000Z (over 1 year ago)
- Last Synced: 2024-04-11T03:43:24.040Z (7 months ago)
- Language: TypeScript
- Size: 634 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`