HBSA Internal
  1. Stretches
HBSA Internal
  • Hidrovias do Brasil APIs
  • Autenticação
    • Introdução
  • WebSockets
    • Introdução
    • Navigation
      • Admin Hub
      • Live Assets Hub
  • REST
    • Introdução
    • Navigation
      • AssetClasses
        • Lists all AssetClasses
        • Adds a new AssetClass
        • Finds a AssetClass by its identification
        • Partially updates a AssetClass
        • Deletes a AssetClass by its identification
      • Assets
        • List all assets
        • Create the primary data for an Asset
        • Finds a Certificates by its identification
        • Partially updates a Certificates
        • Deletes a Certificates by its identification
        • Lists all Checkpoints
        • Adds a new Checkpoint
        • Finds a Checkpoint by its identification
        • Deletes a Checkpoint by its identification
        • Partially updates a Checkpoint
        • Lists all DraftWeights
        • Adds a new DraftWeight
        • Deletes a DraftWeight by its identification
        • Lists all Fuels
        • Adds a new Fuel
        • Deletes a Fuel by its identification
        • Lists all AssetLocationss
        • Adds a new AssetLocations
        • Deletes a AssetLocations by its identification
        • Lists all Maintenance
        • Adds a new Maintenance
        • Finds a Maintenance by its identification
        • Partially updates a Maintenance
        • Deletes a Maintenance by its identification
        • Get the primary data of an Asset by Id
        • Partially updates a Primary Asset
        • Delete an asset by identification
        • Lists all Certificates
        • Adds a new Certificate
        • Get Asset Types
      • CertificateDepartaments
        • Lists all CertificateDepartaments
        • Adds a new CertificateDepartament
        • Finds a CertificateDepartament by its identification
        • Partially updates a CertificateDepartament
        • Deletes a CertificateDepartament by its identification
      • CertificateTypes
        • Lists all CertificateTypes
        • Adds a new CertificateType
        • Finds a CertificateType by its identification
        • Partially updates a CertificateType
        • Deletes a CertificateType by its identification
      • Clients
        • List all Clients
        • Get the primary data of an Client by Id
      • Contracts
        • List all Contract
        • Get the primary data of an Contract by Id
      • Crews
        • Lists all Crews
        • Adds a new Crew
        • Finds a Crew by its identification
        • Partially updates a Crew
        • Deletes a Crew by its identification
      • Embeddeds
        • Initialize embedded data sync
      • Employees
        • Lists all Employeess
        • Adds a new Employees
        • Finds a Employees by its identification
        • Partially updates a Employees
        • Deletes a Employees by its identification
      • Locations
        • Lists all locations
        • Adds a new location
        • Finds a location by its identification
        • Partially updates a location
        • Deletes a location by its identification
        • Get Location Types
      • ManeuverEvents
        • List all Maneuvers Events by filter
      • Maneuvers
        • List all Maneuvers by filter
        • Adds or updates a Maneuver
        • Get Maneuver Restrictions
        • Finds a maneuver by its identification
      • Onboards
        • Lists all Onboards
        • Adds a new Onboard
        • Finds a Onboard by its identification
        • Partially updates a Onboard
        • Deletes a Onboard by its identification
      • Products
        • Get the primary data of an Product by Id
      • Regions
        • Lists all Regions
      • Routes
        • Lists all Routes
        • Adds a new Route
        • Finds a Route by its identification
        • Partially updates a Route
        • Deletes a Route by its identification
        • Lists all RouteStretches
        • Adds a new stretche to a route
        • Adds a new list of stretche to a route
        • Deletes a RouteStretch by its identification
      • Stretches
        • Lists all Stretchs
          GET
        • Adds a new Stretch
          POST
        • Finds a Stretch by its identification
          GET
        • Partially updates a Stretch
          PATCH
        • Deletes a Stretch by its identification
          DELETE
        • Lists all StretchAttributes
          GET
        • Adds a new StretchAttribute
          POST
        • Finds a Stretch Attributes by its identification
          GET
        • Deletes a StretchAttribute by its identification
          DELETE
        • Partially updates a StretchAttribute
          PATCH
        • Partially updates a StretchAttribute
          PATCH
      • Tenants
        • List all assets
      • ThirdTravelCalendars
        • Lists all ThirdTravelCalendars
        • Adds a new ThirdTravelCalendar
        • Finds a ThirdTravelCalendar by its identification
        • Partially updates a ThirdTravelCalendar
        • Deletes a ThirdTravelCalendar by its identification
      • Thirds
        • Lists all Thirds
        • Adds a new Third
        • Finds a Third by its identification
        • Partially updates a Third
        • Deletes a Third by its identification
      • Travels
        • Lists all Travels
        • Adds a new Travel
        • Partially updates a Travel
        • Finds a Travel by its identification
        • Deletes a Travel by its identification
        • Lists all LoadUnloads
        • Adds a new LoadUnload
        • Finds a LoadUnload by its identification
        • Partially updates a LoadUnload
        • Deletes a LoadUnload by its identification
        • Lists all TravelStretches
        • Adds a new TravelStretch
        • Finds a TravelStretch by its identification
        • Partially updates a TravelStretch
        • Deletes a TravelStretch by its identification
        • Lists all TravelStretchAttributes
        • Adds a new TravelStretchAttributes
        • Finds a TravelStretchAttributes by its identification
        • Partially updates a TravelStretchAttributes
        • Deletes a TravelStretchAttributes by its identification
        • Lists all StretchPushers
        • Adds a new StretchPusher
        • Finds a StretchPusher by its identification
        • Partially updates a StretchPusher
        • Deletes a StretchPusher by its identification
        • Lists all PusherBarges
        • Adds a new PusherBarge
        • Finds a PusherBarge by its identification
        • Partially updates a PusherBarge
        • Deletes a PusherBarge by its identification
  1. Stretches

