Commit Graph

289 Commits

Author SHA1 Message Date
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
ahatius
7cfc53cad9 Add notify-self-flag support for json-rpc mode 2024-11-09 21:04:12 +01:00
Bernhard B
6e78758510 re-generated swagger documentation 2024-11-04 22:02:07 +01:00
Bernhard B.
6b08159fe3 Merge pull request #609 from crummy/master
Swagger fixes
2024-11-04 21:59:48 +01:00
crummy
3eeaafca4d Correct field name 2024-11-04 19:41:14 +13:00
crummy
495003f73a Re-add missing lines 2024-11-01 21:32:27 +13:00
crummy
d652d418d3 Return upon failure 2024-11-01 21:15:23 +13:00
crummy
1237c528f5 Found a proper way to escape it 2024-10-28 21:00:52 +13:00
crummy
d17e3d7eb9 Handle phone numbers that start with "%25" (as + is commonly escaped with) 2024-10-28 20:49:29 +13:00
crummy
8ac02d28eb Correct "number" - it's actually the phone number 2024-10-28 13:37:50 +13:00
crummy
26a5a6039b Update swagger files from code, with swag tool 2024-10-28 13:07:05 +13:00
crummy
a8494b70bd Add scheme to satisfy liblab 2024-10-26 14:04:19 +13:00
crummy
e16eed4580 Add default host to satisfy liblab 2024-10-26 13:55:55 +13:00
crummy
c62dc45a85 Fix linting warnings in swagger files 2024-10-25 10:18:55 +13:00
Matthew Rider
57dcb2f281 Add a pointer to conditionally send about string to signal-cli 2024-10-22 10:27:32 +02:00
Matthew Rider
f6c3f263e8 Add ability to update about text in UpdateProfileRequest 2024-10-21 11:35:39 +02:00
Bernhard B
54252a3d52 fixed swagger documentation
see #602
2024-10-14 15:58:35 +02:00
Bernhard B
94e93cbe35 added expiration_time parameter to create group endpoint
see #587
2024-10-07 23:02:33 +02:00
Jonathan Beaulieu
47390f85df Add missing groupid parameter
Was missing from delete and add group admin and member.
2024-09-13 11:24:48 +00:00
Jonathan Beaulieu
37cdcac44d Ran swag init with no changes 2024-09-13 11:22:07 +00:00
Bernhard B
e1ea5932c9 re-build swagger documentation 2024-08-20 21:44:11 +02:00
Bernhard B.
4bf70dd456 Merge pull request #573 from ahatius/master
Add support to disable notify-self flag on /v2/send endpoint
2024-08-20 21:43:26 +02:00
Bernhard B
e6ff51e3d8 fixed deadlock in json-rpc mode
* properly unlock mutex to avoid deadlock

see #572
2024-08-09 23:03:22 +02:00
ahatius
8cd60ff6c3 Add support to disable notify-self flag on /v2/send endpoint 2024-08-07 18:54:24 +02:00
Bernhard B
f3289395ae fixed deadlock in Websocket write
* properly unlock mutex to avoid deadlock

see #572
2024-08-07 17:07:12 +02:00