Jianwei Zhang
c835231d32
feat: add header into resource response ( #2120 )
...
Update - add header for get resource
2023-08-10 23:45:30 +08:00
boojack
723c444910
chore: update server tests ( #2118 )
2023-08-10 09:01:38 +08:00
boojack
35f2d399e2
chore: update api v1 docs ( #2117 )
...
* chore: update apiv1 docs
* chore: update
2023-08-09 22:30:27 +08:00
Lincoln Nogueira
4491c75135
feat: add SwaggerUI and v1 API docs ( #2115 )
...
* - Refactor several API routes from anonymous functions to regular definitions. Required to add parseable documentation comments.
- Add API documentation comments using Swag Declarative Comments Format
- Add echo-swagger to serve Swagger-UI at /api/index.html
- Fix error response from extraneous parameter resourceId to relatedMemoId in DELETE("/memo/:memoId/relation/:relatedMemoId/type/:relationType")
- Add an auto-generated ./docs/api/v1.md for quick reference on repo (generated by swagger-markdown)
- Add auxiliary scripts to generate docs.go and swagger.yaml
* fix: golangci-lint errors
* fix: go fmt flag in swag scripts
2023-08-09 21:53:06 +08:00
boojack
5d5d8de9fe
fix: get all memo api ( #2091 )
2023-08-06 10:14:30 +08:00
boojack
218159bf83
chore: remove openai setting section ( #2084 )
2023-08-05 21:39:12 +08:00
boojack
238f896907
feat: add system service ( #2083 )
...
* feat: add system service
* chore: update
2023-08-05 21:30:23 +08:00
boojack
57dd1fc49f
chore: initial memo service definition ( #2077 )
...
* chore: initial memo service definition
* chore: update
* chore: update
* chore: update
2023-08-05 09:32:52 +08:00
boojack
7c5296cf35
chore: update id type to int32 ( #2076 )
2023-08-04 21:55:07 +08:00
boojack
1ce82ba0d6
chore: remove shortcut related api ( #2072 )
2023-08-03 23:33:45 +08:00
boojack
5f819fc86f
chore: update auth middleware ( #2057 )
...
* chore: update auth middleware
* chore: update
* chore: update
2023-07-31 20:55:40 +08:00
boojack
cc3a47fc65
feat: impl auth interceptor ( #2055 )
...
* feat: impl auth interceptor
* chore: update
* chore: update
* chore: update
2023-07-30 23:49:10 +08:00
Lilith
c1cbfd5766
feat: add system setting to disable password-based login ( #2039 )
...
* system setting to disable password login
* fix linter warning
* fix indentation warning
* Prohibit disable-password-login if no identity providers are configured
* Warnings and explicit confirmation when en-/disabling password-login
- Disabling password login now gives a warning and requires a second
confirmation which needs to be explicitly typed.
- (Re)Enabling password login now also gives a simple warning.
- Removing an identity provider while password-login is disabled now
also warns about possible problems.
* Fix formatting
* Fix code-style
---------
Co-authored-by: traumweh <5042134-traumweh@users.noreply.gitlab.com>
2023-07-30 21:22:02 +08:00
boojack
d8d6de9fca
fix: get user by username api ( #2034 )
2023-07-26 22:41:21 +08:00
boojack
56c321aeaa
revert: fix: exclude all punctuation chars except underscore in tags ( #2033 )
...
Revert "fix: exclude all punctuation chars except underscore in tags (#1974 )"
This reverts commit 8c61531671
.
2023-07-26 21:11:13 +08:00
Mason Sun
a9eb605b0f
fix: auth api json format ( #2021 )
...
Update auth.go
api/v1/auth/相关接口未应用convertUserFromStore方法,会导致User对象获得类型存在问题,导致User定义的`json:`相关的字段转化失效。
导致输出json未被正确格式化
2023-07-23 19:11:29 +08:00
boojack
04b7a26c03
chore: fix request path ( #2014 )
2023-07-23 10:12:13 +08:00
boojack
28203bbaf9
chore: fix rss route ( #2010 )
2023-07-22 21:51:05 +08:00
boojack
9138ab8095
fix: rss route ( #2008 )
...
* fix: rss route
* chore: update
2023-07-22 12:58:17 +08:00
Ajay Kumbhare
55975a46d8
feat: add hindi language translation for i18n support ( #2001 )
2023-07-22 09:38:54 +08:00
Alexandr Tumaykin
f91f09adea
feat: use username instead of uid ( #1977 )
...
* #1916 replace userId to username
* resolve
---------
Co-authored-by: Александр Тумайкин <AATumaykin@tsum.ru>
2023-07-20 19:48:39 +08:00
Athurg Gooth
336b32004d
feat: add AutoBackupInterval in SystemSetting ( #1989 )
...
Add AutoBackupInterval in SystemSetting page
2023-07-19 21:39:21 +08:00
Jianwei Zhang
8bcc2bd715
fix: access token will expired after 24h ( #1988 )
2023-07-19 08:45:30 +08:00
Felipe Martínez
8c61531671
fix: exclude all punctuation chars except underscore in tags ( #1974 )
...
* Change tag regex
* Update tests
* Add more tag tests
2023-07-18 01:53:07 +08:00
boojack
2effacd0a6
chore: add api docs ( #1965 )
2023-07-15 23:30:20 +08:00
boojack
40a30d46af
chore: update db connection params ( #1960 )
2023-07-15 10:26:19 +08:00
Felipe Martínez
2a7104e564
fix: exclude commas in tags ( #1957 )
2023-07-15 10:00:35 +08:00
Athurg Gooth
d9b3501fae
feat: add support for auto backup db file ( #1950 )
...
Add support for auto backup db file
2023-07-14 20:05:07 +08:00
Athurg Gooth
06dbd87311
chore: split save resource asset ( #1939 )
...
* Move resource blob save into a independent function
* Support save resouce blob from Telegram like HTTP API
* Support save resouce blob download from URL to LocalStorage or S3
* fix typo
2023-07-14 11:14:10 +08:00
Athurg Gooth
3093f80d68
fix: visibility param override the user auth state ( #1942 )
...
fix visibility param override the user auth state
2023-07-13 15:20:15 +08:00
Athurg Gooth
11aa01ee2e
fix: visibility param override the user auth state ( #1941 )
...
fix visibility param override the user auth state
2023-07-13 14:56:43 +08:00
CorrectRoadH
d8b6e92813
feat: implement memos chat backend function ( #1934 )
...
* feat: implment backend function
* eslint
* eslint
* eslint
2023-07-13 11:25:59 +08:00
boojack
da70917b08
chore: update auth page ( #1920 )
...
* chore: update auth page
* chore: update
2023-07-09 21:13:26 +08:00
boojack
7e391bd53d
chore: remove resource public id ( #1912 )
...
* chore: remove resource public id
* chore: update
2023-07-08 11:29:50 +08:00
boojack
0e05c62a3b
chore: update common utils ( #1908 )
2023-07-06 22:53:38 +08:00
boojack
a7573d5705
refactor: migrate memo to apiv1 ( #1907 )
...
* refactor: migrate memo to apiv1
* chore: update
* chore: update
* chore: update
* chore: upate
* chore: update
* chore: update
2023-07-06 21:56:42 +08:00
boojack
1fa9f162a5
refactor: migrate resource to apiv1 ( #1901 )
2023-07-06 00:01:40 +08:00
Athurg Gooth
2033b0c8fa
fix: skip auth on /api/v1/status to avoid sign up while token invalid ( #1895 )
...
Skip auth on /api/v1/status to avoid sign up while token invalid
2023-07-05 13:55:04 +08:00
boojack
5b6c98582e
refactor: migrate storage to apiv1 ( #1890 )
...
* refactor: migrate storage to apiv1
* chore: update
* chore: update
* chore: update
2023-07-04 10:05:57 +08:00
Athurg Gooth
833fd23820
fix: OpenID was disappear sometimes ( #1886 )
...
Fix openid was disapear sometimes
2023-07-03 19:10:24 +08:00
boojack
66e65e4dc1
refactor: migrate definition to api v1 ( #1879 )
...
* refactor: user api v1
* refactor: system setting to apiv1
* chore: remove unused definition
* chore: update
* chore: refactor: system setting
* chore: update
* refactor: migrate tag
* feat: migrate activity store
* refactor: migrate shortcut apiv1
* chore: update
2023-07-02 18:56:25 +08:00
boojack
9a8d43bf88
chore: update user store names ( #1877 )
...
* chore: update user store names
* chore: update
2023-07-02 14:27:23 +08:00
boojack
5fe644a3b6
chore: add jwt middleware in apiv1 ( #1869 )
2023-07-01 00:03:28 +08:00
boojack
6a78887f1d
chore: update store types name ( #1862 )
2023-06-29 22:55:03 +08:00
boojack
7226a9ad47
chore: update idp store ( #1856 )
2023-06-26 23:46:01 +08:00
boojack
b44f2b5ffb
chore: migrate user setting to api v1 package ( #1855 )
...
* chore: migrate to api v1 package
* chore: update
2023-06-26 23:06:53 +08:00
boojack
b34aded376
refactor: migration idp api ( #1842 )
...
* refactor: migration idp api
* chore: update
2023-06-17 22:35:17 +08:00
boojack
4ed9a3a0ea
refactor: migrate auth routes to v1 package ( #1841 )
...
* feat: add api v1 packages
* chore: migrate auth to v1
* chore: update test
2023-06-17 21:25:46 +08:00