|
5418 | 5418 | } |
5419 | 5419 | } |
5420 | 5420 | }, |
| 5421 | + "/v1/me/device-tokens": { |
| 5422 | + "get": { |
| 5423 | + "tags": [ |
| 5424 | + "tokens" |
| 5425 | + ], |
| 5426 | + "summary": "List device tokens", |
| 5427 | + "description": "List device access tokens for the currently authenticated user.", |
| 5428 | + "operationId": "current_user_device_token_list", |
| 5429 | + "parameters": [ |
| 5430 | + { |
| 5431 | + "in": "query", |
| 5432 | + "name": "limit", |
| 5433 | + "description": "Maximum number of items returned by a single call", |
| 5434 | + "schema": { |
| 5435 | + "nullable": true, |
| 5436 | + "type": "integer", |
| 5437 | + "format": "uint32", |
| 5438 | + "minimum": 1 |
| 5439 | + } |
| 5440 | + }, |
| 5441 | + { |
| 5442 | + "in": "query", |
| 5443 | + "name": "page_token", |
| 5444 | + "description": "Token returned by previous call to retrieve the subsequent page", |
| 5445 | + "schema": { |
| 5446 | + "nullable": true, |
| 5447 | + "type": "string" |
| 5448 | + } |
| 5449 | + }, |
| 5450 | + { |
| 5451 | + "in": "query", |
| 5452 | + "name": "sort_by", |
| 5453 | + "schema": { |
| 5454 | + "$ref": "#/components/schemas/IdSortMode" |
| 5455 | + } |
| 5456 | + } |
| 5457 | + ], |
| 5458 | + "responses": { |
| 5459 | + "200": { |
| 5460 | + "description": "successful operation", |
| 5461 | + "content": { |
| 5462 | + "application/json": { |
| 5463 | + "schema": { |
| 5464 | + "$ref": "#/components/schemas/DeviceAccessTokenResultsPage" |
| 5465 | + } |
| 5466 | + } |
| 5467 | + } |
| 5468 | + }, |
| 5469 | + "4XX": { |
| 5470 | + "$ref": "#/components/responses/Error" |
| 5471 | + }, |
| 5472 | + "5XX": { |
| 5473 | + "$ref": "#/components/responses/Error" |
| 5474 | + } |
| 5475 | + }, |
| 5476 | + "x-dropshot-pagination": { |
| 5477 | + "required": [] |
| 5478 | + } |
| 5479 | + } |
| 5480 | + }, |
| 5481 | + "/v1/me/device-tokens/{token_id}": { |
| 5482 | + "delete": { |
| 5483 | + "tags": [ |
| 5484 | + "tokens" |
| 5485 | + ], |
| 5486 | + "summary": "Delete device token", |
| 5487 | + "description": "Delete a device access token for the currently authenticated user.", |
| 5488 | + "operationId": "current_user_device_token_delete", |
| 5489 | + "parameters": [ |
| 5490 | + { |
| 5491 | + "in": "path", |
| 5492 | + "name": "token_id", |
| 5493 | + "description": "ID of the token", |
| 5494 | + "required": true, |
| 5495 | + "schema": { |
| 5496 | + "type": "string", |
| 5497 | + "format": "uuid" |
| 5498 | + } |
| 5499 | + } |
| 5500 | + ], |
| 5501 | + "responses": { |
| 5502 | + "204": { |
| 5503 | + "description": "successful deletion" |
| 5504 | + }, |
| 5505 | + "4XX": { |
| 5506 | + "$ref": "#/components/responses/Error" |
| 5507 | + }, |
| 5508 | + "5XX": { |
| 5509 | + "$ref": "#/components/responses/Error" |
| 5510 | + } |
| 5511 | + } |
| 5512 | + } |
| 5513 | + }, |
5421 | 5514 | "/v1/me/groups": { |
5422 | 5515 | "get": { |
5423 | 5516 | "tags": [ |
|
5642 | 5735 | } |
5643 | 5736 | } |
5644 | 5737 | }, |
5645 | | - "/v1/me/tokens": { |
5646 | | - "get": { |
5647 | | - "tags": [ |
5648 | | - "tokens" |
5649 | | - ], |
5650 | | - "summary": "List device access tokens", |
5651 | | - "description": "List device access tokens for the currently authenticated user.", |
5652 | | - "operationId": "current_user_token_list", |
5653 | | - "parameters": [ |
5654 | | - { |
5655 | | - "in": "query", |
5656 | | - "name": "limit", |
5657 | | - "description": "Maximum number of items returned by a single call", |
5658 | | - "schema": { |
5659 | | - "nullable": true, |
5660 | | - "type": "integer", |
5661 | | - "format": "uint32", |
5662 | | - "minimum": 1 |
5663 | | - } |
5664 | | - }, |
5665 | | - { |
5666 | | - "in": "query", |
5667 | | - "name": "page_token", |
5668 | | - "description": "Token returned by previous call to retrieve the subsequent page", |
5669 | | - "schema": { |
5670 | | - "nullable": true, |
5671 | | - "type": "string" |
5672 | | - } |
5673 | | - }, |
5674 | | - { |
5675 | | - "in": "query", |
5676 | | - "name": "sort_by", |
5677 | | - "schema": { |
5678 | | - "$ref": "#/components/schemas/IdSortMode" |
5679 | | - } |
5680 | | - } |
5681 | | - ], |
5682 | | - "responses": { |
5683 | | - "200": { |
5684 | | - "description": "successful operation", |
5685 | | - "content": { |
5686 | | - "application/json": { |
5687 | | - "schema": { |
5688 | | - "$ref": "#/components/schemas/DeviceAccessTokenResultsPage" |
5689 | | - } |
5690 | | - } |
5691 | | - } |
5692 | | - }, |
5693 | | - "4XX": { |
5694 | | - "$ref": "#/components/responses/Error" |
5695 | | - }, |
5696 | | - "5XX": { |
5697 | | - "$ref": "#/components/responses/Error" |
5698 | | - } |
5699 | | - }, |
5700 | | - "x-dropshot-pagination": { |
5701 | | - "required": [] |
5702 | | - } |
5703 | | - } |
5704 | | - }, |
5705 | | - "/v1/me/tokens/{token_id}": { |
5706 | | - "delete": { |
5707 | | - "tags": [ |
5708 | | - "tokens" |
5709 | | - ], |
5710 | | - "summary": "Delete device access token", |
5711 | | - "description": "Delete a device access token for the currently authenticated user.", |
5712 | | - "operationId": "current_user_token_delete", |
5713 | | - "parameters": [ |
5714 | | - { |
5715 | | - "in": "path", |
5716 | | - "name": "token_id", |
5717 | | - "description": "ID of the token", |
5718 | | - "required": true, |
5719 | | - "schema": { |
5720 | | - "type": "string", |
5721 | | - "format": "uuid" |
5722 | | - } |
5723 | | - } |
5724 | | - ], |
5725 | | - "responses": { |
5726 | | - "204": { |
5727 | | - "description": "successful deletion" |
5728 | | - }, |
5729 | | - "4XX": { |
5730 | | - "$ref": "#/components/responses/Error" |
5731 | | - }, |
5732 | | - "5XX": { |
5733 | | - "$ref": "#/components/responses/Error" |
5734 | | - } |
5735 | | - } |
5736 | | - } |
5737 | | - }, |
5738 | 5738 | "/v1/metrics/{metric_name}": { |
5739 | 5739 | "get": { |
5740 | 5740 | "tags": [ |
|
0 commit comments