René Filip
3bd0d97970
activate endpoint and write swagger documentation
2021-11-06 00:43:02 +01:00
René Filip
6bf60a23e6
change react to reactions
2021-11-03 23:27:56 +01:00
René Filip
5aebc46fa6
change remove property to DELETE
2021-11-02 20:10:52 +01:00
René Filip
73f251906b
Finish api proposal, tbd
2021-11-01 19:50:48 +01:00
Bernhard B
d4b2dbea7f
fixed swagger documentation
...
* some endpoints had a wrong HTTP status code in the swagger
documentation.
see #175
2021-11-01 18:52:51 +01:00
René Filip
55d63c90b6
WIP, define new endpoints for send reaction
2021-11-01 18:09:21 +01:00
Bernhard B
2d80ff91a2
use SIGNAL_CLI_CONFIG_DIR env variable in jsonrpc2-helper script
...
* do not hardcode path, but use path specified by SIGNAL_CLI_CONFIG_DIR
env variable.
2021-11-01 10:55:07 +01:00
Bernhard B
ee6ef0b842
Merge branch 'typingindicator'
2021-10-30 21:43:09 +02:00
Bernhard B
94d10b1443
Merge branch 'signal-cli-v0.9.2-upgrade'
2021-10-30 21:41:47 +02:00
Bernhard B
561f52cced
fixed armv7 build
...
* location of native image changed
2021-10-29 16:22:45 +02:00
Bernhard B
0bef71d2a1
updated signal-cli to v0.9.2
2021-10-29 14:53:02 +02:00
Bernhard B
80805c069d
added new API endpoints to show/hide typing indicators
...
see #166
2021-10-25 19:45:19 +02:00
Bernhard B
d1190f8299
improved log message
...
* notify users that registering a phone number only works in
normal/native mode.
2021-10-20 21:49:11 +02:00
Bernhard B
2991941343
Merge branch 'master' of github.com:bbernhard/signal-cli-rest-api
2021-10-20 19:17:15 +02:00
Bernhard B
405b7f0f9e
fixed bug in create group endpoint
...
* the group id of the newly created signal group wasn't correctly
returned in json-rpc mode.
2021-10-20 19:16:09 +02:00
Bernhard B
6c28b782fa
return mode (normal,native,json-rpc) in "about" endpoint
2021-10-20 18:56:25 +02:00
Bernhard B
a309baf536
Merge pull request #168 from lkwg82/fix-tabs-spaces-of-example-docker-compose
...
fix code example (tabs in yaml)
2021-10-19 21:21:54 +02:00
Lars K.W. Gohlke
923a7916f4
fix code example
2021-10-19 20:32:34 +02:00
Bernhard B
dbab85d69c
Update OCTOPRINT.md
...
fixed whitespacing error in docker-compose.yml example
2021-10-19 17:51:43 +02:00
Bernhard B
fddc163ef0
Update OCTOPRINT.md
...
* set the json-rpc mode as default mode in the provided docker-compose.yml example
2021-10-19 17:51:06 +02:00
Bernhard B
6679a145fc
Merge branch 'jsonrpc'
2021-10-18 19:58:17 +02:00
Bernhard B
708e86592a
Merge branch 'jsonrpc' of github.com:bbernhard/signal-cli-rest-api into jsonrpc
2021-10-18 18:46:19 +02:00
Bernhard B
02f360e42c
updated swagger documentation for receive endpoint
2021-10-18 18:45:41 +02:00
Bernhard B
8963fd638e
include json-rpc mode in issue template
2021-10-18 18:35:23 +02:00
Bernhard B
f34f7f2961
fixed syntax error in docker-compose.yml
2021-10-18 18:27:43 +02:00
Bernhard B
b2efd2f12a
Update README.md
2021-10-18 18:19:57 +02:00
Bernhard B
7b6c788a4a
updated docker-compose.yml and added json-rpc mode
2021-10-18 18:13:29 +02:00
Bernhard B
81f07fecb8
updated README.md with json-rpc documentation
2021-10-18 18:11:00 +02:00
Bernhard B
795b4c3f99
Do not set any deadlines in websocket connection
...
* The websocket rfc doesn't specify what to do when a client doesn't
respond to a ping message. It just states that it must respond with a
pong message. But it is unclear what should happen when the client
doesn't respond with a pong message. So instead of closing the
connection, we are keeping the connection open as long as possible.
2021-10-10 22:37:16 +02:00
Bernhard B
094e42059d
improved error handling in jsonrpc2 client
2021-10-10 18:42:39 +02:00
Bernhard B
0023ebaf83
fixed bug in jsonrpc2-helper script
...
* only look for registered numbers in the signal-cli-config/data folder
and do NOT traverse the whole signal-cli-config folder (as there might
be other files starting with '+...'
2021-10-10 18:39:03 +02:00
Bernhard B
9fad77c922
added IsPhoneNumber helper function to utils
2021-10-10 18:03:27 +02:00
Bernhard B
82fd577d48
remove any existing named pipe before creating a new one
2021-10-10 17:57:36 +02:00
Bernhard B
d7825a4da8
only add numbers to jsonrpc2.yml config file; skip any other files
...
starting with a '+'
2021-10-10 17:54:08 +02:00
Bernhard B
0baa20f750
added websocket ping/pong mechanism (as described in rfc6455)
2021-10-06 21:40:37 +02:00
Bernhard B
c1e514b29c
improved log output
2021-09-29 09:57:04 +02:00
Bernhard B
fdff7bac99
use eclipse-temurin instead of adoptopenjdk as base image for the docker image
...
* adoptopenjdk is not maintained anymore and superseded by eclipse-temurin
2021-09-28 19:32:32 +02:00
Bernhard B
444e7d7608
replaced info log with debug log
2021-09-14 18:21:06 +02:00
Bernhard B
760883bdca
implemented receive endpoint via websocket connection
2021-09-13 22:09:33 +02:00
Bernhard B
d8a5ddfc98
implemented more JSON-RPC endpoints
2021-09-13 19:57:51 +02:00
Bernhard B
41b11d64c1
temporarily switched back to adoptopenjdk:11-jre-hotspot-bionic image
...
* the eclipse-temurin images currently do not support armv7
2021-09-12 19:09:15 +02:00
Bernhard B
53f351d37e
updated graalvm to 21.2.0
2021-09-12 19:08:28 +02:00
Bernhard B
6a38b9415e
updated signal-cli to version 0.9.0
2021-09-12 18:13:07 +02:00
Bernhard B
f894364665
added support for sending messages via JSON-RPC
2021-09-12 18:11:45 +02:00
Bernhard B
b20fb09653
fixed syntax error in bash script
2021-09-12 18:10:04 +02:00
Bernhard B
0755b96535
updated build & release container
...
* updated build container to debian bullseye
* updated release container to eclipse-temurin:11-jre-focal
(the adoptopenjdk docker image is not longer maintained)
2021-09-12 18:08:18 +02:00
Bernhard B
a3843b9f12
added another sanity check
2021-09-11 23:11:11 +02:00
Bernhard B
fd5388506b
checkout specific signal-cli version in Dockerfile
...
* accidentally removed in previous commit
2021-09-11 23:05:36 +02:00
Bernhard B
2a0347eea2
added more sanity checks + restructured code a bit
2021-09-11 23:03:01 +02:00
Bernhard B
79fa00fdf1
cleaned up Dockerfile
2021-09-11 22:33:56 +02:00