feat(api docs): added in bruno api docs
This commit is contained in:
15
LogisticsSupportTool_API_DOCS/Controller/build app V2.bru
Normal file
15
LogisticsSupportTool_API_DOCS/Controller/build app V2.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: build app V2
|
||||||
|
type: http
|
||||||
|
seq: 2
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: http://localhost:8080/build
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
}
|
||||||
15
LogisticsSupportTool_API_DOCS/Controller/build app.bru
Normal file
15
LogisticsSupportTool_API_DOCS/Controller/build app.bru
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
meta {
|
||||||
|
name: build app
|
||||||
|
type: http
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
url: http://localhost:8080/build
|
||||||
|
body: none
|
||||||
|
auth: inherit
|
||||||
|
}
|
||||||
|
|
||||||
|
settings {
|
||||||
|
encodeUrl: true
|
||||||
|
}
|
||||||
8
LogisticsSupportTool_API_DOCS/Controller/folder.bru
Normal file
8
LogisticsSupportTool_API_DOCS/Controller/folder.bru
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
meta {
|
||||||
|
name: Controller
|
||||||
|
seq: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
auth {
|
||||||
|
mode: inherit
|
||||||
|
}
|
||||||
9
LogisticsSupportTool_API_DOCS/bruno.json
Normal file
9
LogisticsSupportTool_API_DOCS/bruno.json
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"version": "1",
|
||||||
|
"name": "LogisticsSupportTool_API_DOCS",
|
||||||
|
"type": "collection",
|
||||||
|
"ignore": [
|
||||||
|
"node_modules",
|
||||||
|
".git"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -14,6 +14,7 @@
|
|||||||
"build:front": "cd frontend && rimraf dist && npm run build",
|
"build:front": "cd frontend && rimraf dist && npm run build",
|
||||||
"build:docs": "cd lstDocs && rimraf build && npm run build",
|
"build:docs": "cd lstDocs && rimraf build && npm run build",
|
||||||
"build:wrapper": "cd lstWrapper && rimraf publish && dotnet publish -c Release -o ./publish",
|
"build:wrapper": "cd lstWrapper && rimraf publish && dotnet publish -c Release -o ./publish",
|
||||||
|
"build:ctl": " ",
|
||||||
"build": "npm run build:docs && npm run build:front && npm run build:app",
|
"build": "npm run build:docs && npm run build:front && npm run build:app",
|
||||||
"install:front": "cd frontend && npm i",
|
"install:front": "cd frontend && npm i",
|
||||||
"install:docs": "cd lstDocs && npm i",
|
"install:docs": "cd lstDocs && npm i",
|
||||||
|
|||||||
42
scripts/ipPortChecker.ps1
Normal file
42
scripts/ipPortChecker.ps1
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
param(
|
||||||
|
[Parameter(Mandatory = $true)]
|
||||||
|
[string]$TargetHost,
|
||||||
|
|
||||||
|
[Parameter(Mandatory = $false)]
|
||||||
|
[int]$Port
|
||||||
|
)
|
||||||
|
|
||||||
|
function Test-Ping {
|
||||||
|
param([string]$ComputerName)
|
||||||
|
if (Test-Connection -ComputerName $ComputerName -Count 1 -Quiet) {
|
||||||
|
Write-Host "[$ComputerName] is reachable via ICMP (ping)."
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Write-Host "[$ComputerName] did not respond to ICMP (ping)."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function Test-Port {
|
||||||
|
param([string]$ComputerName, [int]$Port)
|
||||||
|
$result = Test-NetConnection -ComputerName $ComputerName -Port $Port -InformationLevel Quiet
|
||||||
|
if ($result) {
|
||||||
|
Write-Host "[$ComputerName]:$Port is reachable (TCP connect succeeded)."
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Write-Host "[$ComputerName]:$Port is not reachable."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# --- Main execution ---
|
||||||
|
Test-Ping -ComputerName $TargetHost
|
||||||
|
|
||||||
|
if ($Port) {
|
||||||
|
Test-Port -ComputerName $TargetHost -Port $Port
|
||||||
|
}
|
||||||
|
|
||||||
|
# Example calls:
|
||||||
|
# Test-Ping -Host "8.8.8.8"
|
||||||
|
# Test-Port -Host "google.com" -Port 443
|
||||||
|
|
||||||
|
|
||||||
|
Test-NetConnection -ComputerName 192.168.75.125 -Port 5118
|
||||||
Reference in New Issue
Block a user