Skip to content

Commit 739085a

Browse files
committed
Switch API client examples from Postman to Bruno, see https://www.usebruno.com/compare/bruno-vs-postman
1 parent 33323f5 commit 739085a

18 files changed

+362
-749
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Change Log
22

3+
Switch API client examples from Postman to Bruno, see https://www.usebruno.com/compare/bruno-vs-postman.
4+
35
## 9.4.2 - 2025-09-29
46

57
Add support for expand=originalStoragePath in SearchRequest.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
meta {
2+
name: API login
3+
type: http
4+
seq: 1
5+
}
6+
7+
post {
8+
url: {{assetsUrl}}/services/apilogin
9+
body: multipartForm
10+
auth: none
11+
}
12+
13+
body:multipart-form {
14+
username: {{assetsUsername}}
15+
password: {{assetsPassword}}
16+
clientId: {{assetsClientId}}
17+
}
18+
19+
script:post-response {
20+
var data = res.getBody();
21+
bru.setEnvVar("assetsAuthToken", data.authToken);
22+
}
23+
24+
settings {
25+
encodeUrl: true
26+
}
27+
28+
docs {
29+
WoodWing Helpcenter: [Assets Server REST API - API login](https://helpcenter.woodwing.com/hc/en-us/articles/360041851192-Assets-Server-REST-API-API-login)
30+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
meta {
2+
name: Download file
3+
type: http
4+
seq: 9
5+
}
6+
7+
get {
8+
url: {{assetsUrl}}/file/:assetId/*/:filename?_=&forceDownload=true
9+
body: none
10+
auth: inherit
11+
}
12+
13+
params:query {
14+
_:
15+
forceDownload: true
16+
}
17+
18+
params:path {
19+
assetId:
20+
filename:
21+
}
22+
23+
settings {
24+
encodeUrl: true
25+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
meta {
2+
name: browse
3+
type: http
4+
seq: 3
5+
}
6+
7+
post {
8+
url: {{assetsUrl}}/services/browse
9+
body: multipartForm
10+
auth: inherit
11+
}
12+
13+
body:multipart-form {
14+
path:
15+
~fromRoot:
16+
~includeFolders:
17+
~includeAsset:
18+
~includeExtensions:
19+
}
20+
21+
settings {
22+
encodeUrl: true
23+
timeout: 0
24+
}
25+
26+
docs {
27+
WoodWing Helpcenter: [Assets Server REST API - browse](https://helpcenter.woodwing.com/hc/en-us/articles/360042268711-Assets-Server-REST-API-browse)
28+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"version": "1",
3+
"name": "Assets REST API",
4+
"type": "collection",
5+
"ignore": [
6+
"node_modules",
7+
".git"
8+
]
9+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
meta {
2+
name: checkout
3+
type: http
4+
seq: 10
5+
}
6+
7+
post {
8+
url: {{assetsUrl}}/services/checkout/:assetId?download=
9+
body: none
10+
auth: inherit
11+
}
12+
13+
params:query {
14+
download:
15+
}
16+
17+
params:path {
18+
assetId:
19+
}
20+
21+
settings {
22+
encodeUrl: true
23+
}
24+
25+
docs {
26+
WoodWing Helpcenter: [Assets Server REST API - checkout](https://helpcenter.woodwing.com/hc/en-us/articles/360041851212-Assets-Server-REST-API-checkout)
27+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
meta {
2+
name: Assets REST API
3+
}
4+
5+
auth {
6+
mode: bearer
7+
}
8+
9+
auth:bearer {
10+
token: {{assetsAuthToken}}
11+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
meta {
2+
name: copy
3+
type: http
4+
seq: 7
5+
}
6+
7+
post {
8+
url: {{assetsUrl}}/services/copy
9+
body: multipartForm
10+
auth: inherit
11+
}
12+
13+
body:multipart-form {
14+
source:
15+
target:
16+
folderReplacePolicy:
17+
fileReplacePolicy:
18+
filterQuery:
19+
~flattenFolders:
20+
~async:
21+
}
22+
23+
settings {
24+
encodeUrl: true
25+
}
26+
27+
docs {
28+
WoodWing Helpcenter: [Assets Server REST API - copy](https://helpcenter.woodwing.com/hc/en-us/articles/360042268731-Assets-Server-REST-API-copy)
29+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
meta {
2+
name: create
3+
type: http
4+
seq: 4
5+
}
6+
7+
post {
8+
url: {{assetsUrl}}/services/create
9+
body: multipartForm
10+
auth: inherit
11+
}
12+
13+
body:multipart-form {
14+
Filedata: @file()
15+
metadataToReturn:
16+
~metadata:
17+
~FIELD:
18+
~nextUrl:
19+
}
20+
21+
settings {
22+
encodeUrl: true
23+
}
24+
25+
docs {
26+
WoodWing Helpcenter: [Assets Server REST API - create](https://helpcenter.woodwing.com/hc/en-us/articles/360042268771-Assets-Server-REST-API-create)
27+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
vars {
2+
assetsUrl: https://assets.example.com
3+
assetsUsername: username
4+
assetsClientId:
5+
}
6+
vars:secret [
7+
assetsAuthToken,
8+
assetsPassword
9+
]

0 commit comments

Comments
 (0)