Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mordka committed Jul 31, 2017
1 parent 921cd1a commit 37ad3b2
Show file tree
Hide file tree
Showing 8 changed files with 122 additions and 26 deletions.
96 changes: 96 additions & 0 deletions source/includes/_addons.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
## Addons

Represents Unleash hardware addons

### Create a addon

Creates new addon item

#### API Endpoint

`POST /addon`


#### Parameters

Name | Type | Constraints | Description
--------|-------|--------- | ------
`id` | string, uuid | (auto generated) | database hash id
`name` | string | required | addon name
`price` | string | required | addon price per month
`currency` | string | required | price currency in standard ISO 4217 - e.g. AUD
`description` | string | required | addon description, features available
`createdAt` | timestamp | (auto generated) | item created timestamp
`updatedAt` | timestamp | (auto generated) | item updated timestamp


### Get a addon

Retrieve addon by ID

#### API Endpoint

`GET /addon/{id}`

```
GET /addon/{id}
```


#### Parameters

Name | Type | Constraints | Description
--------|-------|--------- | ------
id | string | required, uuid format| id of the addon



### List addons

```
GET /addon
```
List all the addons
#### API Endpoint

`GET /addon`

### Update a addon


```
PUT /addon/{id}
```
Replace a given attribute with new value


#### API Endpoint

` PUT /addon/{id}`

#### Parameters
Name | Type | Constraints | Description
--------|-------|--------- | ------
attributeName | string | required| the name of the attribute
attributeValue | string | required| the value to assign


### Delete an addon

Deletes the addon by id

#### API Endpoint

` DELETE /addon/{id}`

```
DELETE /addon/{id}
```

#### Parameters

Name | Type | Constraints | Description
--------|-------|--------- | ------
id | string | required, uuid format| id of the addon


6 changes: 3 additions & 3 deletions source/includes/_company.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ POST /company

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
id | string, uuid | (auto generated) | database hash id
owner | string | required, uuid format| The foreign key id of company owner
Expand Down Expand Up @@ -80,7 +80,7 @@ Retrieve company by ID

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
id | string | required, uuid format| id of the company

Expand Down Expand Up @@ -110,7 +110,7 @@ Replace a given attribute with new value
` PUT /company/{id}`

#### Parameters
Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
attributeName | string | required| the name of the attribute
attributeValue | string | required| the value to assign
Expand Down
8 changes: 4 additions & 4 deletions source/includes/_device.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Creates new device item

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
id | string, uuid | (auto generated) | database hash id
owner | string | required, uuid format| The foreign key id of device owner
Expand All @@ -41,7 +41,7 @@ Retrieve device by ID

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
id | string | required, uuid format| id of the device

Expand Down Expand Up @@ -71,7 +71,7 @@ Replace a given attribute with new value
` PUT /device/{id}`

#### Parameters
Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
attributeName | string | required| the name of the attribute
attributeValue | string | required| the value to assign
Expand All @@ -91,7 +91,7 @@ Deletes the device by id

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
id | string | required, uuid format| id of the device

Expand Down
2 changes: 1 addition & 1 deletion source/includes/_library.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ In order to upload file to Unleash S3, call this endpoint to receive presigned P
` POST /library/upload`

#### Parameters
Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
deviceId | string | required| the device id, which was used to capture the file
sessionId | string | required| the session id the file belongs to
Expand Down
8 changes: 4 additions & 4 deletions source/includes/_modelling.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Call API for presigned post request and then upload it manually using PUT reques

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
`deviceId` | string | required| device id
`sessionId` | number | required | session id
Expand Down Expand Up @@ -36,7 +36,7 @@ POST https://94hx3w6zfh.execute-api.ap-southeast-2.amazonaws.com/unleash/stitch

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
`items` | array | required| items to upload
`deviceId` | string | required| device id
Expand All @@ -54,7 +54,7 @@ POST /odm/process

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
identityId | string | required| Cognito identity id of the user
deviceId | string | required| device id
Expand All @@ -75,7 +75,7 @@ That might be used to update the UI once the modelling is finished or is interru

### Query parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
task | string | required| the base64 encoded task ARN to query

Expand Down
10 changes: 5 additions & 5 deletions source/includes/_plans.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ Creates new plan item

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
`id` | string, uuid | (auto generated) | database hash id
`name` | string | required | plan name for presenting
`name` | string | required | plan name
`description` | string | required | plan description, features available
`price` | number | required | plan price per month (x*100)
`currency` | string | optional | price currency in standard ISO 4217. Default: AUD
Expand All @@ -50,7 +50,7 @@ Retrieve plan by ID

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
id | string | required, uuid format| id of the plan

Expand Down Expand Up @@ -80,7 +80,7 @@ Replace a given attribute with new value
` PUT /plan/{id}`

#### Parameters
Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
attributeName | string | required| the name of the attribute
attributeValue | string | required| the value to assign
Expand All @@ -100,7 +100,7 @@ Deletes the plan by id

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
id | string | required, uuid format| id of the plan

Expand Down
10 changes: 5 additions & 5 deletions source/includes/_products.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ Creates new product item

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
`id` | string, uuid | (auto generated) | database hash id
`price` | string | required | product price per month
`currency` | string | required | price currency in standard ISO 4217 - e.g. AUD
`name` | string | required | product name for presenting
`name` | string | required | product name
`description` | string | required | product description, features available
`createdAt` | timestamp | (auto generated) | item created timestamp
`updatedAt` | timestamp | (auto generated) | item updated timestamp
Expand All @@ -39,7 +39,7 @@ Retrieve product by ID

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
id | string | required, uuid format| id of the product

Expand Down Expand Up @@ -69,7 +69,7 @@ Replace a given attribute with new value
` PUT /product/{id}`

#### Parameters
Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
attributeName | string | required| the name of the attribute
attributeValue | string | required| the value to assign
Expand All @@ -89,7 +89,7 @@ Deletes the product by id

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
id | string | required, uuid format| id of the product

Expand Down
8 changes: 4 additions & 4 deletions source/includes/_user.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Create new representation of Unleash User. This is post user registration and us

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
id | string, uuid | (auto generated) | database hash id
username | string | required | Username alias
Expand All @@ -37,7 +37,7 @@ Retrieve user by ID

#### Parameters

Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
id | string | required, uuid format| id of the user

Expand Down Expand Up @@ -67,7 +67,7 @@ Replace a given attribute with new value
` PUT /user/{id}`

#### Parameters
Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
attributeName | string | required| the name of the attribute
attributeValue | string | required| the value to assign
Expand All @@ -91,7 +91,7 @@ Company logos are to the following path:
` POST /user/uploadLogo`

#### Parameters
Name | Type | Contraints | Description
Name | Type | Constraints | Description
--------|-------|--------- | ------
companyId | string | required| id of the company
filename | string | required| logo file name
Expand Down

0 comments on commit 37ad3b2

Please sign in to comment.