|
5512 | 5512 | } |
5513 | 5513 | } |
5514 | 5514 | }, |
| 5515 | + "/v1/me/device-tokens": { |
| 5516 | + "get": { |
| 5517 | + "tags": [ |
| 5518 | + "tokens" |
| 5519 | + ], |
| 5520 | + "summary": "List device tokens", |
| 5521 | + "description": "List device access tokens for the currently authenticated user.", |
| 5522 | + "operationId": "current_user_device_token_list", |
| 5523 | + "parameters": [ |
| 5524 | + { |
| 5525 | + "in": "query", |
| 5526 | + "name": "limit", |
| 5527 | + "description": "Maximum number of items returned by a single call", |
| 5528 | + "schema": { |
| 5529 | + "nullable": true, |
| 5530 | + "type": "integer", |
| 5531 | + "format": "uint32", |
| 5532 | + "minimum": 1 |
| 5533 | + } |
| 5534 | + }, |
| 5535 | + { |
| 5536 | + "in": "query", |
| 5537 | + "name": "page_token", |
| 5538 | + "description": "Token returned by previous call to retrieve the subsequent page", |
| 5539 | + "schema": { |
| 5540 | + "nullable": true, |
| 5541 | + "type": "string" |
| 5542 | + } |
| 5543 | + }, |
| 5544 | + { |
| 5545 | + "in": "query", |
| 5546 | + "name": "sort_by", |
| 5547 | + "schema": { |
| 5548 | + "$ref": "#/components/schemas/IdSortMode" |
| 5549 | + } |
| 5550 | + } |
| 5551 | + ], |
| 5552 | + "responses": { |
| 5553 | + "200": { |
| 5554 | + "description": "successful operation", |
| 5555 | + "content": { |
| 5556 | + "application/json": { |
| 5557 | + "schema": { |
| 5558 | + "$ref": "#/components/schemas/DeviceAccessTokenResultsPage" |
| 5559 | + } |
| 5560 | + } |
| 5561 | + } |
| 5562 | + }, |
| 5563 | + "4XX": { |
| 5564 | + "$ref": "#/components/responses/Error" |
| 5565 | + }, |
| 5566 | + "5XX": { |
| 5567 | + "$ref": "#/components/responses/Error" |
| 5568 | + } |
| 5569 | + }, |
| 5570 | + "x-dropshot-pagination": { |
| 5571 | + "required": [] |
| 5572 | + } |
| 5573 | + } |
| 5574 | + }, |
| 5575 | + "/v1/me/device-tokens/{token_id}": { |
| 5576 | + "delete": { |
| 5577 | + "tags": [ |
| 5578 | + "tokens" |
| 5579 | + ], |
| 5580 | + "summary": "Delete device token", |
| 5581 | + "description": "Delete a device access token for the currently authenticated user.", |
| 5582 | + "operationId": "current_user_device_token_delete", |
| 5583 | + "parameters": [ |
| 5584 | + { |
| 5585 | + "in": "path", |
| 5586 | + "name": "token_id", |
| 5587 | + "description": "ID of the token", |
| 5588 | + "required": true, |
| 5589 | + "schema": { |
| 5590 | + "type": "string", |
| 5591 | + "format": "uuid" |
| 5592 | + } |
| 5593 | + } |
| 5594 | + ], |
| 5595 | + "responses": { |
| 5596 | + "204": { |
| 5597 | + "description": "successful deletion" |
| 5598 | + }, |
| 5599 | + "4XX": { |
| 5600 | + "$ref": "#/components/responses/Error" |
| 5601 | + }, |
| 5602 | + "5XX": { |
| 5603 | + "$ref": "#/components/responses/Error" |
| 5604 | + } |
| 5605 | + } |
| 5606 | + } |
| 5607 | + }, |
5515 | 5608 | "/v1/me/groups": { |
5516 | 5609 | "get": { |
5517 | 5610 | "tags": [ |
|
5736 | 5829 | } |
5737 | 5830 | } |
5738 | 5831 | }, |
5739 | | - "/v1/me/tokens": { |
5740 | | - "get": { |
5741 | | - "tags": [ |
5742 | | - "tokens" |
5743 | | - ], |
5744 | | - "summary": "List device access tokens", |
5745 | | - "description": "List device access tokens for the currently authenticated user.", |
5746 | | - "operationId": "current_user_token_list", |
5747 | | - "parameters": [ |
5748 | | - { |
5749 | | - "in": "query", |
5750 | | - "name": "limit", |
5751 | | - "description": "Maximum number of items returned by a single call", |
5752 | | - "schema": { |
5753 | | - "nullable": true, |
5754 | | - "type": "integer", |
5755 | | - "format": "uint32", |
5756 | | - "minimum": 1 |
5757 | | - } |
5758 | | - }, |
5759 | | - { |
5760 | | - "in": "query", |
5761 | | - "name": "page_token", |
5762 | | - "description": "Token returned by previous call to retrieve the subsequent page", |
5763 | | - "schema": { |
5764 | | - "nullable": true, |
5765 | | - "type": "string" |
5766 | | - } |
5767 | | - }, |
5768 | | - { |
5769 | | - "in": "query", |
5770 | | - "name": "sort_by", |
5771 | | - "schema": { |
5772 | | - "$ref": "#/components/schemas/IdSortMode" |
5773 | | - } |
5774 | | - } |
5775 | | - ], |
5776 | | - "responses": { |
5777 | | - "200": { |
5778 | | - "description": "successful operation", |
5779 | | - "content": { |
5780 | | - "application/json": { |
5781 | | - "schema": { |
5782 | | - "$ref": "#/components/schemas/DeviceAccessTokenResultsPage" |
5783 | | - } |
5784 | | - } |
5785 | | - } |
5786 | | - }, |
5787 | | - "4XX": { |
5788 | | - "$ref": "#/components/responses/Error" |
5789 | | - }, |
5790 | | - "5XX": { |
5791 | | - "$ref": "#/components/responses/Error" |
5792 | | - } |
5793 | | - }, |
5794 | | - "x-dropshot-pagination": { |
5795 | | - "required": [] |
5796 | | - } |
5797 | | - } |
5798 | | - }, |
5799 | | - "/v1/me/tokens/{token_id}": { |
5800 | | - "delete": { |
5801 | | - "tags": [ |
5802 | | - "tokens" |
5803 | | - ], |
5804 | | - "summary": "Delete device access token", |
5805 | | - "description": "Delete a device access token for the currently authenticated user.", |
5806 | | - "operationId": "current_user_token_delete", |
5807 | | - "parameters": [ |
5808 | | - { |
5809 | | - "in": "path", |
5810 | | - "name": "token_id", |
5811 | | - "description": "ID of the token", |
5812 | | - "required": true, |
5813 | | - "schema": { |
5814 | | - "type": "string", |
5815 | | - "format": "uuid" |
5816 | | - } |
5817 | | - } |
5818 | | - ], |
5819 | | - "responses": { |
5820 | | - "204": { |
5821 | | - "description": "successful deletion" |
5822 | | - }, |
5823 | | - "4XX": { |
5824 | | - "$ref": "#/components/responses/Error" |
5825 | | - }, |
5826 | | - "5XX": { |
5827 | | - "$ref": "#/components/responses/Error" |
5828 | | - } |
5829 | | - } |
5830 | | - } |
5831 | | - }, |
5832 | 5832 | "/v1/metrics/{metric_name}": { |
5833 | 5833 | "get": { |
5834 | 5834 | "tags": [ |
|
0 commit comments