refs #6451 extension approach

This commit is contained in:
Javier Segarra 2023-12-13 11:33:02 +01:00
parent d6f283738f
commit b7b5abbf53
3 changed files with 24 additions and 5 deletions

13
.vscode/settings.json vendored
View File

@ -11,24 +11,27 @@
"[javascript]": { "[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint" "editor.defaultFormatter": "dbaeumer.vscode-eslint"
}, },
"cSpell.words": ["salix", "fdescribe"], "cSpell.words": [
"salix",
"fdescribe"
],
"rest-client.previewOption": "body", "rest-client.previewOption": "body",
"rest-client.environmentVariables": { "rest-client.environmentVariables": {
"$shared": { "$shared": {
"version": "v1", "version": "v1",
"prodToken": "foo", "prodToken": "verdnatura",
"nonProdToken": "bar" "nonProdToken": "verdnatura"
}, },
"local": { "local": {
"version": "v2", "version": "v2",
"host": "localhost:3000", "host": "http://localhost:3000",
"token": "{{$shared nonProdToken}}", "token": "{{$shared nonProdToken}}",
"secretKey": "devSecret" "secretKey": "devSecret"
}, },
"production": { "production": {
"host": "example.com", "host": "example.com",
"token": "{{$shared prodToken}}", "token": "{{$shared prodToken}}",
"secretKey": "prodSecret" "secretKey" : "prodSecret"
} }
} }
} }

5
api/apiSalix/items.http Normal file
View File

@ -0,0 +1,5 @@
GET /api/items/findOne?filter=%7B%22where%22%3A%20%7B%22id%22%3A%201%7D%7D HTTP/1.1
Authorization: {{token}}
Content-Type: application/json
Host: localhost:5000

11
api/apiSalix/sign-in.http Normal file
View File

@ -0,0 +1,11 @@
# @name login
POST /api/VnUsers/sign-in HTTP/1.1
Content-Type: application/json
Host: localhost:3000
Content-Length: 45
{"user":"developer", "password": "nightmare"}