File tree 3 files changed +44
-44
lines changed
3 files changed +44
-44
lines changed Original file line number Diff line number Diff line change @@ -649,7 +649,7 @@ func Routes() *web.Route {
649
649
650
650
m .Group ("/user" , func () {
651
651
m .Get ("" , user .GetAuthenticatedUser )
652
- m .Group ("/preferences " , func () {
652
+ m .Group ("/settings " , func () {
653
653
m .Get ("" , user .GetUserSettings )
654
654
m .Patch ("" , bind (api.UserSettingsOptions {}), user .UpdateUserSettings )
655
655
}, reqToken ())
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import (
16
16
17
17
// GetUserSettings returns user settings
18
18
func GetUserSettings (ctx * context.APIContext ) {
19
- // swagger:operation GET /user/preferences user getUserSettings
19
+ // swagger:operation GET /user/settings user getUserSettings
20
20
// ---
21
21
// summary: Get user settings
22
22
// produces:
@@ -29,7 +29,7 @@ func GetUserSettings(ctx *context.APIContext) {
29
29
30
30
// UpdateUserSettings returns user settings
31
31
func UpdateUserSettings (ctx * context.APIContext ) {
32
- // swagger:operation PATCH /user/preferences user updateUserSettings
32
+ // swagger:operation PATCH /user/settings user updateUserSettings
33
33
// ---
34
34
// summary: Update user settings
35
35
// parameters:
Original file line number Diff line number Diff line change 10736
10736
}
10737
10737
}
10738
10738
},
10739
- "/user/preferences": {
10740
- "get": {
10741
- "produces": [
10742
- "application/json"
10743
- ],
10744
- "tags": [
10745
- "user"
10746
- ],
10747
- "summary": "Get user settings",
10748
- "operationId": "getUserSettings",
10749
- "responses": {
10750
- "200": {
10751
- "$ref": "#/responses/UserSettings"
10752
- }
10753
- }
10754
- },
10755
- "patch": {
10756
- "produces": [
10757
- "application/json"
10758
- ],
10759
- "tags": [
10760
- "user"
10761
- ],
10762
- "summary": "Update user settings",
10763
- "operationId": "updateUserSettings",
10764
- "parameters": [
10765
- {
10766
- "name": "body",
10767
- "in": "body",
10768
- "schema": {
10769
- "$ref": "#/definitions/UserSettingsOptions"
10770
- }
10771
- }
10772
- ],
10773
- "responses": {
10774
- "200": {
10775
- "$ref": "#/responses/UserSettings"
10776
- }
10777
- }
10778
- }
10779
- },
10780
10739
"/user/repos": {
10781
10740
"get": {
10782
10741
"produces": [
10842
10801
}
10843
10802
}
10844
10803
},
10804
+ "/user/settings": {
10805
+ "get": {
10806
+ "produces": [
10807
+ "application/json"
10808
+ ],
10809
+ "tags": [
10810
+ "user"
10811
+ ],
10812
+ "summary": "Get user settings",
10813
+ "operationId": "getUserSettings",
10814
+ "responses": {
10815
+ "200": {
10816
+ "$ref": "#/responses/UserSettings"
10817
+ }
10818
+ }
10819
+ },
10820
+ "patch": {
10821
+ "produces": [
10822
+ "application/json"
10823
+ ],
10824
+ "tags": [
10825
+ "user"
10826
+ ],
10827
+ "summary": "Update user settings",
10828
+ "operationId": "updateUserSettings",
10829
+ "parameters": [
10830
+ {
10831
+ "name": "body",
10832
+ "in": "body",
10833
+ "schema": {
10834
+ "$ref": "#/definitions/UserSettingsOptions"
10835
+ }
10836
+ }
10837
+ ],
10838
+ "responses": {
10839
+ "200": {
10840
+ "$ref": "#/responses/UserSettings"
10841
+ }
10842
+ }
10843
+ }
10844
+ },
10845
10845
"/user/starred": {
10846
10846
"get": {
10847
10847
"produces": [
You can’t perform that action at this time.
0 commit comments