Skip to content

Commit 38a58c8

Browse files
authored
Merge pull request #78973 from KingdomOfEnds/dt-blobs
blobs refresh
2 parents 8dc995e + b5edcfb commit 38a58c8

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

articles/digital-twins/how-to-add-blobs.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: alinast
66
ms.service: digital-twins
77
services: digital-twins
88
ms.topic: conceptual
9-
ms.date: 01/11/2019
9+
ms.date: 06/05/2019
1010
ms.author: v-adgera
1111
ms.custom: seodec18
1212
---
@@ -31,7 +31,7 @@ In addition to **Content-Type** and **Content-Disposition**, Azure Digital Twins
3131

3232
The four main JSON schemas are:
3333

34-
![JSON schemas][1]
34+
[![JSON schemas](media/how-to-add-blobs/blob-models.PNG)](media/how-to-add-blobs/blob-models.PNG#lightbox)
3535

3636
JSON blob metadata conforms to the following model:
3737

@@ -178,7 +178,7 @@ var response = await httpClient.PostAsync("spaces/blobs", multipartContent);
178178

179179
Lastly, [cURL](https://curl.haxx.se/) users can make multipart form requests in the same manner:
180180

181-
![Device blobs][5]
181+
[![Device blobs](media/how-to-add-blobs/curl.PNG)](media/how-to-add-blobs/curl.PNG#lightbox)
182182

183183
```bash
184184
curl
@@ -206,7 +206,7 @@ The following sections describe the core blob-related API endpoints and their fu
206206
207207
You can attach blobs to devices. The following image shows the Swagger reference documentation for your Management APIs. It specifies device-related API endpoints for blob consumption and any required path parameters to pass into them.
208208
209-
![Device blobs][2]
209+
[![Device blobs](media/how-to-add-blobs/blobs-device-api.PNG)](media/how-to-add-blobs/blobs-device-api.PNG#lightbox)
210210
211211
For example, to update or create a blob and attach the blob to a device, make an authenticated HTTP PATCH request to:
212212
@@ -224,7 +224,7 @@ Successful requests return a JSON object as [described earlier](#blobModel).
224224
225225
You can also attach blobs to spaces. The following image lists all space API endpoints responsible for handling blobs. It also lists any path parameters to pass into those endpoints.
226226
227-
![Space blobs][3]
227+
[![Space blobs](media/how-to-add-blobs/blobs-space-api.PNG)](media/how-to-add-blobs/blobs-space-api.PNG#lightbox)
228228
229229
For example, to return a blob attached to a space, make an authenticated HTTP GET request to:
230230
@@ -244,7 +244,7 @@ A PATCH request to the same endpoint updates metadata descriptions and creates v
244244
245245
You can attach blobs to user models (for example, to associate a profile picture). The following image shows relevant user API endpoints and any required path parameters, like `id`:
246246
247-
![User blobs][4]
247+
[![User blobs](media/how-to-add-blobs/blobs-users-api.PNG)](media/how-to-add-blobs/blobs-users-api.PNG#lightbox)
248248
249249
For example, to fetch a blob attached to a user, make an authenticated HTTP GET request with any required form data to:
250250
@@ -282,11 +282,4 @@ Also, verify that each multipart chunk has a corresponding **Content-Type** as n
282282
283283
- To learn more about Swagger reference documentation for Azure Digital Twins, read [Use Azure Digital Twins Swagger](how-to-use-swagger.md).
284284
285-
- To upload blobs through Postman, read [How to configure Postman](./how-to-configure-postman.md).
286-
287-
<!-- Images -->
288-
[1]: media/how-to-add-blobs/blob-models.PNG
289-
[2]: media/how-to-add-blobs/blobs-device-api.PNG
290-
[3]: media/how-to-add-blobs/blobs-space-api.PNG
291-
[4]: media/how-to-add-blobs/blobs-users-api.PNG
292-
[5]: media/how-to-add-blobs/curl.PNG
285+
- To upload blobs through Postman, read [How to configure Postman](./how-to-configure-postman.md).
1.41 KB
Loading

includes/digital-twins-management-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
In the examples below, `YOUR_MANAGEMENT_API_URL` refers to the URI of the Digital Twins APIs:
1414

1515
```plaintext
16-
https://YOUR_INSTANCE_NAME.YOUR_LOCATION.azuresmartspaces.net/management/api/v1.0/
16+
https://YOUR_INSTANCE_NAME.YOUR_LOCATION.azuresmartspaces.net/management/api/v1.0
1717
```
1818

1919
| Name | Replace with |

0 commit comments

Comments
 (0)