313 Commits

Author SHA1 Message Date
Era Dorta
af3eadbbc0 Replace the handler from post to delete 2025-08-29 19:59:56 +02:00
Era Dorta
f078e1a2ae Add documentation 2025-08-29 19:55:45 +02:00
Era Dorta
d25a454f39 Fix tab error 2025-08-28 00:40:22 +02:00
Era Dorta
6b3916e597 Remove if statement 2025-08-28 00:37:56 +02:00
Era Dorta
a93eed6e56 Add extra error check after unmarshal 2025-08-28 00:34:41 +02:00
Era Dorta
bcb2100169 Fix comments for the RemoteDelete function 2025-08-28 00:32:10 +02:00
Era Dorta
9325022e46 Add message deletion endpoint 2025-08-28 00:27:09 +02:00
Bernhard B
5330e0dff5 fixed getContainerId() function
* since switching to podman builds in the CI, the getContainerId()
  function wasn't working anymore. As per default the hostname of the
  container is the same as the container id, we use the GetHostname()
  function to get the container id inside the container.
2025-08-26 23:18:14 +02:00
Bernhard B
3b7ade3dad fixed bug in /v2/send request
* added missing linkpreview description parameter

see #732
2025-08-06 22:46:02 +02:00
Bernhard B
e87ff58762 fixed typo in error message
see #729
2025-08-01 21:12:39 +02:00
Bernhard B
aa1924aa8c prefix usernames with 'u:' when creating/updating a group's members 2025-07-25 22:59:00 +02:00
Bernhard B
8834570421 add env variables to ignore download of attachments and stories in json-rpc mode
see #723
2025-07-19 22:16:36 +02:00
Bernhard B
4102331404 added view_once parameter to send endpoint
see #724
2025-07-17 23:18:41 +02:00
Bernhard B
e9e8731f6b made it possible to modify link state in groups PUT endpoint 2025-07-17 19:02:49 +02:00
Bernhard B.
cde86f471b
Merge pull request #717 from d-rk/feature/query-params
enable access to query params in plugins
2025-06-30 20:46:46 +02:00
Bernhard B
94cf8100ba added possibility to call a webhook when a message is received 2025-06-29 16:42:43 +02:00
Dirk Wilden
2217d6242b enable access to query params in plugins 2025-06-26 11:08:25 +02:00
Bernhard B
fb6ec6013b format sourcecode with gofmt 2025-06-03 22:19:22 +02:00
Bernhard B
b3a6ee1e5d added new endpoint to return a group's avatar 2025-06-03 22:18:29 +02:00
Bernhard B
59207541c1 added uuid to list identities response
see #703
2025-05-26 21:56:28 +02:00
Bernhard B.
3ca05c08b0
Merge pull request #690 from bbernhard/dependabot/go_modules/src/golang.org/x/net-0.38.0
Bump golang.org/x/net from 0.36.0 to 0.38.0 in /src
2025-05-02 18:51:47 +02:00
Bernhard B
6eacfb0890 added support for link previews
see #439
2025-05-01 23:29:23 +02:00
dependabot[bot]
eeca02d147
Bump golang.org/x/net from 0.36.0 to 0.38.0 in /src
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.36.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.36.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.38.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-28 18:49:35 +00:00
Bernhard B
40bbdc63f1 added env variable LOG_LEVEL
* this environment variable allows to change the log level of the
  application
2025-04-22 23:35:01 +02:00
Bernhard B
60c395d4a8 fixed bug in swagger documentation
* use configured SWAGGER_HOST env variable when generating
  the URL for the swagger documentation file.

see #683
2025-04-14 22:49:21 +02:00
Bernhard B
3497b3d806 exposed 'listDevices' signal-cli command via REST
* the signal-cli command 'listDevices' is now exposed as
  /v1/devices/<number> endpoint.

see #676
2025-03-30 23:14:16 +02:00
Bernhard B
bf929a3aa1 extended list contacts GET endpoint
* exposed some more fields

