tvpl.api

<back to all web services

ImportProviderRequest

Requires Authentication
The following routes are available for this service:
POST/provider/import
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ImportProviderRequest
    {
        public String mode = null;
        
        public String getMode() { return mode; }
        public ImportProviderRequest setMode(String value) { this.mode = value; return this; }
    }

    public static class ImportProviderResponse
    {
        public Integer code = null;
        public String message = null;
        public Integer inserted = null;
        public Integer updated = null;
        public Integer skipped = null;
        public ArrayList<ImportProviderRowError> errors = null;
        
        public Integer getCode() { return code; }
        public ImportProviderResponse setCode(Integer value) { this.code = value; return this; }
        public String getMessage() { return message; }
        public ImportProviderResponse setMessage(String value) { this.message = value; return this; }
        public Integer getInserted() { return inserted; }
        public ImportProviderResponse setInserted(Integer value) { this.inserted = value; return this; }
        public Integer getUpdated() { return updated; }
        public ImportProviderResponse setUpdated(Integer value) { this.updated = value; return this; }
        public Integer getSkipped() { return skipped; }
        public ImportProviderResponse setSkipped(Integer value) { this.skipped = value; return this; }
        public ArrayList<ImportProviderRowError> getErrors() { return errors; }
        public ImportProviderResponse setErrors(ArrayList<ImportProviderRowError> value) { this.errors = value; return this; }
    }

    public static class ImportProviderRowError
    {
        public Integer row = null;
        public String column = null;
        public String message = null;
        
        public Integer getRow() { return row; }
        public ImportProviderRowError setRow(Integer value) { this.row = value; return this; }
        public String getColumn() { return column; }
        public ImportProviderRowError setColumn(String value) { this.column = value; return this; }
        public String getMessage() { return message; }
        public ImportProviderRowError setMessage(String value) { this.message = value; return this; }
    }

}

Java ImportProviderRequest 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 /provider/import HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"mode":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"code":0,"message":"String","inserted":0,"updated":0,"skipped":0,"errors":[{"row":0,"column":"String","message":"String"}]}