Finds a Stretch by its identification

Amb. de testes
https://apis.qa01.hbsa.com.br/navigation
Amb. de testes
https://apis.qa01.hbsa.com.br/navigation
GET
/v1/stretches/{id}

Requisição

Parâmetros Path
id
string <uuid>
requerido
Identification
Parâmetros Header
x-tenant
requerido
Tenant identification

Exemplos de Requisição

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://apis.qa01.hbsa.com.br/navigation/v1/stretches/' \
--header 'x-tenant;'

Respostas

🟢200Success
application/json
Body
id
string <uuid>
opcional
regionId
string <uuid>
opcional
region
null  | allOf {1} 
opcional
object (RegionDto) 
opcional
locationIdOrigin
string <uuid>
opcional
locationOrigin
null  | allOf {1} 
opcional
object (LocationDto) 
opcional
locationIdDestiny
string <uuid>
opcional
locationDestiny
null  | allOf {1} 
opcional
object (LocationDto) 
opcional
direction
enum<string> 
opcional
Valores permitidos:
UpRiverDownRiverUpRiverLoaded
stretchDistance
number <double>
opcional
description
string  | null 
opcional
status
enum<string> 
opcional
Valores permitidos:
ActiveInactive
createdAt
string <date-time>
opcional
modifiedAt
string <date-time> | null 
opcional
Exemplo
{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "regionId": "a29f01e1-8a8d-451e-b685-f8b0b4ec4767",
    "region": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "region": "string"
    },
    "locationIdOrigin": "b343ee10-62e6-4c57-815d-3b1c1bead32f",
    "locationOrigin": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "description": "string",
        "km": 0,
        "latitude": 0,
        "longitude": 0,
        "abbreviation": "string",
        "country": "string",
        "waterway": "River",
        "type": "Porto",
        "createdAt": "2019-08-24T14:15:22Z",
        "modifiedAt": "2019-08-24T14:15:22Z"
    },
    "locationIdDestiny": "f217ee9a-0ae7-484c-9055-3c1c8fd0117b",
    "locationDestiny": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "description": "string",
        "km": 0,
        "latitude": 0,
        "longitude": 0,
        "abbreviation": "string",
        "country": "string",
        "waterway": "River",
        "type": "Porto",
        "createdAt": "2019-08-24T14:15:22Z",
        "modifiedAt": "2019-08-24T14:15:22Z"
    },
    "direction": "UpRiver",
    "stretchDistance": 0,
    "description": "string",
    "status": "Active",
    "createdAt": "2019-08-24T14:15:22Z",
    "modifiedAt": "2019-08-24T14:15:22Z"
}
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
Modificado em 2024-07-12 15:41:46
Página anterior
Adds a new Stretch
Próxima página
Partially updates a Stretch
Built with