refs #6451 extension approach

This commit is contained in:
Javier Segarra 2023-12-13 11:30:30 +01:00
parent a36f22a414
commit c3593a9a34
63 changed files with 1256 additions and 4 deletions

24
.vscode/settings.json vendored
View File

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

24
api/Api/Account/login.bru Normal file
View File

@ -0,0 +1,24 @@
meta {
name: login
type: http
seq: 1
}
post {
url: {{URL}}/api/VnUsers/sign-in
body: json
auth: none
}
body:json {
{"user":"developer", "password": "nightmare"}
}
body:multipart-form {
user: developer
password: nightmare
}
script:post-response {
bru.setEnvVar('TOKEN', res.body.token)
}

View File

@ -0,0 +1,19 @@
meta {
name: -Buys -packaging
type: http
seq: 1
}
get {
url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1
body: none
auth: none
}
query {
entry: 1
}
headers {
Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN
}

View File

@ -0,0 +1,11 @@
meta {
name: -chats-getServiceAuth
type: http
seq: 1
}
get {
url: http://localhost:5000/api/chats/getServiceAuth
body: none
auth: none
}

View File

@ -0,0 +1,16 @@
meta {
name: -chats-send
type: http
seq: 2
}
post {
url: http://localhost:5000/api/chats/send?to=@joan&message=Test message
body: none
auth: none
}
query {
to: @joan
message: Test message
}

View File

@ -0,0 +1,26 @@
meta {
name: -chats-sendCheckingPresence
type: http
seq: 3
}
post {
url: https://salix.verdnatura.es/api/chats/sendCheckingPresence?recipientId=19069&message=Check Offline Status
body: json
auth: none
}
query {
recipientId: 19069
message: Check Offline Status
}
headers {
Authorization: eXkFArlBnJt5wsHdodsLLaD1uNW3vCNz2rGoD4ScEFt6BpTkdqXUMkc16Bi4ABwY
}
body:json {
{
"workerId":19591
}
}

View File

@ -0,0 +1,17 @@
meta {
name: -clients--id
type: http
seq: 5
}
patch {
url: http://localhost:5000/api/clients/1101
body: json
auth: none
}
body:json {
{
"name": "Test client"
}
}

View File

@ -0,0 +1,15 @@
meta {
name: -clients-findOne
type: http
seq: 6
}
get {
url: http://localhost:5000/api/clients/findOne?filter={"where": {"id": 1101}}
body: none
auth: none
}
query {
filter: {"where": {"id": 1101}}
}

View File

@ -0,0 +1,22 @@
meta {
name: -clients
type: http
seq: 2
}
post {
url: http://localhost:5000/api/clients?filter={}
body: json
auth: none
}
query {
filter: {}
}
body:json {
{
"id": 1300,
"name": "Customer name"
}
}

View File

@ -0,0 +1,11 @@
meta {
name: -consumptionSendQueued
type: http
seq: 7
}
post {
url: http://localhost:5000/api/clients/consumption-send-queued
body: none
auth: none
}

View File

@ -0,0 +1,21 @@
meta {
name: -collection_getTickets TEST
type: http
seq: 3
}
post {
url: https://test-salix.verdnatura.es/api/Collections/999999/getTickets?print=false
body: multipartForm
auth: none
}
query {
print: false
~id: 1
}
headers {
Authorization: nEaXBUSjeC9FXvyfpl3qGbcBHlDiCqwbPmZyIICdUPCUYYMN3pSE8QlJRMNa10rK
~Authorization: DEFAULT_TOKEN
}

View File

@ -0,0 +1,21 @@
meta {
name: -collection_getTickets
type: http
seq: 2
}
post {
url: http://localhost:5000/api/Collections/3/getTickets?print=false
body: multipartForm
auth: none
}
query {
print: false
~id: 1
}
headers {
Authorization: DEFAULT_TOKEN
~Authorization: 6ZYlDCvAsZTPrSB8t7nNjySuEifhPACnBFIMy1gjgLHyOpahGKBtIdjNhR3DwiJC
}

View File

