| GET | /v1/Vehicle/Baumuster/csv | Returns Baumuster Data in CSV format |
|---|
const std = @import("std");
// @Flags()
pub const CacheControl = enum(i32) {
None = 0,
Public = 1,
Private = 2,
MustRevalidate = 4,
NoCache = 8,
NoStore = 16,
NoTransform = 32,
ProxyRevalidate = 64,
};
pub const HttpResult = struct {
responseText: ?[]const u8 = null,
responseStream: ?[]const u8 = null,
fileInfo: ?FileInfo = null,
virtualFile: ?std.json.Value = null,
contentType: ?[]const u8 = null,
headers: ?std.json.Value = null,
cookies: ?[]Cookie = null,
eTag: ?[]const u8 = null,
age: ?[]const u8 = null,
maxAge: ?[]const u8 = null,
expires: ?[]const u8 = null,
lastModified: ?[]const u8 = null,
cacheControl: ?CacheControl = null,
resultScope: ?Func = null,
allowsPartialResponse: bool = false,
options: ?std.json.Value = null,
status: i32 = 0,
statusCode: ?HttpStatusCode = null,
statusDescription: ?[]const u8 = null,
response: ?std.json.Value = null,
responseFilter: ?std.json.Value = null,
requestContext: ?std.json.Value = null,
view: ?[]const u8 = null,
template: ?[]const u8 = null,
paddingLength: i32 = 0,
isPartialRequest: bool = false,
};
pub const BaumusterOffersCSVRequest = struct {};
// @Flags()
pub const RequestAttributes = enum(i32) {
None = 0,
Localhost = 1,
LocalSubnet = 2,
External = 4,
Secure = 8,
InSecure = 16,
AnySecurityMode = 24,
HttpHead = 32,
HttpGet = 64,
HttpPost = 128,
HttpPut = 256,
HttpDelete = 512,
HttpPatch = 1024,
HttpOptions = 2048,
HttpOther = 4096,
AnyHttpMethod = 8160,
OneWay = 8192,
Reply = 16384,
AnyCallStyle = 24576,
Soap11 = 32768,
Soap12 = 65536,
Xml = 131072,
Json = 262144,
Jsv = 524288,
ProtoBuf = 1048576,
Csv = 2097152,
Html = 4194304,
Jsonl = 8388608,
MsgPack = 16777216,
FormatOther = 33554432,
AnyFormat = 67076096,
Http = 67108864,
MessageQueue = 134217728,
Tcp = 268435456,
Grpc = 536870912,
EndpointOther = 1073741824,
AnyEndpoint = 2080374784,
InProcess = -2147483648,
InternalNetworkAccess = -2147483645,
AnyNetworkAccessType = -2147483641,
Any = -1,
};
Zig BaumusterOffersCSVRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/Vehicle/Baumuster/csv HTTP/1.1 Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{}