diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-06-20 20:09:02 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-06-20 20:09:02 +0300 |
| commit | 4f9b489186d28055f60e3b5ef39bd27c7a229984 (patch) | |
| tree | 44eb58cc468c862ce97269ce922decb50ebd5282 /docs | |
| parent | feat: improved map summary response, all routes init (#43, #46) (diff) | |
| download | lphub-4f9b489186d28055f60e3b5ef39bd27c7a229984.tar.gz lphub-4f9b489186d28055f60e3b5ef39bd27c7a229984.tar.bz2 lphub-4f9b489186d28055f60e3b5ef39bd27c7a229984.zip | |
docs: map summary response (#46)
Diffstat (limited to '')
| -rw-r--r-- | docs/docs.go | 15 | ||||
| -rw-r--r-- | docs/swagger.json | 15 | ||||
| -rw-r--r-- | docs/swagger.yaml | 10 |
3 files changed, 16 insertions, 24 deletions
diff --git a/docs/docs.go b/docs/docs.go index cf6c00d..b7dc7ab 100644 --- a/docs/docs.go +++ b/docs/docs.go | |||
| @@ -908,6 +908,12 @@ const docTemplate = `{ | |||
| 908 | "description": { | 908 | "description": { |
| 909 | "type": "string" | 909 | "type": "string" |
| 910 | }, | 910 | }, |
| 911 | "history": { | ||
| 912 | "$ref": "#/definitions/models.MapHistory" | ||
| 913 | }, | ||
| 914 | "rating": { | ||
| 915 | "type": "number" | ||
| 916 | }, | ||
| 911 | "score_count": { | 917 | "score_count": { |
| 912 | "type": "integer" | 918 | "type": "integer" |
| 913 | }, | 919 | }, |
| @@ -930,15 +936,6 @@ const docTemplate = `{ | |||
| 930 | "models.MapSummary": { | 936 | "models.MapSummary": { |
| 931 | "type": "object", | 937 | "type": "object", |
| 932 | "properties": { | 938 | "properties": { |
| 933 | "history": { | ||
| 934 | "type": "array", | ||
| 935 | "items": { | ||
| 936 | "$ref": "#/definitions/models.MapHistory" | ||
| 937 | } | ||
| 938 | }, | ||
| 939 | "rating": { | ||
| 940 | "type": "number" | ||
| 941 | }, | ||
| 942 | "routes": { | 939 | "routes": { |
| 943 | "type": "array", | 940 | "type": "array", |
| 944 | "items": { | 941 | "items": { |
diff --git a/docs/swagger.json b/docs/swagger.json index f2ed3f0..ffcf55a 100644 --- a/docs/swagger.json +++ b/docs/swagger.json | |||
| @@ -901,6 +901,12 @@ | |||
| 901 | "description": { | 901 | "description": { |
| 902 | "type": "string" | 902 | "type": "string" |
| 903 | }, | 903 | }, |
| 904 | "history": { | ||
| 905 | "$ref": "#/definitions/models.MapHistory" | ||
| 906 | }, | ||
| 907 | "rating": { | ||
| 908 | "type": "number" | ||
| 909 | }, | ||
| 904 | "score_count": { | 910 | "score_count": { |
| 905 | "type": "integer" | 911 | "type": "integer" |
| 906 | }, | 912 | }, |
| @@ -923,15 +929,6 @@ | |||
| 923 | "models.MapSummary": { | 929 | "models.MapSummary": { |
| 924 | "type": "object", | 930 | "type": "object", |
| 925 | "properties": { | 931 | "properties": { |
| 926 | "history": { | ||
| 927 | "type": "array", | ||
| 928 | "items": { | ||
| 929 | "$ref": "#/definitions/models.MapHistory" | ||
| 930 | } | ||
| 931 | }, | ||
| 932 | "rating": { | ||
| 933 | "type": "number" | ||
| 934 | }, | ||
| 935 | "routes": { | 932 | "routes": { |
| 936 | "type": "array", | 933 | "type": "array", |
| 937 | "items": { | 934 | "items": { |
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 61f2ad7..3dfe421 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -74,6 +74,10 @@ definitions: | |||
| 74 | $ref: '#/definitions/models.Category' | 74 | $ref: '#/definitions/models.Category' |
| 75 | description: | 75 | description: |
| 76 | type: string | 76 | type: string |
| 77 | history: | ||
| 78 | $ref: '#/definitions/models.MapHistory' | ||
| 79 | rating: | ||
| 80 | type: number | ||
| 77 | score_count: | 81 | score_count: |
| 78 | type: integer | 82 | type: integer |
| 79 | showcase: | 83 | showcase: |
| @@ -88,12 +92,6 @@ definitions: | |||
| 88 | type: object | 92 | type: object |
| 89 | models.MapSummary: | 93 | models.MapSummary: |
| 90 | properties: | 94 | properties: |
| 91 | history: | ||
| 92 | items: | ||
| 93 | $ref: '#/definitions/models.MapHistory' | ||
| 94 | type: array | ||
| 95 | rating: | ||
| 96 | type: number | ||
| 97 | routes: | 95 | routes: |
| 98 | items: | 96 | items: |
| 99 | $ref: '#/definitions/models.MapRoute' | 97 | $ref: '#/definitions/models.MapRoute' |