Betting.WebApi

<back to all web services

InstallLocationProductInstance

Requires Authentication
The following routes are available for this service:
POST/cmd/locations/productInstances/install
const std = @import("std");

pub const Ref = struct {
    id: ?[]const u8 = null,
    val: ?[]const u8 = null,
};

pub const ProductReference = struct {
    id: ?[]const u8 = null,
    value: ?[]const u8 = null,
    category: ?[]const u8 = null,
    productProvider: ?Ref = null,
};

pub const ProductInstanceRef = struct {
    id: ?[]const u8 = null,
    name: ?[]const u8 = null,
    title: ?[]const u8 = null,
    product: ?ProductReference = null,
};

pub const InstallLocationProductInstance = struct {
    id: ?[]const u8 = null,
    productInstance: ?ProductInstanceRef = null,
};

Zig InstallLocationProductInstance DTOs

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

HTTP + OTHER

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

POST /cmd/locations/productInstances/install HTTP/1.1 
Host: api.bettor.webhop.biz 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":"String","productInstance":{"id":"String","name":"String","title":"String","product":{"id":"String","value":"String","category":"String","productProvider":{"id":"String","val":"String"}}}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}