@ -0,0 +1,15 @@
meta {
name: -collections
type: http
seq: 1
}
get {
url: http://localhost:5000/api/collections?filter={"where": {"id": 1}}
body: none
auth: none
}
query {
filter: {"where": {"id": 1}}
}

View File

@ -0,0 +1,17 @@
meta {
name: -items--id
type: http
seq: 7
}
patch {
url: http://localhost:5000/api/tickets/1
body: json
auth: none
}
body:json {
{
"name": "Test item"
}
}

View File

@ -0,0 +1,15 @@
meta {
name: -items-findOne
type: http
seq: 8
}
get {
url: http://localhost:5000/api/items/findOne?filter={"where": {"id": 1}}
body: none
auth: none
}
query {
filter: {"where": {"id": 1}}
}

View File

@ -0,0 +1,25 @@
meta {
name: -items
type: http
seq: 4
}
post {
url: http://localhost:5000/api/items?filter={}
body: json
auth: none
}
query {
filter: {}
}
body:json {
{
"id": 999,
"name": "Ranged weapon longbow 5m",
"typeFk": 1,
"originFk": 1,
"intrastatFk": "5080000"
}
}

View File

@ -0,0 +1,11 @@
meta {
name: -edi-updateData
type: http
seq: 1
}
get {
url: http://localhost:5000/api/edis/updateData
body: none
auth: none
}

View File