see #675
2025-03-29 22:33:37 +01:00
Bernhard B
e452205c38 handle non existent attachments folder gracefully 2025-03-24 23:15:22 +01:00
Bernhard B
3140a56b70 ran 'go mod tidy' 2025-03-24 23:14:34 +01:00
Bernhard B
a30c63f1b1 added DEFAULT_SIGNAL_TEXT_MODE env variable
* allows to set the default text mode globally.
  The setting is only used when the 'text_mode' is not
  explicitly set in the payload.

see #671
2025-03-20 22:24:03 +01:00
Bernhard B.
c26c6d8587
Merge pull request #669 from bbernhard/dependabot/go_modules/src/golang.org/x/net-0.36.0
Bump golang.org/x/net from 0.34.0 to 0.36.0 in /src
2025-03-16 00:25:30 +01:00
Bernhard B
8346f9072a fixed error in swagger documentation
* set pin request needs to be a POST request
* added payload to swagger documentation
2025-03-16 00:24:16 +01:00
dependabot[bot]
28b04a68f6
Bump golang.org/x/net from 0.34.0 to 0.36.0 in /src
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.34.0 to 0.36.0.
- [Commits](https://github.com/golang/net/compare/v0.34.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-12 22:20:35 +00:00
Bernhard B
4404929c90 added API endpoints to set/remove a pin
see #660
2025-02-26 22:26:13 +01:00
Malcolm Crum
4b05e8b409
Path parameter is required 2025-02-25 20:31:00 +11:00
Bernhard B
cd4b1ad29b ran go mod tidy 2025-02-14 20:56:13 +01:00
Bernhard B
9144ee8156 return group description in groups GET endpoint
see #657
2025-02-14 20:18:06 +01:00
Bernhard B
4f07a64d68 improved swagger documentation
* documented styling options in v2/send endpoint
2025-02-09 22:40:01 +01:00
Bernhard B
845ea54d0a fixed bug in send method
* allow notify self not only when sending a message to a group, but also
  to individual recipients.

see #654
2025-02-09 20:06:31 +01:00
Bernhard B
90b2375324 tidy goland dependencies 2025-02-03 23:49:34 +01:00
Bernhard B
49f121a249 implemented plugin endpoints as shared objects
* the plugin mechanism is an optional extension to the REST
  API. As the plugin mechanism depends on gopher-lua (and a bunch of
  gopher-lua plugins), it adds quite some dependencies to the project.
  Since most of the REST API users won't need the plugin mechanism, it
  makes sense to move that functionality (including all the
  dependencies) to a dedicated shared object, which gets loaded when
  needed.
2025-02-03 23:23:07 +01:00
Bernhard B
3914178ec7 add possibility to specify HTTPS as default scheme in the swagger UI
see #639
2025-01-06 22:29:55 +01:00
Bernhard B
3752538e9b added plugin mechanism 2025-01-06 22:08:29 +01:00
Bernhard B
d5a1d252a2 fixed swagger API documentation 2024-12-24 23:16:50 +01:00
Bernhard B
a70c2994c3 added possibility to escape formatting characters
see #562
2024-12-24 23:05:22 +01:00
Bernhard B
3d51571385 updated golang.org/x/net to v0.33.0 to fix security vulnerability 2024-12-21 23:11:16 +01:00
Bernhard B
f0a49e6aac added new TextstyleParser implementation
* the old implementation was cumbersome to maintain and had some
  problems with nested formatting.

see #630
2024-12-21 22:10:35 +01:00
Bernhard B
db97de3d81 fixed swagger documentation for search endpoint
see #622
2024-11-29 22:21:31 +01:00
Bernhard B
2c4ef753ab added expiration_time to Update Groups endpoint
see #616
2024-11-15 22:43:02 +01:00
Bernhard B
cddf3c166a GET groups endpoint: return uuid instead of number in case no number is set
see #611
2024-11-14 22:50:15 +01:00