Bridge

<back to all web services

EnquiryForward

Enquiries
The following routes are available for this service:
GET/Enquiries/Forward
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class EnquiryForward
    {
        public Integer EnquiryId = null;
        public UUID EnquiryGuid = null;
        public Integer VesselId = null;
        
        public Integer getEnquiryId() { return EnquiryId; }
        public EnquiryForward setEnquiryId(Integer value) { this.EnquiryId = value; return this; }
        public UUID getEnquiryGuid() { return EnquiryGuid; }
        public EnquiryForward setEnquiryGuid(UUID value) { this.EnquiryGuid = value; return this; }
        public Integer getVesselId() { return VesselId; }
        public EnquiryForward setVesselId(Integer value) { this.VesselId = value; return this; }
    }

    public static class APIForwardEnquiryViewModel
    {
        public Integer VesselId = null;
        public Integer EnquiryId = null;
        public UUID EnquiryGuid = null;
        public ArrayList<EntityAccountsViewModel> GetEntityAccounts = null;
        
        public Integer getVesselId() { return VesselId; }
        public APIForwardEnquiryViewModel setVesselId(Integer value) { this.VesselId = value; return this; }
        public Integer getEnquiryId() { return EnquiryId; }
        public APIForwardEnquiryViewModel setEnquiryId(Integer value) { this.EnquiryId = value; return this; }
        public UUID getEnquiryGuid() { return EnquiryGuid; }
        public APIForwardEnquiryViewModel setEnquiryGuid(UUID value) { this.EnquiryGuid = value; return this; }
        public ArrayList<EntityAccountsViewModel> getGetEntityAccounts() { return GetEntityAccounts; }
        public APIForwardEnquiryViewModel setGetEntityAccounts(ArrayList<EntityAccountsViewModel> value) { this.GetEntityAccounts = value; return this; }
    }

    public static class EntityAccountsViewModel
    {
        public Integer Id = null;
        public String Type = null;
        public String Name = null;
        public Integer LinkedVesselId = null;
        
        public Integer getId() { return Id; }
        public EntityAccountsViewModel setId(Integer value) { this.Id = value; return this; }
        public String getType() { return Type; }
        public EntityAccountsViewModel setType(String value) { this.Type = value; return this; }
        public String getName() { return Name; }
        public EntityAccountsViewModel setName(String value) { this.Name = value; return this; }
        public Integer getLinkedVesselId() { return LinkedVesselId; }
        public EntityAccountsViewModel setLinkedVesselId(Integer value) { this.LinkedVesselId = value; return this; }
    }

}

Java EnquiryForward DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /Enquiries/Forward HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"VesselId":0,"EnquiryId":0,"EnquiryGuid":"00000000000000000000000000000000","GetEntityAccounts":[{"Id":0,"Type":"String","Name":"String","LinkedVesselId":0}]}