MyApp

<back to all web services

UpdateJobApplicationEvent

Talent
Requires Authentication
const std = @import("std");

pub const AppUser = struct {
    id: ?[]const u8 = null,
    firstName: ?[]const u8 = null,
    lastName: ?[]const u8 = null,
    displayName: ?[]const u8 = null,
    profileUrl: ?[]const u8 = null,
};

pub const JobApplicationStatus = enum {
    Applied,
    PhoneScreening,
    PhoneScreeningCompleted,
    Interview,
    InterviewCompleted,
    Offer,
    Disqualified,
};

pub const JobApplicationEvent = struct {
    // @DataMember(Order=1)
    createdDate: ?[]const u8 = null,

    // @DataMember(Order=2)
    // @Required()
    createdBy: ?[]const u8 = null,

    // @DataMember(Order=3)
    modifiedDate: ?[]const u8 = null,

    // @DataMember(Order=4)
    // @Required()
    modifiedBy: ?[]const u8 = null,

    // @DataMember(Order=5)
    deletedDate: ?[]const u8 = null,

    // @DataMember(Order=6)
    deletedBy: ?[]const u8 = null,
    id: i32 = 0,
    // @References(typeof(JobApplication))
    jobApplicationId: i32 = 0,

    // @References(typeof(AppUser))
    appUserId: ?[]const u8 = null,

    appUser: ?AppUser = null,
    description: ?[]const u8 = null,
    status: ?JobApplicationStatus = null,
    eventDate: ?[]const u8 = null,
};

// @ValidateRequest(Validator="IsAuthenticated")
pub const UpdateJobApplicationEvent = struct {
    id: i32 = 0,
    status: ?JobApplicationStatus = null,
    description: ?[]const u8 = null,
    eventDate: ?[]const u8 = null,
};

Zig UpdateJobApplicationEvent DTOs

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

HTTP + XML

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

POST /xml/reply/UpdateJobApplicationEvent HTTP/1.1 
Host: blazor-gallery.servicestack.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<UpdateJobApplicationEvent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyApp.ServiceModel">
  <Description>String</Description>
  <EventDate>0001-01-01T00:00:00</EventDate>
  <Id>0</Id>
  <Status>Applied</Status>
</UpdateJobApplicationEvent>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<JobApplicationEvent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyApp.ServiceModel">
  <CreatedDate xmlns="http://schemas.servicestack.net/types">0001-01-01T00:00:00</CreatedDate>
  <CreatedBy xmlns="http://schemas.servicestack.net/types">String</CreatedBy>
  <ModifiedDate xmlns="http://schemas.servicestack.net/types">0001-01-01T00:00:00</ModifiedDate>
  <ModifiedBy xmlns="http://schemas.servicestack.net/types">String</ModifiedBy>
  <DeletedDate xmlns="http://schemas.servicestack.net/types">0001-01-01T00:00:00</DeletedDate>
  <DeletedBy xmlns="http://schemas.servicestack.net/types">String</DeletedBy>
  <AppUser>
    <DisplayName>String</DisplayName>
    <FirstName>String</FirstName>
    <Id>String</Id>
    <LastName>String</LastName>
    <ProfileUrl>String</ProfileUrl>
  </AppUser>
  <AppUserId>String</AppUserId>
  <Description>String</Description>
  <EventDate>0001-01-01T00:00:00</EventDate>
  <Id>0</Id>
  <JobApplicationId>0</JobApplicationId>
  <Status>Applied</Status>
</JobApplicationEvent>