Skip to content

Commit

Permalink
Add endpoint to retrieve the version of the appliance
Browse files Browse the repository at this point in the history
  • Loading branch information
aw committed Jul 6, 2015
1 parent 00bda7d commit 4ec5e38
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.1.2 (2015-07-06)

* Add endpoint to retrieve the version of the appliance

## 1.1.1 (2015-07-06)

* Add endpoint to retrieve compressed logs
Expand Down
2 changes: 1 addition & 1 deletion api/v1/core/allowed.l
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Copyright (c) 2015 Alexander Williams, Unscramble <license@unscramble.jp>

(allowed ("api/v1/admin")
newtoken token setup license settings update logs )
newtoken token setup license settings update logs version )

(allow "docs/" T)

Expand Down
22 changes: 22 additions & 0 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ All API calls are prefixed with `/api/v1/admin`
9. Update the network and application settings
10. View the network and application settings
11. Retrieve compressed log files
12. Retrieve the version of the virtual appliance


### 1. Authentication

Expand Down Expand Up @@ -284,4 +286,24 @@ Content-Type: application/octet-stream
Filename: logs.tar.gz
```

### 12. Retrieve the version of the virtual appliance

**Endpoint**

```
GET /api/v1/admin/version
```

**Example**

```
curl -X GET https://enterprise.vm:8443/api/v1/admin/version?token=yourtoken
HTTP/1.1 200 OK
Content-Type: application/json
{
"version": "1.0.0"
}
```

**Powered by [Jidoteki](https://jidoteki.com) - [Copyright notices](NOTICE)**
2 changes: 1 addition & 1 deletion module.l
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[de MODULE_INFO
("name" "jidoteki-admin-api")
("version" "1.1.1")
("version" "1.1.2")
("summary" "Jidoteki Admin API")
("source" "https://jidoteki.com")
("author" "Alexander Williams")
Expand Down

0 comments on commit 4ec5e38

Please sign in to comment.