add some more .bru updates

This commit is contained in:
Nico Fricke 2025-01-20 15:31:11 +01:00
parent 577fd4078b
commit c6cc3b6418
5 changed files with 27 additions and 24 deletions

View File

@ -5,16 +5,11 @@ meta {
}
get {
url: http://localhost:3000/api/v1/user/test123/files?path=&nesting=5
url:
body: none
auth: oauth2
}
params:query {
path:
nesting: 5
}
auth:oauth2 {
grant_type: authorization_code
callback_url: https://localhost:1234
@ -26,3 +21,7 @@ auth:oauth2 {
state:
pkce: false
}
script:post-response {
bru.setVar('access_token', res.body.access_token);
}

View File

@ -5,11 +5,15 @@ meta {
}
get {
url: http://localhost:3000/api/v1/user/test123/download?path=test/blub.txt
url: http://localhost:3000/api/v1/user/cdf48a88-f0ae-4c09-acc3-c9f056229d95/download?path=test/blub.txt
body: none
auth: none
auth: bearer
}
params:query {
path: test/blub.txt
}
auth:bearer {
token: {{access_token}}
}

View File

@ -5,9 +5,9 @@ meta {
}
get {
url: http://localhost:3000/api/v1/user/test123/files?path=&nesting=5
url: http://localhost:3000/api/v1/user/cdf48a88-f0ae-4c09-acc3-c9f056229d95/files?path=&nesting=5
body: none
auth: oauth2
auth: bearer
}
params:query {
@ -15,14 +15,6 @@ params:query {
nesting: 5
}
auth:oauth2 {
grant_type: authorization_code
callback_url: https://localhost:1234
authorization_url: https://login.nifni.net/realms/public_selfhosted/protocol/openid-connect/auth
access_token_url: https://login.nifni.net/realms/public_selfhosted/protocol/openid-connect/token
client_id: casket
client_secret:
scope:
state:
pkce: false
auth:bearer {
token: {{access_token}}
}

View File

@ -5,7 +5,11 @@ meta {
}
get {
url: http://localhost:3000/api/v1/user/
url: http://localhost:3000/api/v1/user//files
body: none
auth: none
auth: bearer
}
auth:bearer {
token: {{access_token}}
}

View File

@ -5,9 +5,13 @@ meta {
}
post {
url: http://localhost:3000/api/v1/user/test123/files
url: http://localhost:3000/api/v1/user/cdf48a88-f0ae-4c09-acc3-c9f056229d95/files
body: multipartForm
auth: none
auth: bearer
}
auth:bearer {
token: {{access_token}}
}
body:multipart-form {