GET posts [dev] 200
This commit is contained in:
parent
0aea6c0dbd
commit
b7873ebd7c
8 changed files with 141 additions and 3 deletions
16
contrib/bruno/Get Posts.bru
Normal file
16
contrib/bruno/Get Posts.bru
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
info:
|
||||
name: Get Posts
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: https://jsonplaceholder.typicode.com/users
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
|
||||
docs: This request retrieves a list of users from the JSONPlaceholder API.
|
||||
15
contrib/bruno/Untitled.bru
Normal file
15
contrib/bruno/Untitled.bru
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
info:
|
||||
name: Untitled
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: ""
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
15
contrib/bruno/blogs.yml
Normal file
15
contrib/bruno/blogs.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
info:
|
||||
name: blogs
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{Blogs}}/api/v1/blog"
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
6
contrib/bruno/environments/Development.yml
Normal file
6
contrib/bruno/environments/Development.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
name: Development
|
||||
variables:
|
||||
- name: Blogs
|
||||
value: https://localhost:5003
|
||||
- name: Authority
|
||||
value: https://localhost:5001
|
||||
6
contrib/bruno/environments/Production.yml
Normal file
6
contrib/bruno/environments/Production.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
name: Production
|
||||
variables:
|
||||
- name: Authority
|
||||
value: https://yavsc.pschneider.fr
|
||||
- name: Blogs
|
||||
value: https://blogs.pschneider.fr
|
||||
42
contrib/bruno/opencollection.yml
Normal file
42
contrib/bruno/opencollection.yml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
opencollection: 1.0.0
|
||||
|
||||
info:
|
||||
name: blogs
|
||||
config:
|
||||
proxy:
|
||||
inherit: true
|
||||
config:
|
||||
protocol: http
|
||||
hostname: ""
|
||||
port: ""
|
||||
auth:
|
||||
username: ""
|
||||
password: ""
|
||||
bypassProxy: ""
|
||||
|
||||
request:
|
||||
auth:
|
||||
type: oauth2
|
||||
flow: authorization_code
|
||||
authorizationUrl: "{{Authority}}/connect/authorize"
|
||||
accessTokenUrl: "{{Authority}}/connect/token"
|
||||
callbackUrl: https://localhost:5001
|
||||
credentials:
|
||||
clientId: postit
|
||||
placement: body
|
||||
scope: openid blogs
|
||||
pkce: {}
|
||||
tokenConfig:
|
||||
id: credentials
|
||||
placement:
|
||||
header: Bearer
|
||||
source: access_token
|
||||
settings:
|
||||
autoFetchToken: true
|
||||
autoRefreshToken: false
|
||||
bundled: false
|
||||
extensions:
|
||||
bruno:
|
||||
ignore:
|
||||
- node_modules
|
||||
- .git
|
||||
Loading…
Add table
Add a link
Reference in a new issue