File tree 6 files changed +14
-9
lines changed
6 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -61,8 +61,6 @@ git clone https://github.com/mindsphere/mindsphere-python-sdk-examples.git
61
61
- Unzip the downloaded file.
62
62
- Navigate to <some path where unzipped folder is located >/mindsphere-python-sdk_1.0.3/modules/
63
63
- Copy .whl files of required dependent service/services in 'requirements' folder. (For this project(mindsphere-sdk-python-examples) we will need all the .whl files but you can choose to use only required subset of all available SDKs for your project.)
64
- - Kindly note that Tenant Credential Support is removed from python SDKs from now. Hence we strongly recommend using
65
- latest version(1.0.3) of mindsphere-core library.
66
64
- ` requirements ` folder is already created for your convenience.
67
65
- For convenience, requirements.txt is populated with relative path to copied dependencies.
68
66
@@ -125,8 +123,8 @@ git clone https://github.com/mindsphere/mindsphere-python-sdk-examples.git
125
123
- In case of Self Hosted Application, component name and URL will be as per customer's deployment strategy.
126
124
8 . Add one endpoint for your component using /** to match all of your application paths.
127
125
9 . Set the content-security-policy according to the examples:
128
- - For Europe1 : default-src 'self' * .eu1.mindsphere.io; style-src * 'unsafe-inline'; script-src 'self' 'unsafe-inline' * .eu1.mindsphere.io; img-src * data:;
129
- - For Europe2: default-src 'self' * .eu1.mindsphere.io * .eu2.mindsphere.io; style-src * 'unsafe-inline'; script-src 'self' 'unsafe-inline' * .eu1.mindsphere.io * .eu2.mindsphere.io; img-src * data:;
126
+ - For Europe1 : default-src 'self' * .eu1.mindsphere.io; style-src * 'unsafe-inline'; script-src 'self' 'unsafe-inline' * .eu1.mindsphere.io code.jquery.com cdnjs.cloudflare.com; font-src 'self' 'unsafe-inline' fonts.gstatic.com * .eu1.mindsphere.io ; img-src * data:;
127
+ - For Europe2: default-src 'self' * .eu1.mindsphere.io * .eu2.mindsphere.io; style-src * 'unsafe-inline'; script-src 'self' 'unsafe-inline' * .eu1.mindsphere.io * .eu2.mindsphere.io code.jquery.com cdnjs.cloudflare.com; font-src 'self' 'unsafe-inline' fonts.gstatic.com * .eu1.mindsphere. * .eu2.mindsphere.io ; img-src * data:;
130
128
10 . Click on ** Save** .
131
129
132
130
#### Add roles and Scopes
Original file line number Diff line number Diff line change @@ -18,6 +18,5 @@ applications:
18
18
MDSP_OS_VM_APP_VERSION : <YOUR-APPLICATION-VERSION--HERE> # application version provided in Developer Cockpit at a time of application creation.
19
19
MDSP_KEY_STORE_CLIENT_ID : <YOUR-CLIENT-ID-HERE> # CLIENT_ID of application received from `App Credentials` in Developer Cockpit
20
20
MDSP_KEY_STORE_CLIENT_SECRET : <YOUR-HOST-TENANT-HERE> # CLIENT_SECRET of application received from `App Credentials` in Developer Cockpit
21
- # For mindsphere-java-sdk-examples above environment variables are sufficient.
22
- # You can append your own environment variables here.
21
+
23
22
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ requirements/iotfileservices-3.2.4-py3-none-any.whl
3
3
requirements/assetmanagement-3.11.2-py3-none-any.whl
4
4
requirements/eventanalytics-3.1.3-py3-none-any.whl
5
5
requirements/iottsbulk-3.5.0-py3-none-any.whl
6
- requirements/timeseries-3.4.2 -py3-none-any.whl
6
+ requirements/timeseries-3.4.1 -py3-none-any.whl
7
7
requirements/iottsaggregates-4.0.0-py3-none-any.whl
8
- requirements/mindconnect-3.5.1 -py3-none-any.whl
8
+ requirements/mindconnect-3.5.0 -py3-none-any.whl
9
9
PyJWT == 1.7.1
10
10
python-dateutil == 2.8.0
11
11
pytz == 2018.9
Original file line number Diff line number Diff line change 7
7
rel ="stylesheet ">
8
8
< link rel ="stylesheet " type ="text/css "
9
9
href ="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.24.2/swagger-ui.css ">
10
- < link rel ="stylesheet " type ="text/css " href ="/swagger-ui/SwaggerHeader.css ">
11
10
< style >
12
11
html {
13
12
box-sizing : border-box;
Original file line number Diff line number Diff line change 8
8
path ('logs/' , views .LogsView .as_view ()),
9
9
path ('cls/' , views .LogsClearView .as_view ()),
10
10
path ('' , views .IndexView .as_view ()),
11
+ path ('app-info.json' , views .AppInfoView .as_view ()),
11
12
]
Original file line number Diff line number Diff line change @@ -34,6 +34,14 @@ def get(self, request):
34
34
35
35
return HttpResponse (os .environ ['MDSP_USER_TENANT' ], content_type = 'application/string' , status = status .HTTP_200_OK )
36
36
37
+ class AppInfoView (APIView ):
38
+
39
+ def get (self , request ):
40
+ """
41
+ Show Application Info.
42
+ """
43
+
44
+ return HttpResponse ("Python SDK Sample Example" , content_type = 'application/string' , status = status .HTTP_200_OK )
37
45
38
46
class TokenView (APIView ):
39
47
You can’t perform that action at this time.
0 commit comments