Commit Graph

104 Commits

Author SHA1 Message Date
Bernhard B
a6489ce742 Merge pull request #176 from filipre/reactions
Reactions Endpoint Proposal
2021-11-06 14:54:13 +01:00
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
80805c069d added new API endpoints to show/hide typing indicators
see #166
2021-10-25 19:45:19 +02:00
Bernhard B
02f360e42c updated swagger documentation for receive endpoint 2021-10-18 18:45:41 +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
0baa20f750 added websocket ping/pong mechanism (as described in rfc6455) 2021-10-06 21:40:37 +02:00
Bernhard B
760883bdca implemented receive endpoint via websocket connection 2021-09-13 22:09:33 +02:00
Bernhard B
f894364665 added support for sending messages via JSON-RPC 2021-09-12 18:11:45 +02:00
Bernhard B
314f9c47e2 fixed swaggo annotations 2021-09-05 18:59:37 +02:00
Bernhard B
1295fd7452 move signal-cli specific code into own library
* still WIP and APIs might change lateron, but at least it compiles.

see #150
2021-09-05 18:25:12 +02:00
Bernhard B
719d8d6400 increased default command timeout to 120 seconds
* libsignal-client performs really bad on armv7 now, so
  increase the default command timeout to 120 seconds to make
  it somehow useable on armv7.

see #145
2021-07-29 20:55:28 +02:00
Bernhard B
91e7e43de9 changed default parameters in swagger documentation for create groups
endpoint

* reordered parameters in swagger annotation in order to default the
  add members & edit group permissions to 'only-admins' & set the default
  for the group link to 'disable'.

see #148
2021-07-10 19:59:13 +02:00
Bernhard B
5dc663e80e extended create groups endpoint
* added possibility to specify the description, the add group & edit
  group permissions and the group link state.

see #148
2021-07-10 19:51:37 +02:00
Bernhard B
99b9d6163a added possibility to specify the signal-cli command timeout in the
docker-compose.yml file

see #145
2021-07-03 17:48:02 +02:00
Bernhard B
1fcc2d4acf fixed debug mode output
* sending a message wasn't correctly logged in debug mode
2021-06-08 21:39:51 +02:00
Bernhard B
326e298801 remove "." when constructing the attachment filename
* the mimetype library already adds the '.', so no need to
  add it manually

see #136
2021-05-27 20:37:19 +02:00
Bernhard B
68c6595ab9 return timestamp of sent message
see #137
2021-05-26 18:02:55 +02:00
Bernhard B
d04beed5de replaced h2non/filedetect with gabriel-vasile/mimetype library
* the mimetype library is faster and correctly detects text files
  as text/plain. (the filedetect library classified them as binary files)

see #136
2021-05-25 23:06:40 +02:00
Bernhard B
d9cbc9d985 fixes swagger documentation
* create groups endpoint was missing some information
2021-03-20 20:01:08 +01:00
Bernhard B
03c0cac972 use "--output=json" instead of "--json" when calling signal-cli receive
* --json is deprecated

see #103
2021-03-07 13:05:04 +01:00
Bernhard B
4567210688 added fallback mechanism in case signal-cli-native doesn't exist 2021-02-19 22:19:43 +01:00
Bernhard B
1291a99087 improved documentation
* added missing 'device_name' parameter to qrcodelink endpoint

see #95
2021-02-16 18:27:07 +01:00
Mike Degatano
8a09bf553b Add info on captcha verification 2021-02-12 20:20:30 -05:00
Bernhard B
bd5f568ffc Some endpoints return "null" although successful
see #91
2021-02-12 17:11:08 +01:00
Bernhard B
de777799b6 fixed documentation error 2021-01-30 21:40:54 +01:00
Bernhard B
2c3a2f30a8 addd API endpoints to join/quit/block Signal Groups 2021-01-27 18:18:58 +01:00
Bernhard B
04e67d058b added configuration endpoints 2021-01-23 19:21:17 +01:00
Bernhard B
7020d6efd6 fixed bug in groups endpoint
* forgot to add name
2021-01-19 22:38:38 +01:00
Bernhard B
d4343c1a3e run gofmt 2021-01-19 18:08:09 +01:00
Bernhard B
666b9e2bdd fixed parsing in groups endpoint
* use "output mode json" instead of string parsing
2021-01-19 18:07:15 +01:00
Bernhard B
827d45c143 added endpoint to list specific group 2021-01-19 15:00:08 +01:00
Bernhard B
5d89b3fa51 added endpoints to list + trust identities
see #66
2021-01-18 20:21:17 +01:00
Bernhard B
4d5f7bed7d improved error handling 2021-01-17 09:49:12 +01:00
Bernhard B
e1d39dc0f5 improved error handling 2021-01-17 09:48:10 +01:00
Bernhard B
f5d3880c49 added health check endpoint + fixed logging
* set go-gin to release mode
* added health check endpoint
* excluded endpoint from logger

see #63
2021-01-16 20:14:15 +01:00
Bernhard B
8130e516e6 added documentation for update profile REST API request 2021-01-15 21:37:47 +01:00
Bernhard B
510499b4ac add possibility to list, serve and delete attachments
see #52
2021-01-14 15:27:38 +01:00
Bernhard B
787bb2b50b add possibility to specify captcha in register endpoint
see #19
2021-01-08 22:48:49 +01:00
FL42
b9df80d6c6 fix: pass message as stdin 2020-11-22 11:09:31 +01:00
Bernhard B
418b93459f updated swagger documentation
* added documentation for timeout parameter in receive endpoint
2020-11-01 21:47:25 +01:00
George Czabania
2a1d70ba95 feat(receive): add timeout option 2020-10-31 12:19:05 +13:00
Bernhard B
9ffc03e8f3 improved API documentation + error handling 2020-10-05 18:32:59 +02:00
Danijel Fischer
dff503e31d Forgot to add the main change 2020-10-04 13:00:00 +02:00
Danijel Fischer
0dc5c0f4d7 Add a white border around the QR Image 2020-10-04 12:57:29 +02:00
Bernhard B
12d53dd098 Remove temporary files also on success
* Up to now, the temporary files on the filesystem were only removed
  when an error occured - resulting in an ever growing docker container.
  This changeset makes sure that the temporary files also get removed on
  success.

see #26
2020-08-13 19:16:59 +02:00