@ -0,0 +1,25 @@
meta {
name: EmailUser
type: http
seq: 1
}
get {
url: http://localhost:5000/api/Shelvings?filter={"where":{"code":"BBB"}}
body: json
auth: none
}
query {
filter: {"where":{"code":"BBB"}}
~include: [http://localhost:5000/api/Shelvings?filter={"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}}object Object]
~where: [object Object]
~limit: 20
~access_token: DEFAULT_TOKEN
~filter: {"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}}
~filter: where%22%3A%7B%22code%22%3A%7B%22like%22%3A%22%25BBB%25%22%7D%7D%7D
}
headers {
~Content-Type: text/plain
}

View File

@ -0,0 +1,20 @@
meta {
name: -Entries- Add-packaging
type: http
seq: 5
}
post {
url: http://localhost:5000/api/Entries/addFromPackaging?supplier=1&isTravelReception=false
body: none
auth: none
}
query {
supplier: 1
isTravelReception: false
}
headers {
Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN
}

View File

@ -0,0 +1,19 @@
meta {
name: -Entries--listPackaging
type: http
seq: 2
}
get {
url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1
body: none
auth: none
}
query {
entry: 1
}
headers {
Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN
}

View File

@ -0,0 +1,19 @@
meta {
name: -Entries--packaging Notes
type: http
seq: 3
}
get {
url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1
body: none
auth: none
}
query {
entry: 1
}
headers {
Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN
}

View File

@ -0,0 +1,19 @@
meta {
name: -Entries--packaging
type: http
seq: 1
}
get {
url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1
body: none
auth: none
}
query {
entry: 1
}
headers {
Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN
}

View File

@ -0,0 +1,19 @@
meta {
name: -Entries-addFromBuy -packaging
type: http
seq: 4
}
get {
url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1
body: none
auth: none
}
query {
entry: 1
}
headers {
Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN
}

View File

@ -0,0 +1,25 @@
meta {
name: -item setVisibleDiscard Local
type: http
seq: 3
}
post {
url: http://localhost:5000/api/items/setVisibleDiscard
body: json
auth: none
}
headers {
Authorization: DEFAULT_TOKEN
}
body:json {
{
"itemFk":1,
"warehouseFk":1,
"quantity":10,
"addressFk":null
}
}

View File

@ -0,0 +1,25 @@
meta {
name: -item setVisibleDiscard TEST
type: http
seq: 4
}
post {
url: https://test-salix.verdnatura.es/api/items/setVisibleDiscard
body: json
auth: none
}
headers {
Authorization: kQLvk9XerDZoECCKwC3hEM33xx2GNKhWEtOpstU7EtHWyCHI08xWDNtJzRLtI0hn
}
body:json {
{
"addressFk": 77,
"itemFk": 10,
"quantity": 1,
"warehouseFk": 60
}
}

View File

@ -0,0 +1,21 @@
meta {
name: -item setVisibleDiscard
type: http
seq: 2
}
post {
url: http://localhost:5000/api/items/setVisibleDiscard
body: json
auth: none
}
body:json {
{
"itemFk":1,
"warehouseFk":1,
"quantity":10,
"addressFk":1
}
}

View File

@ -0,0 +1,17 @@
meta {
name: -items--id
type: http
seq: 8
}
patch {
url: http://localhost:5000/api/tickets/1
body: json
auth: none
}
body:json {
{
"name": "Test item"
}
}

View File

@ -0,0 +1,15 @@
meta {
name: -items-findOne
type: http
seq: 9
}
get {
url: http://localhost:5000/api/items/findOne?filter={"where": {"id": 1}}
body: none
auth: none
}
query {
filter: {"where": {"id": 1}}
}

25
api/Api/Item/-items.bru Normal file
View File

@ -0,0 +1,25 @@
meta {
name: -items
type: http
seq: 5
}
post {
url: http://localhost:5000/api/items?filter={}
body: json
auth: none
}
query {
filter: {}
}
body:json {
{
"id": 999,
"name": "Ranged weapon longbow 5m",
"typeFk": 1,
"originFk": 1,
"intrastatFk": "5080000"
}
}

View File

@ -0,0 +1,15 @@
meta {
name: ItemBarCodes--id-toItem Copy
type: http
seq: 4
}
get {
url: https://test-salix.verdnatura.es/api/ItemBarCodes/1/toItem
body: json
auth: none
}
headers {
Authorization: wqHE3HcmM1qjT1CB2w3dlNzAVs4FRqJ9zNCtFBw9IDdItO9O6scpcpVUlCdAlEVB
}

View File

@ -0,0 +1,11 @@
meta {
name: ItemBarCodes--id-toItem
type: http
seq: 3
}
get {
url: http://localhost:5000/api/ItemBarCodes/1111111111/toItem
body: json
auth: none
}

View File

@ -0,0 +1,23 @@
meta {
name: ItemBarCodes
type: http
seq: 2
}
delete {
url: http://localhost:5000/api/ItemBarCodes?filter={"where": {"itemFk": 1,"code":"ASDDD"}}
body: json
auth: none
}
query {
filter: {"where": {"itemFk": 1,"code":"ASDDD"}}
~update: {"where": {"itemFk": 1,"code":"ASDDD"}}
}
body:json {
NO ES POT FER DELETE AMB UN FILTRE de item i code, és necessari el id.
}

View File

@ -0,0 +1,19 @@
meta {
name: -itemImageQueues-downloadImages
type: http
seq: 2
}
post {
url: http://localhost:5000/api/itemImageQueues/download
body: none
auth: none
}
headers {
Authorization: CoI4AOO6fu6J7U0YNVgR0CAmPjPIxsL37mKjfUk5ZX9ZBtAVKOTLMhGd9na1EYKz
}
script:pre-request {
//
}

View File

@ -0,0 +1,11 @@
meta {
name: -itemImageQueues
type: http
seq: 1
}
get {
url: http://localhost:5000/api/itemImageQueues
body: none
auth: none
}

View File

@ -0,0 +1,15 @@
meta {
name: ItemPackingTypes
type: http
seq: 1
}
get {
url: http://localhost:5000/api/ItemPackingTypes?filter={"where": {"isActive": true}}
body: none
auth: none
}
query {
filter: {"where": {"isActive": true}}
}

View File

@ -0,0 +1,26 @@
meta {
name: -itemShelvings-id
type: http
seq: 1
}
patch {
url: https://salix.verdnatura.es/api/itemShelvings/1352756
body: json
auth: none
}
query {
~visible: 2
}
headers {
Authorization: MkgxUVLzf04VnaoHtQOqPdE5kTISOhfgB8ypHZmAaamOzPKkVZsz5gOovbVQ4O7j
~Authorization: DEFAULT_TOKEN
}
body:json {
{
"userFk":19591
}
}

View File

@ -0,0 +1,28 @@
meta {
name: -itemShelvings-update TEST
type: http
seq: 3
}
post {
url: https://test-salix.verdnatura.es/api/ItemShelvings/update?where={"id": {"inq": [141461,141046]}}
body: json
auth: none
}
query {
where: {"id": {"inq": [141461,141046]}}
~filter: {"where": {"id": 1}}
~where: {"id": {"in": [1, 3]}}
~where: {"id": {"inq": [141461,141046]}}
}
headers {
Authorization: KPfxP9J6SPnWLh9EiYLluRWOMmLFSo0Znk9LpupPc9aVH9YpvGEZ8DMN5MRDVjPG
}
body:json {
{
"isChecked":null
}
}

View File

@ -0,0 +1,28 @@
meta {
name: -itemShelvings-update
type: http
seq: 2
}
post {
url: http://localhost:3000/api/itemShelvings/update?where={"id": {"inq": [1,3]}}
body: json
auth: none
}
query {
where: {"id": {"inq": [1,3]}}
~filter: {"where": {"id": 1}}
~filter: {"id": {"in": [1, 3]}}
~where: {"id": {"in": [1, 3]}}
}
headers {
Authorization: o0guQMWuli0YnY15ujV2JULqncC0ufFmzTOExXry3lvMX2gXeECVFKZcg4RW9LQY
}
body:json {
{
"isChecked":null
}
}

View File

@ -0,0 +1,11 @@
meta {
name: Send
type: http
seq: 1
}
get {
url:
body: none
auth: none
}

View File

@ -0,0 +1,18 @@
meta {
name: ShelvingLogs
type: http
seq: 1
}
get {
url: http://localhost:5000/api/ShelvingLogs?filter={"include":[{"relation":"user","scope":{"fields":["name"]}}],"where":{"originFk":"5"}}
body: json
auth: none
}
query {
filter: {"include":[{"relation":"user","scope":{"fields":["name"]}}],"where":{"originFk":"5"}}
~include: http://localhost:5000/api/ShelvingLogs?filter={"include":[{"relation":"user","scope":{"fields":["name"],"include":{"relation":"worker","scope":{"fields":["id"]}}}}],"where":{"originFk":"5"},"limit":20}
~where: [object Object]
~limit: 20
}

View File

@ -0,0 +1,25 @@
meta {
name: Shelvings
type: http
seq: 2
}
get {
url: http://localhost:5000/api/Shelvings?filter={"where":{"code":"BBB"}}
body: json
auth: none
}
query {
filter: {"where":{"code":"BBB"}}
~include: [http://localhost:5000/api/Shelvings?filter={"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}}object Object]
~where: [object Object]
~limit: 20
~access_token: DEFAULT_TOKEN
~filter: {"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}}
~filter: where%22%3A%7B%22code%22%3A%7B%22like%22%3A%22%25BBB%25%22%7D%7D%7D
}
headers {
~Content-Type: text/plain
}

View File

@ -0,0 +1,19 @@
meta {
name: -Supplier--id--getItemsPackaging
type: http
seq: 1
}
get {
url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1
body: none
auth: none
}
query {
entry: 1
}
headers {
Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN
}

View File

@ -0,0 +1,15 @@
meta {
name: --id-delivery-note
type: http
seq: 3
}
get {
url: http://localhost:5000/api/tickets/delivery-note?filter={"where": {"id": 1}}
body: none
auth: none
}
query {
filter: {"where": {"id": 1}}
}

View File

@ -0,0 +1,27 @@
meta {
name: -tickets Advanced
type: http
seq: 5
}
post {
url: http://localhost:3000/api/packingSiteAdvanceds
body: json
auth: none
}
query {
~workerFk: 1
~ticketFk: 2
}
headers {
Authorization: 8js9U12LOEHKazfxmQVkohU2lZvJP95a7LDOVTlf9feNT0CaWGJra4Ox9xivISuP
}
body:json {
{
"workerFk": 1,
"ticketFk":2
}
}

View File

@ -0,0 +1,33 @@
meta {
name: -tickets--id Notes
type: http
seq: 10
}
post {
url: https://test-salix.verdnatura.es/api/TicketObservations/crud?ticketFk=4379408
body: json
auth: none
}
query {
ticketFk: 4379408
}
headers {
Authorization: knF6sC44lB3dxeC6ta48EmDB4OfMMXxcI5DPP5bCIOogcqPWM8oAMwL1SYwfHOKg
}
body:json {
{
{
"ticketFk": "4379408",
"$orgIndex": null,
"$oldData": null,
"$isNew": true,
"observationTypeFk": 3,
"description": "fdas asd as"
}
}
}

View File

@ -0,0 +1,17 @@
meta {
name: -tickets--id
type: http
seq: 9
}
patch {
url: http://localhost:5000/api/items/1
body: json
auth: none
}
body:json {
{
"name": "Test item"
}
}

View File

@ -0,0 +1,15 @@
meta {
name: -tickets-client
type: http
seq: 6
}
get {
url: http://localhost:5000/api/tickets/1/client?filter={"where": {"id": 1}}
body: none
auth: none
}
query {
filter: {"where": {"id": 1}}
}

View File

@ -0,0 +1,15 @@
meta {
name: -tickets-findOne
type: http
seq: 11
}
get {
url: http://localhost:5000/api/tickets/findOne?filter={"where": {"id": 1}}
body: none
auth: none
}
query {
filter: {"where": {"id": 1}}
}

View File

@ -0,0 +1,15 @@
meta {
name: -tickets-saveSign
type: http
seq: 12
}
get {
url: http://localhost:5000/api/tickets/saveSign?tickets=
body: none
auth: none
}
query {
tickets:
}

View File

@ -0,0 +1,15 @@
meta {
name: -tickets-transferSales
type: http
seq: 2
}
get {
url: http://localhost:5000/api/tickets?filter={"where": {"id": 1}}
body: none
auth: none
}
query {
filter: {"where": {"id": 1}}
}

View File

@ -0,0 +1,21 @@
meta {
name: -tickets
type: http
seq: 4
}
post {
url: http://localhost:5000/api/tickets?filter={}
body: json
auth: none
}
query {
filter: {}
}
body:json {
{
"id": 30
}
}

View File

@ -0,0 +1,27 @@
meta {
name: -ExpeditionStates-addState Copy
type: http
seq: 2
}
post {
url: https://test-salix.verdnatura.es/api/ExpeditionStates/addExpeditionState
body: json
auth: none
}
headers {
Authorization: wqHE3HcmM1qjT1CB2w3dlNzAVs4FRqJ9zNCtFBw9IDdItO9O6scpcpVUlCdAlEVB
}
body:json {
{
"expeditions": [
{
"expeditionFk": 7437897,
"stateCode": "LOST"
}
]
}
}

View File

@ -0,0 +1,31 @@
meta {
name: -ExpeditionStates-addState
type: http
seq: 1
}
post {
url: http://localhost:5000/api/ExpeditionStates/addExpeditionState
body: json
auth: none
}
headers {
Authorization: V75Nc9jxXSIyT5VpnPSXCtnFaaczzJ54oLRas2CbVbzUDmvaLHTp6VIGt5j0aFZt
~Authorization: DEFAULT_TOKEN
}
body:json {
{
"expeditions": [
{
"expeditionFk": 1,
"stateCode": "ON DELIVERY"
},
{
"expeditionFk": 2,
"stateCode": "LOST"
}
]
}
}

View File

@ -0,0 +1,25 @@
meta {
name: -Operators- get sector - labeler Copy
type: http
seq: 6
}
post {
url: http://localhost:5000/api/Operators/update?where[workerFk]=9
body: json
auth: none
}
query {
where[workerFk]: 9
}
headers {
Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9
}
body:json {
{
"labelerFk":2
}
}

View File

@ -0,0 +1,25 @@
meta {
name: -Operators- get sector - labeler
type: http
seq: 5
}
post {
url: http://localhost:5000/api/Operators/update?where[workerFk]=9
body: json
auth: none
}
query {
where[workerFk]: 9
}
headers {
Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9
}
body:json {
{
"labelerFk":2
}
}

View File

@ -0,0 +1,26 @@
meta {
name: -Operators- get
type: http
seq: 2
}
get {
url: http://test-salix.verdnatura.es/api/Operators/19591?filter={"include":"sector"}
body: json
auth: none
}
query {
filter: {"include":"sector"}
}
headers {
Authorization: wy2Pn2NQghjCTrcgoRpbDtvgETRh5dWSJ22DccwgZMKaVnxG0lLgFNQIkFoq7KUy
}
body:json {
{
"sectorFk":2,
"labelerFk":null
}
}

View File

@ -0,0 +1,25 @@
meta {
name: -Operators- labeler
type: http
seq: 4
}
post {
url: http://localhost:5000/api/Operators/update?where[workerFk]=9
body: json
auth: none
}
query {
where[workerFk]: 9
}
headers {
Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9
}
body:json {
{
"labelerFk":2
}
}

View File

@ -0,0 +1,23 @@
meta {
name: -Operators- sector Copy
type: http
seq: 3
}
patch {
url: https://salix.verdnatura.es/api/Operators/19591
body: json
auth: none
}
headers {
Authorization: sccVCOzCIqNvEUZtjf9FYJfxkCQImjcecS8xHzvjAxYW9pt34lngc8dcgLft5Kyn
~Authorization: TDBXtkBF8mGrpcS6RlBggkUeZ8TP6MyKssezFYM2NXYRi4FhZe2CqqA3GNLlbawp
}
body:json {
{
"sectorFk":31,
"labelerFk":null
}
}

View File

@ -0,0 +1,26 @@
meta {
name: -Operators- sector
type: http
seq: 1
}
post {
url: http://localhost:5000/api/Operators/update?where[workerFK]=9
body: json
auth: none
}
query {
where[workerFK]: 9
}
headers {
Authorization: TDBXtkBF8mGrpcS6RlBggkUeZ8TP6MyKssezFYM2NXYRi4FhZe2CqqA3GNLlbawp
}
body:json {
{
"sectorFk":2,
"labelerFk":null
}
}

5
api/bruno.json Normal file
View File

@ -0,0 +1,5 @@
{
"version": "1",
"name": "Salix",
"type": "collection"
}

View File

@ -0,0 +1,4 @@
vars {
URL: http://localhost:3000
TOKEN:
}

55
api/result.json Normal file
View File

@ -0,0 +1,55 @@
{
"summary": {
"totalRequests": 1,
"passedRequests": 1,
"failedRequests": 0,
"totalAssertions": 0,
"passedAssertions": 0,
"failedAssertions": 0,
"totalTests": 0,
"passedTests": 0,
"failedTests": 0
},
"results": [
{
"request": {
"method": "POST",
"url": "http://localhost:3000/api/VnUsers/sign-in",
"headers": {
"content-type": "application/json"
},
"data": {
"user": "developer",
"password": "nightmare"
}
},
"response": {
"status": 200,
"statusText": "OK",
"headers": {
"x-xss-protection": "1; mode=block",
"x-frame-options": "SAMEORIGIN",
"strict-transport-security": "max-age=0; includeSubDomains",
"x-download-options": "noopen",
"x-content-type-options": "nosniff",
"salix-version": "23.52.01",
"content-type": "application/json; charset=utf-8",
"content-length": "90",
"etag": "W/\"5a-zZa5o8ppwlY0gujzj8JC8aqHkyg\"",
"vary": "Accept-Encoding",
"date": "Wed, 13 Dec 2023 09:58:36 GMT",
"connection": "keep-alive",
"keep-alive": "timeout=5"
},
"data": {
"token": "xeA1FERKLiqoCAmP3j1WHawFn71o5Nb4vITv6kYRWjzhiTlurXLfOEmBoiVMugKa",
"ttl": 1209600
},
"responseTime": 164
},
"error": null,
"assertionResults": [],
"testResults": []
}
]
}

7
api/test.http Normal file
View File

@ -0,0 +1,7 @@
POST /api/VnUsers/sign-in HTTP/1.1
Content-Type: application/json
Host: {{host}}
Content-Length: 45
{"user":"developer", "password": "nightmare"}