|
5450 | 5450 | } |
5451 | 5451 | } |
5452 | 5452 | }, |
| 5453 | + "/v1/me/device-tokens": { |
| 5454 | + "get": { |
| 5455 | + "tags": [ |
| 5456 | + "tokens" |
| 5457 | + ], |
| 5458 | + "summary": "List device tokens", |
| 5459 | + "description": "List device access tokens for the currently authenticated user.", |
| 5460 | + "operationId": "current_user_device_token_list", |
| 5461 | + "parameters": [ |
| 5462 | + { |
| 5463 | + "in": "query", |
| 5464 | + "name": "limit", |
| 5465 | + "description": "Maximum number of items returned by a single call", |
| 5466 | + "schema": { |
| 5467 | + "nullable": true, |
| 5468 | + "type": "integer", |
| 5469 | + "format": "uint32", |
| 5470 | + "minimum": 1 |
| 5471 | + } |
| 5472 | + }, |
| 5473 | + { |
| 5474 | + "in": "query", |
| 5475 | + "name": "page_token", |
| 5476 | + "description": "Token returned by previous call to retrieve the subsequent page", |
| 5477 | + "schema": { |
| 5478 | + "nullable": true, |
| 5479 | + "type": "string" |
| 5480 | + } |
| 5481 | + }, |
| 5482 | + { |
| 5483 | + "in": "query", |
| 5484 | + "name": "sort_by", |
| 5485 | + "schema": { |
| 5486 | + "$ref": "#/components/schemas/IdSortMode" |
| 5487 | + } |
| 5488 | + } |
| 5489 | + ], |
| 5490 | + "responses": { |
| 5491 | + "200": { |
| 5492 | + "description": "successful operation", |
| 5493 | + "content": { |
| 5494 | + "application/json": { |
| 5495 | + "schema": { |
| 5496 | + "$ref": "#/components/schemas/DeviceAccessTokenResultsPage" |
| 5497 | + } |
| 5498 | + } |
| 5499 | + } |
| 5500 | + }, |
| 5501 | + "4XX": { |
| 5502 | + "$ref": "#/components/responses/Error" |
| 5503 | + }, |
| 5504 | + "5XX": { |
| 5505 | + "$ref": "#/components/responses/Error" |
| 5506 | + } |
| 5507 | + }, |
| 5508 | + "x-dropshot-pagination": { |
| 5509 | + "required": [] |
| 5510 | + } |
| 5511 | + } |
| 5512 | + }, |
| 5513 | + "/v1/me/device-tokens/{token_id}": { |
| 5514 | + "delete": { |
| 5515 | + "tags": [ |
| 5516 | + "tokens" |
| 5517 | + ], |
| 5518 | + "summary": "Delete device token", |
| 5519 | + "description": "Delete a device access token for the currently authenticated user.", |
| 5520 | + "operationId": "current_user_device_token_delete", |
| 5521 | + "parameters": [ |
| 5522 | + { |
| 5523 | + "in": "path", |
| 5524 | + "name": "token_id", |
| 5525 | + "description": "ID of the token", |
| 5526 | + "required": true, |
| 5527 | + "schema": { |
| 5528 | + "type": "string", |
| 5529 | + "format": "uuid" |
| 5530 | + } |
| 5531 | + } |
| 5532 | + ], |
| 5533 | + "responses": { |
| 5534 | + "204": { |
| 5535 | + "description": "successful deletion" |
| 5536 | + }, |
| 5537 | + "4XX": { |
| 5538 | + "$ref": "#/components/responses/Error" |
| 5539 | + }, |
| 5540 | + "5XX": { |
| 5541 | + "$ref": "#/components/responses/Error" |
| 5542 | + } |
| 5543 | + } |
| 5544 | + } |
| 5545 | + }, |
5453 | 5546 | "/v1/me/groups": { |
5454 | 5547 | "get": { |
5455 | 5548 | "tags": [ |
|
5674 | 5767 | } |
5675 | 5768 | } |
5676 | 5769 | }, |
5677 | | - "/v1/me/tokens": { |
5678 | | - "get": { |
5679 | | - "tags": [ |
5680 | | - "tokens" |
5681 | | - ], |
5682 | | - "summary": "List device access tokens", |
5683 | | - "description": "List device access tokens for the currently authenticated user.", |
5684 | | - "operationId": "current_user_token_list", |
5685 | | - "parameters": [ |
5686 | | - { |
5687 | | - "in": "query", |
5688 | | - "name": "limit", |
5689 | | - "description": "Maximum number of items returned by a single call", |
5690 | | - "schema": { |
5691 | | - "nullable": true, |
5692 | | - "type": "integer", |
5693 | | - "format": "uint32", |
5694 | | - "minimum": 1 |
5695 | | - } |
5696 | | - }, |
5697 | | - { |
5698 | | - "in": "query", |
5699 | | - "name": "page_token", |
5700 | | - "description": "Token returned by previous call to retrieve the subsequent page", |
5701 | | - "schema": { |
5702 | | - "nullable": true, |
5703 | | - "type": "string" |
5704 | | - } |
5705 | | - }, |
5706 | | - { |
5707 | | - "in": "query", |
5708 | | - "name": "sort_by", |
5709 | | - "schema": { |
5710 | | - "$ref": "#/components/schemas/IdSortMode" |
5711 | | - } |
5712 | | - } |
5713 | | - ], |
5714 | | - "responses": { |
5715 | | - "200": { |
5716 | | - "description": "successful operation", |
5717 | | - "content": { |
5718 | | - "application/json": { |
5719 | | - "schema": { |
5720 | | - "$ref": "#/components/schemas/DeviceAccessTokenResultsPage" |
5721 | | - } |
5722 | | - } |
5723 | | - } |
5724 | | - }, |
5725 | | - "4XX": { |
5726 | | - "$ref": "#/components/responses/Error" |
5727 | | - }, |
5728 | | - "5XX": { |
5729 | | - "$ref": "#/components/responses/Error" |
5730 | | - } |
5731 | | - }, |
5732 | | - "x-dropshot-pagination": { |
5733 | | - "required": [] |
5734 | | - } |
5735 | | - } |
5736 | | - }, |
5737 | | - "/v1/me/tokens/{token_id}": { |
5738 | | - "delete": { |
5739 | | - "tags": [ |
5740 | | - "tokens" |
5741 | | - ], |
5742 | | - "summary": "Delete device access token", |
5743 | | - "description": "Delete a device access token for the currently authenticated user.", |
5744 | | - "operationId": "current_user_token_delete", |
5745 | | - "parameters": [ |
5746 | | - { |
5747 | | - "in": "path", |
5748 | | - "name": "token_id", |
5749 | | - "description": "ID of the token", |
5750 | | - "required": true, |
5751 | | - "schema": { |
5752 | | - "type": "string", |
5753 | | - "format": "uuid" |
5754 | | - } |
5755 | | - } |
5756 | | - ], |
5757 | | - "responses": { |
5758 | | - "204": { |
5759 | | - "description": "successful deletion" |
5760 | | - }, |
5761 | | - "4XX": { |
5762 | | - "$ref": "#/components/responses/Error" |
5763 | | - }, |
5764 | | - "5XX": { |
5765 | | - "$ref": "#/components/responses/Error" |
5766 | | - } |
5767 | | - } |
5768 | | - } |
5769 | | - }, |
5770 | 5770 | "/v1/metrics/{metric_name}": { |
5771 | 5771 | "get": { |
5772 | 5772 | "tags": [ |
|
0 commit comments