|
828 | 828 | ]
|
829 | 829 | }
|
830 | 830 | },
|
831 |
| - "/api/v1/insights/retention": { |
832 |
| - "post": { |
833 |
| - "summary": "Retention query", |
834 |
| - "description": "Query for retention.", |
835 |
| - "operationId": "Retention2", |
836 |
| - "responses": { |
837 |
| - "200": { |
838 |
| - "description": "A successful response.", |
839 |
| - "schema": { |
840 |
| - "$ref": "#/definitions/insights_service.RetentionResponse" |
841 |
| - } |
842 |
| - } |
843 |
| - }, |
844 |
| - "parameters": [ |
845 |
| - { |
846 |
| - "name": "body", |
847 |
| - "in": "body", |
848 |
| - "required": true, |
849 |
| - "schema": { |
850 |
| - "$ref": "#/definitions/insights_service.RetentionRequest" |
851 |
| - } |
852 |
| - } |
853 |
| - ], |
854 |
| - "tags": [ |
855 |
| - "Data" |
856 |
| - ] |
857 |
| - } |
858 |
| - }, |
859 | 831 | "/api/v1/insights/{owner}/{slug}/coins": {
|
860 | 832 | "get": {
|
861 | 833 | "summary": "List coins",
|
|
963 | 935 | ]
|
964 | 936 | }
|
965 | 937 | },
|
966 |
| - "/api/v1/insights/{owner}/{slug}/retention": { |
967 |
| - "post": { |
968 |
| - "summary": "Retention query", |
969 |
| - "description": "Query for retention.", |
970 |
| - "operationId": "Retention", |
971 |
| - "responses": { |
972 |
| - "200": { |
973 |
| - "description": "A successful response.", |
974 |
| - "schema": { |
975 |
| - "$ref": "#/definitions/insights_service.RetentionResponse" |
976 |
| - } |
977 |
| - } |
978 |
| - }, |
979 |
| - "parameters": [ |
980 |
| - { |
981 |
| - "name": "owner", |
982 |
| - "in": "path", |
983 |
| - "required": true, |
984 |
| - "type": "string" |
985 |
| - }, |
986 |
| - { |
987 |
| - "name": "slug", |
988 |
| - "in": "path", |
989 |
| - "required": true, |
990 |
| - "type": "string" |
991 |
| - }, |
992 |
| - { |
993 |
| - "name": "body", |
994 |
| - "in": "body", |
995 |
| - "required": true, |
996 |
| - "schema": { |
997 |
| - "$ref": "#/definitions/insights_service.InsightsService.RetentionBody" |
998 |
| - } |
999 |
| - } |
1000 |
| - ], |
1001 |
| - "tags": [ |
1002 |
| - "Data" |
1003 |
| - ] |
1004 |
| - } |
1005 |
| - }, |
1006 | 938 | "/api/v1/metrics": {
|
1007 | 939 | "get": {
|
1008 | 940 | "summary": "Get a list of metrics in a project",
|
|
1176 | 1108 | ]
|
1177 | 1109 | }
|
1178 | 1110 | },
|
1179 |
| - "/api/v1/prices/add_coin_by_gecko": { |
1180 |
| - "post": { |
1181 |
| - "operationId": "AddCoinByGecko", |
1182 |
| - "responses": { |
1183 |
| - "200": { |
1184 |
| - "description": "A successful response.", |
1185 |
| - "schema": { |
1186 |
| - "$ref": "#/definitions/price_service.AddCoinByGeckoResponse" |
1187 |
| - } |
1188 |
| - } |
1189 |
| - }, |
1190 |
| - "parameters": [ |
1191 |
| - { |
1192 |
| - "name": "body", |
1193 |
| - "in": "body", |
1194 |
| - "required": true, |
1195 |
| - "schema": { |
1196 |
| - "$ref": "#/definitions/price_service.AddCoinByGeckoRequest" |
1197 |
| - } |
1198 |
| - } |
1199 |
| - ] |
1200 |
| - } |
1201 |
| - }, |
1202 | 1111 | "/api/v1/prices/batch": {
|
1203 | 1112 | "post": {
|
1204 | 1113 | "summary": "Batch get prices",
|
|
4246 | 4155 | "url": "https://prometheus.io/docs/prometheus/latest/querying/basics/"
|
4247 | 4156 | }
|
4248 | 4157 | },
|
4249 |
| - "common.RetentionMatrix": { |
4250 |
| - "type": "object", |
4251 |
| - "properties": { |
4252 |
| - "samples": { |
4253 |
| - "type": "array", |
4254 |
| - "items": { |
4255 |
| - "type": "object", |
4256 |
| - "$ref": "#/definitions/common.RetentionMatrix.Sample" |
4257 |
| - } |
4258 |
| - } |
4259 |
| - } |
4260 |
| - }, |
4261 |
| - "common.RetentionMatrix.Sample": { |
4262 |
| - "type": "object", |
4263 |
| - "properties": { |
4264 |
| - "time": { |
4265 |
| - "type": "string", |
4266 |
| - "format": "date-time" |
4267 |
| - }, |
4268 |
| - "segmentParameter": { |
4269 |
| - "$ref": "#/definitions/common.SegmentParameter" |
4270 |
| - }, |
4271 |
| - "labels": { |
4272 |
| - "type": "object", |
4273 |
| - "additionalProperties": { |
4274 |
| - "type": "string" |
4275 |
| - } |
4276 |
| - }, |
4277 |
| - "totalCount": { |
4278 |
| - "type": "integer", |
4279 |
| - "format": "int32" |
4280 |
| - }, |
4281 |
| - "counts": { |
4282 |
| - "type": "array", |
4283 |
| - "items": { |
4284 |
| - "type": "integer", |
4285 |
| - "format": "int32" |
4286 |
| - } |
4287 |
| - }, |
4288 |
| - "rates": { |
4289 |
| - "type": "array", |
4290 |
| - "items": { |
4291 |
| - "type": "number", |
4292 |
| - "format": "double" |
4293 |
| - } |
4294 |
| - } |
4295 |
| - } |
4296 |
| - }, |
4297 | 4158 | "common.RetentionQuery": {
|
4298 | 4159 | "type": "object",
|
4299 | 4160 | "properties": {
|
|
5163 | 5024 | }
|
5164 | 5025 | }
|
5165 | 5026 | },
|
5166 |
| - "insights_service.InsightsService.RetentionBody": { |
5167 |
| - "type": "object", |
5168 |
| - "properties": { |
5169 |
| - "projectId": { |
5170 |
| - "type": "string" |
5171 |
| - }, |
5172 |
| - "version": { |
5173 |
| - "type": "integer", |
5174 |
| - "format": "int32" |
5175 |
| - }, |
5176 |
| - "timeRange": { |
5177 |
| - "$ref": "#/definitions/common.TimeRangeLite" |
5178 |
| - }, |
5179 |
| - "query": { |
5180 |
| - "$ref": "#/definitions/common.RetentionQuery" |
5181 |
| - } |
5182 |
| - } |
5183 |
| - }, |
5184 | 5027 | "insights_service.ListCoinsResponse": {
|
5185 | 5028 | "type": "object",
|
5186 | 5029 | "properties": {
|
|
5256 | 5099 | }
|
5257 | 5100 | }
|
5258 | 5101 | },
|
5259 |
| - "insights_service.RetentionRequest": { |
5260 |
| - "type": "object", |
5261 |
| - "properties": { |
5262 |
| - "projectOwner": { |
5263 |
| - "type": "string" |
5264 |
| - }, |
5265 |
| - "projectSlug": { |
5266 |
| - "type": "string" |
5267 |
| - }, |
5268 |
| - "projectId": { |
5269 |
| - "type": "string" |
5270 |
| - }, |
5271 |
| - "version": { |
5272 |
| - "type": "integer", |
5273 |
| - "format": "int32" |
5274 |
| - }, |
5275 |
| - "timeRange": { |
5276 |
| - "$ref": "#/definitions/common.TimeRangeLite" |
5277 |
| - }, |
5278 |
| - "query": { |
5279 |
| - "$ref": "#/definitions/common.RetentionQuery" |
5280 |
| - } |
5281 |
| - } |
5282 |
| - }, |
5283 |
| - "insights_service.RetentionResponse": { |
5284 |
| - "type": "object", |
5285 |
| - "properties": { |
5286 |
| - "computeStats": { |
5287 |
| - "$ref": "#/definitions/common.ComputeStats" |
5288 |
| - }, |
5289 |
| - "results": { |
5290 |
| - "$ref": "#/definitions/common.RetentionMatrix" |
5291 |
| - }, |
5292 |
| - "error": { |
5293 |
| - "type": "string" |
5294 |
| - } |
5295 |
| - } |
5296 |
| - }, |
5297 | 5102 | "metrics_service.GetMetricsResponse": {
|
5298 | 5103 | "type": "object",
|
5299 | 5104 | "properties": {
|
|
5635 | 5440 | }
|
5636 | 5441 | }
|
5637 | 5442 | },
|
5638 |
| - "price_service.AddCoinByGeckoRequest": { |
5639 |
| - "type": "object", |
5640 |
| - "properties": { |
5641 |
| - "coingeckoId": { |
5642 |
| - "type": "string" |
5643 |
| - } |
5644 |
| - } |
5645 |
| - }, |
5646 |
| - "price_service.AddCoinByGeckoResponse": { |
5647 |
| - "type": "object", |
5648 |
| - "properties": { |
5649 |
| - "status": { |
5650 |
| - "$ref": "#/definitions/price_service.AddCoinByGeckoResponse.Status" |
5651 |
| - }, |
5652 |
| - "message": { |
5653 |
| - "type": "string" |
5654 |
| - }, |
5655 |
| - "currentPrice": { |
5656 |
| - "type": "number", |
5657 |
| - "format": "double" |
5658 |
| - }, |
5659 |
| - "timestamp": { |
5660 |
| - "type": "string", |
5661 |
| - "format": "date-time" |
5662 |
| - }, |
5663 |
| - "symbol": { |
5664 |
| - "type": "string" |
5665 |
| - }, |
5666 |
| - "coins": { |
5667 |
| - "type": "array", |
5668 |
| - "items": { |
5669 |
| - "type": "object", |
5670 |
| - "$ref": "#/definitions/price_service.CoinID" |
5671 |
| - } |
5672 |
| - } |
5673 |
| - } |
5674 |
| - }, |
5675 |
| - "price_service.AddCoinByGeckoResponse.Status": { |
5676 |
| - "type": "string", |
5677 |
| - "enum": [ |
5678 |
| - "OK", |
5679 |
| - "ALREADY_EXISTS", |
5680 |
| - "MISMATCH_WITH_EXISTING", |
5681 |
| - "GECKO_NOT_FOUND", |
5682 |
| - "GECKO_RETURN_NON_SUPPORTED_CHAIN" |
5683 |
| - ], |
5684 |
| - "default": "OK" |
5685 |
| - }, |
5686 | 5443 | "price_service.BatchGetPricesRequest": {
|
5687 | 5444 | "type": "object",
|
5688 | 5445 | "properties": {
|
|
7777 | 7534 | }
|
7778 | 7535 | },
|
7779 | 7536 | "securityDefinitions": {
|
7780 |
| - "ApiKeyAuth": { |
| 7537 | + "ApiKeyHeaderAuth": { |
7781 | 7538 | "type": "apiKey",
|
7782 | 7539 | "name": "api-key",
|
7783 | 7540 | "in": "header"
|
| 7541 | + }, |
| 7542 | + "ApiKeyQueryAuth": { |
| 7543 | + "type": "apiKey", |
| 7544 | + "name": "api-key", |
| 7545 | + "in": "query" |
7784 | 7546 | }
|
7785 | 7547 | },
|
7786 | 7548 | "security": [
|
7787 | 7549 | {
|
7788 |
| - "ApiKeyAuth": [] |
| 7550 | + "ApiKeyHeaderAuth": [] |
| 7551 | + }, |
| 7552 | + { |
| 7553 | + "ApiKeyQueryAuth": [] |
7789 | 7554 | },
|
7790 | 7555 | {
|
7791 | 7556 | "": []
|
|
0 commit comments