Merge lp:~asac/snappy-hub/webdm-port-4200 into lp:~snappy-dev/snappy-hub/webdm

Proposed by Alexander Sack
Status: Merged
Merged at revision: 78
Proposed branch: lp:~asac/snappy-hub/webdm-port-4200
Merge into: lp:~snappy-dev/snappy-hub/webdm
Diff against target: 143 lines (+21/-21)
5 files modified
README.md (+16/-16)
cmd/snappyd/snappyd.go (+1/-1)
pkg/meta/package.yaml (+2/-2)
www/README.md (+1/-1)
www/templates/layout.html (+1/-1)
To merge this branch: bzr merge lp:~asac/snappy-hub/webdm-port-4200
Reviewer Review Type Date Requested Status
Snappy Developers Pending
Review via email: mp+246984@code.launchpad.net

Description of the change

move to less commonly used port 4200

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README.md'
2--- README.md 2015-01-16 18:56:43 +0000
3+++ README.md 2015-01-20 09:39:21 +0000
4@@ -27,15 +27,15 @@
5
6 Assuming that 8022 is where ssh is listening on, e.g.; launched as:
7
8- kvm -m 768 -redir :8022::22 -redir :8080::8080 -hda snappy.img
9+ kvm -m 768 -redir :8022::22 -redir :4200::4200 -hda snappy.img
10
11 # Using
12
13 Given that the snappy system where it was installed on was created with
14
15- kvm -m 768 -redir :8022::22 -redir :8080::8080 -hda snappy.img
16+ kvm -m 768 -redir :8022::22 -redir :4200::4200 -hda snappy.img
17
18-Then pointing the browser to [http://localhost:8080] will take you to the
19+Then pointing the browser to [http://localhost:4200] will take you to the
20 portal.
21
22 ## API
23@@ -44,47 +44,47 @@
24
25 To retrieve current system image info:
26
27- curl http://localhost:8080/api/v1/systemimage/
28+ curl http://localhost:4200/api/v1/systemimage/
29
30 To check for system image update:
31
32- curl http://localhost:8080/api/v1/systemimage/checkForUpdate
33+ curl http://localhost:4200/api/v1/systemimage/checkForUpdate
34
35 To apply system image update:
36
37- curl --data "" http://localhost:8080/api/v1/systemimage/
38+ curl --data "" http://localhost:4200/api/v1/systemimage/
39
40 ### /api/v1/packages/
41
42 To install a package:
43
44- curl -H "Content-Type: application/json" -d '{"package":"xkcd-webserver"}' http://localhost:8080/api/v1/packages/
45+ curl -H "Content-Type: application/json" -d '{"package":"xkcd-webserver"}' http://localhost:4200/api/v1/packages/
46
47 To uninstall a package:
48
49- curl -X DELETE http://localhost:8080/api/v1/packages/xkcd-webserver
50+ curl -X DELETE http://localhost:4200/api/v1/packages/xkcd-webserver
51
52 To list packages:
53
54- curl http://localhost:8080/api/v1/packages/
55+ curl http://localhost:4200/api/v1/packages/
56
57 To get a specific package:
58
59- curl http://localhost:8080/api/v1/packages/xkcd-webserver
60+ curl http://localhost:4200/api/v1/packages/xkcd-webserver
61
62 To start or stop a service from a package:
63
64- curl -w "\nstatus code: %{http_code}\n" -d '{"status":0}' http://localhost:8080/api/v1/packages/webdm/snappyd
65+ curl -w "\nstatus code: %{http_code}\n" -d '{"status":0}' http://localhost:4200/api/v1/packages/webdm/snappyd
66
67 To get the icon for a package:
68
69- curl http://localhost:8080/api/v1/packages/xkcd-webserver/icon
70+ curl http://localhost:4200/api/v1/packages/xkcd-webserver/icon
71
72 ### /api/v1/oem
73
74 Grabs oem information from the oem package
75
76- curl http://localhost:8080/api/v1/oem/ && echo
77+ curl http://localhost:4200/api/v1/oem/ && echo
78 {“name”:”beagleboneblack.element14”,”vendor”:”element14”,”icon”:”meta/element14.png”,”version”:”1.0”,”type”:”oem”,”branding”:{“name”:”Beagle Bone Black”,”subname”:”element14”},”store”:{“oem-key”:”123456”}}
79
80 And OEM package needs to be installed, example OEM package can be found on
81@@ -94,10 +94,10 @@
82
83 This basically is a proxy to the store
84
85- curl http://localhost:8080/api/v1/store/search
86- curl http://localhost:8080/api/v1/store/search?q=xkcd
87+ curl http://localhost:4200/api/v1/store/search
88+ curl http://localhost:4200/api/v1/store/search?q=xkcd
89
90- curl http://localhost:8080/api/v1/store/package/com.ubuntu.snappy.xkcd-webserver
91+ curl http://localhost:4200/api/v1/store/package/com.ubuntu.snappy.xkcd-webserver
92
93 ## Web Front End
94
95
96=== modified file 'cmd/snappyd/snappyd.go'
97--- cmd/snappyd/snappyd.go 2014-11-24 00:42:15 +0000
98+++ cmd/snappyd/snappyd.go 2015-01-20 09:39:21 +0000
99@@ -31,7 +31,7 @@
100
101 var logger *log.Logger
102
103-const httpAddr string = ":8080"
104+const httpAddr string = ":4200"
105
106 func init() {
107 logger = log.New(os.Stderr, "Snappy: ", log.Ldate|log.Ltime|log.Lshortfile)
108
109=== modified file 'pkg/meta/package.yaml'
110--- pkg/meta/package.yaml 2015-01-19 21:11:46 +0000
111+++ pkg/meta/package.yaml 2015-01-20 09:39:21 +0000
112@@ -20,6 +20,6 @@
113 start: avahi-daemon -f avahi-daemon.conf
114 description: Avahi daemon
115 ports:
116- required: 8080
117-maintainer: Clapping Team
118+ required: 4200
119+maintainer: Sergio Schvezov <sergio.schvezov@canonical.com>
120 icon: meta/clap.png
121
122=== modified file 'www/README.md'
123--- www/README.md 2015-01-08 12:12:02 +0000
124+++ www/README.md 2015-01-20 09:39:21 +0000
125@@ -18,4 +18,4 @@
126
127 ./watch.sh
128
129-Leave this running in its own terminal window, and start work. Your changes should be copied over live to the snappy box, so you can see them on http://localhost:8080.
130+Leave this running in its own terminal window, and start work. Your changes should be copied over live to the snappy box, so you can see them on http://localhost:4200.
131
132=== modified file 'www/templates/layout.html'
133--- www/templates/layout.html 2015-01-19 18:59:26 +0000
134+++ www/templates/layout.html 2015-01-20 09:39:21 +0000
135@@ -80,7 +80,7 @@
136 <!-- config -->
137 <script src="/public/vendor/yui/yui/yui-min.js"></script>
138 <script>
139- //var url = 'http://192.168.234.171:8080';
140+ //var url = 'http://192.168.234.171:4200';
141 var url = '';
142
143 YUI.Env.iot = {

Subscribers

People subscribed via source and target branches