Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added cb_homer #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions applications/crossbar/doc/homer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
### Homer

#### About Homer

#### Schema



#### Fetch

> GET /v2/accounts/{ACCOUNT_ID}/homer/registration/{FROM_ID}

```shell
curl -v -X GET \
-H "X-Auth-Token: {AUTH_TOKEN}" \
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/homer/registration/{FROM_ID}
```

#### Fetch

> GET /v2/accounts/{ACCOUNT_ID}/homer/call/{CALL_ID}

```shell
curl -v -X GET \
-H "X-Auth-Token: {AUTH_TOKEN}" \
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/homer/call/{CALL_ID}
```

28 changes: 28 additions & 0 deletions applications/crossbar/doc/ref/homer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
### Homer

#### About Homer

#### Schema



#### Fetch

> GET /v2/accounts/{ACCOUNT_ID}/homer/registration/{FROM_ID}

```shell
curl -v -X GET \
-H "X-Auth-Token: {AUTH_TOKEN}" \
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/homer/registration/{FROM_ID}
```

#### Fetch

> GET /v2/accounts/{ACCOUNT_ID}/homer/call/{CALL_ID}

```shell
curl -v -X GET \
-H "X-Auth-Token: {AUTH_TOKEN}" \
http://{SERVER}:8000/v2/accounts/{ACCOUNT_ID}/homer/call/{CALL_ID}
```

83 changes: 83 additions & 0 deletions applications/crossbar/priv/api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -27987,6 +27987,43 @@
},
"type": "object"
},
"system_config.crossbar.homer": {
"description": "Schema for crossbar.homer system_config",
"properties": {
"homer_sessid": {
"default": "change_me",
"description": "The session id to use with Homer",
"type": "string"
},
"password": {
"default": "change_me",
"description": "The password to use for authenticating with Homer",
"type": "string"
},
"retention_hours": {
"default": 72,
"description": "How long the Homer search period should be, in hours",
"minimum": 1,
"type": "integer"
},
"timezone": {
"default": "Etc/UTC",
"description": "The timezone that Homer requests should use. Defaults to UTC",
"type": "string"
},
"url": {
"default": "change_me",
"description": "The URL that homer should be accessed at",
"type": "string"
},
"username": {
"default": "change_me",
"description": "The username to use for authenticating with Homer",
"type": "string"
}
},
"type": "object"
},
"system_config.crossbar.local_resources": {
"description": "Schema for crossbar.local_resources system_config",
"properties": {
Expand Down Expand Up @@ -33608,6 +33645,12 @@
"required": true,
"type": "string"
},
"FROM_ID": {
"in": "path",
"name": "FROM_ID",
"required": true,
"type": "string"
},
"FUNCTION": {
"in": "path",
"name": "FUNCTION",
Expand Down Expand Up @@ -37672,6 +37715,46 @@
}
}
},
"/accounts/{ACCOUNT_ID}/homer/call/{CALL_ID}": {
"get": {
"parameters": [
{
"$ref": "#/parameters/auth_token_header"
},
{
"$ref": "#/parameters/CALL_ID"
},
{
"$ref": "#/parameters/ACCOUNT_ID"
}
],
"responses": {
"200": {
"description": "request succeeded"
}
}
}
},
"/accounts/{ACCOUNT_ID}/homer/registration/{FROM_ID}": {
"get": {
"parameters": [
{
"$ref": "#/parameters/auth_token_header"
},
{
"$ref": "#/parameters/FROM_ID"
},
{
"$ref": "#/parameters/ACCOUNT_ID"
}
],
"responses": {
"200": {
"description": "request succeeded"
}
}
}
},
"/accounts/{ACCOUNT_ID}/hotdesks": {
"get": {
"parameters": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"_id": "system_config.crossbar.homer",
"description": "Schema for crossbar.homer system_config",
"properties": {
"homer_sessid": {
"default": "change_me",
"description": "The session id to use with Homer",
"type": "string"
},
"password": {
"default": "change_me",
"description": "The password to use for authenticating with Homer",
"type": "string"
},
"retention_hours": {
"default": 72,
"description": "How long the Homer search period should be, in hours",
"minimum": 1,
"type": "integer"
},
"timezone": {
"default": "Etc/UTC",
"description": "The timezone that Homer requests should use. Defaults to UTC",
"type": "string"
},
"url": {
"default": "change_me",
"description": "The URL that homer should be accessed at",
"type": "string"
},
"username": {
"default": "change_me",
"description": "The username to use for authenticating with Homer",
"type": "string"
}
},
"type": "object"
}
Loading