POST | /scheduling/{UserId}/cancel-wait-list | Cancel a wait list record. |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports ClubReady.Web.Api.Scheduling.Model
Imports ClubReady.Web.Api
Namespace Global
Namespace ClubReady.Web.Api
Public Enum RestrictedResourceType
Store
Chain
User
Undefined
End Enum
End Namespace
Namespace ClubReady.Web.Api.Scheduling.Model
Public Partial Class CancelWaitListRequest
Implements IRestrictedApiRequest
'''<Summary>
'''Api Key - Grants access to resources
'''</Summary>
<ApiMember(DataType:="string", Description:="Api Key - Grants access to resources", IsRequired:=true, Name:="ApiKey", ParameterType:="query")>
Public Overridable Property ApiKey As String
'''<Summary>
'''Store ID or Chain ID is required
'''</Summary>
<ApiMember(DataType:="integer", Description:="Store ID or Chain ID is required", Name:="StoreId", ParameterType:="query")>
Public Overridable Property StoreId As Nullable(Of Integer)
'''<Summary>
'''Store ID or Chain ID is required
'''</Summary>
<ApiMember(DataType:="integer", Description:="Store ID or Chain ID is required", Name:="ChainId", ParameterType:="query")>
Public Overridable Property ChainId As Nullable(Of Integer)
'''<Summary>
'''ClubReady User ID
'''</Summary>
<ApiMember(DataType:="integer", Description:="ClubReady User ID", IsRequired:=true, Name:="UserId", ParameterType:="path")>
Public Overridable Property UserId As Integer
'''<Summary>
'''Class Schedule ID
'''</Summary>
<ApiMember(DataType:="integer", Description:="Class Schedule ID", IsRequired:=true, Name:="ClassScheduleId", ParameterType:="query")>
Public Overridable Property ClassScheduleId As Integer
Public Overridable Property RestrictedId As Nullable(Of Integer)
Public Overridable Property RestrictedResourceType As RestrictedResourceType
End Class
Public Partial Class CancelWaitListResponse
Public Overridable Property Success As Boolean
Public Overridable Property Message As String
End Class
End Namespace
End Namespace
VB.NET CancelWaitListRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /scheduling/{UserId}/cancel-wait-list HTTP/1.1
Host: clubready.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ApiKey: String,
StoreId: 0,
ChainId: 0,
UserId: 0,
ClassScheduleId: 0,
RestrictedId: 0,
RestrictedResourceType: Chain
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Success: False, Message: String }