| POST | /Enquiries/Add-Supplier |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Bridge.Private.Api.DTO
Imports Bridge.Core.ViewModels
Namespace Global
Namespace Bridge.Core.ViewModels
Public Partial Class EnquiryAddSupplierViewModel
Public Sub New()
Errors = New List(Of String)
End Sub
Public Overridable Property Status As String
Public Overridable Property EntityContactGuid As Nullable(Of Guid)
Public Overridable Property Errors As List(Of String)
End Class
End Namespace
Namespace Bridge.Private.Api.DTO
Public Partial Class EnquiryAddSupplier
Public Overridable Property SupplierContact As String
Public Overridable Property EntityName As String
Public Overridable Property PortId As Integer
Public Overridable Property EnquiryId As Integer
Public Overridable Property EnquiryGuid As Guid
Public Overridable Property EntityId As Integer
Public Overridable Property AddToAllPorts As Boolean
Public Overridable Property AccountId As Integer
End Class
End Namespace
End Namespace
VB.NET EnquiryAddSupplier DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Enquiries/Add-Supplier HTTP/1.1
Host: internal.thebunkerbridge.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"SupplierContact":"String","EntityName":"String","PortId":0,"EnquiryId":0,"EnquiryGuid":"00000000000000000000000000000000","EntityId":0,"AddToAllPorts":false,"AccountId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Status":"String","EntityContactGuid":"00000000000000000000000000000000","Errors":["String"]}