| Required role: | API |
| POST | /api/Admin/GoogleMapsImport |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GoogleMapsImportRequest
{
public Integer TargetBranchId = null;
public String Tag = null;
public String NotifyEmail = null;
public Integer getTargetBranchId() { return TargetBranchId; }
public GoogleMapsImportRequest setTargetBranchId(Integer value) { this.TargetBranchId = value; return this; }
public String getTag() { return Tag; }
public GoogleMapsImportRequest setTag(String value) { this.Tag = value; return this; }
public String getNotifyEmail() { return NotifyEmail; }
public GoogleMapsImportRequest setNotifyEmail(String value) { this.NotifyEmail = value; return this; }
}
public static class GoogleMapsImportResult
{
public Integer ImportId = null;
public Integer TargetBranchId = null;
public String Tag = null;
public String FileName = null;
public Boolean Queued = null;
public Integer getImportId() { return ImportId; }
public GoogleMapsImportResult setImportId(Integer value) { this.ImportId = value; return this; }
public Integer getTargetBranchId() { return TargetBranchId; }
public GoogleMapsImportResult setTargetBranchId(Integer value) { this.TargetBranchId = value; return this; }
public String getTag() { return Tag; }
public GoogleMapsImportResult setTag(String value) { this.Tag = value; return this; }
public String getFileName() { return FileName; }
public GoogleMapsImportResult setFileName(String value) { this.FileName = value; return this; }
public Boolean isQueued() { return Queued; }
public GoogleMapsImportResult setQueued(Boolean value) { this.Queued = value; return this; }
}
}
Java GoogleMapsImportRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/Admin/GoogleMapsImport HTTP/1.1
Host: api.clubmanagercentral.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"TargetBranchId":0,"Tag":"String","NotifyEmail":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ImportId":0,"TargetBranchId":0,"Tag":"String","FileName":"String","Queued":false}