get accounts

This commit is contained in:
Tomek Osika
2023-11-12 02:08:14 +01:00
parent c493655f14
commit 385a591b32
6 changed files with 157 additions and 0 deletions

View File

@@ -45,6 +45,35 @@ var doc = `{
}
}
},
"/v1/accounts": {
"get": {
"description": "Lists all of the devices linked or registered",
"produces": [
"application/json"
],
"tags": [
"Accounts"
],
"summary": "List all accounts",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/api.Error"
}
}
}
}
},
"/v1/attachments": {
"get": {
"description": "List all downloaded attachments",
@@ -1951,6 +1980,9 @@ var doc = `{
},
"description": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
@@ -2090,6 +2122,10 @@ var doc = `{
"description": "Register and link Devices.",
"name": "Devices"
},
{
"description": "List registered and linked accounts",
"name": "Accounts"
},
{
"description": "Create, List and Delete Signal Groups.",
"name": "Groups"

View File

@@ -29,6 +29,35 @@
}
}
},
"/v1/accounts": {
"get": {
"description": "Lists all of the devices linked or registered",
"produces": [
"application/json"
],
"tags": [
"Accounts"
],
"summary": "List all accounts",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/api.Error"
}
}
}
}
},
"/v1/attachments": {
"get": {
"description": "List all downloaded attachments",
@@ -1935,6 +1964,9 @@
},
"description": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
@@ -2074,6 +2106,10 @@
"description": "Register and link Devices.",
"name": "Devices"
},
{
"description": "List registered and linked accounts",
"name": "Accounts"
},
{
"description": "Create, List and Delete Signal Groups.",
"name": "Groups"

View File

@@ -311,6 +311,25 @@ paths:
summary: Lists general information about the API
tags:
- General
/v1/accounts:
get:
description: Lists all of the devices linked or registered
produces:
- application/json
responses:
"200":
description: OK
schema:
items:
type: string
type: array
"400":
description: Bad Request
schema:
$ref: '#/definitions/api.Error'
summary: List all accounts
tags:
- Accounts
/v1/attachments:
get:
description: List all downloaded attachments
@@ -1372,6 +1391,8 @@ tags:
name: General
- description: Register and link Devices.
name: Devices
- description: List registered and linked accounts
name: Accounts
- description: Create, List and Delete Signal Groups.
name: Groups
- description: Send and Receive Signal Messages.