MyApp

<back to all web services

QueryJobApplicationAttachments

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

pub const JobApplicationAttachment = struct {
    id: i32 = 0,
    // @References(typeof(JobApplication))
    jobApplicationId: i32 = 0,

    fileName: ?[]const u8 = null,
    filePath: ?[]const u8 = null,
    contentType: ?[]const u8 = null,
    contentLength: i64 = 0,
};

pub const QueryJobApplicationAttachments = struct {
    // @DataMember(Order=1)
    skip: ?i32 = null,

    // @DataMember(Order=2)
    take: ?i32 = null,

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

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

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

    // @DataMember(Order=6)
    fields: ?[]const u8 = null,

    // @DataMember(Order=7)
    meta: ?std.json.Value = null,
    id: ?i32 = null,
};

pub const Todo = struct {
    id: i64 = 0,
    text: ?[]const u8 = null,
    isFinished: bool = false,
};

Zig QueryJobApplicationAttachments DTOs

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

HTTP + JSV

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

POST /jsv/reply/QueryJobApplicationAttachments HTTP/1.1 
Host: blazor-gallery.servicestack.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	skip: 0,
	take: 0,
	orderBy: String,
	orderByDesc: String,
	include: String,
	fields: String,
	meta: 
	{
		String: String
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	offset: 0,
	total: 0,
	results: 
	[
		{
			id: 0,
			jobApplicationId: 0,
			fileName: String,
			filePath: String,
			contentType: String,
			contentLength: 0
		}
	],
	meta: 
	{
		String: String
	},
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}