Mds.Api

<back to all web services

Diagram

Requires Authentication
Requires the role:dealer-api-mds
The following routes are available for this service:
All Verbs/diagram/{Guid}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class Diagram
    {
        public UUID Guid = null;
        
        public UUID getGuid() { return Guid; }
        public Diagram setGuid(UUID value) { this.Guid = value; return this; }
    }

    public static class DiagramResponse
    {
        public ResponseStatus ResponseStatus = null;
        public String Name = null;
        public UUID Guid = null;
        public Date DateLastUpdate = null;
        public DiagramImageDetail Image = null;
        public ArrayList<DiagramPartDetail> Parts = null;
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public DiagramResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public String getName() { return Name; }
        public DiagramResponse setName(String value) { this.Name = value; return this; }
        public UUID getGuid() { return Guid; }
        public DiagramResponse setGuid(UUID value) { this.Guid = value; return this; }
        public Date getDateLastUpdate() { return DateLastUpdate; }
        public DiagramResponse setDateLastUpdate(Date value) { this.DateLastUpdate = value; return this; }
        public DiagramImageDetail getImage() { return Image; }
        public DiagramResponse setImage(DiagramImageDetail value) { this.Image = value; return this; }
        public ArrayList<DiagramPartDetail> getParts() { return Parts; }
        public DiagramResponse setParts(ArrayList<DiagramPartDetail> value) { this.Parts = value; return this; }
    }

    public static class DiagramImageDetail
    {
        public String Url = null;
        public Integer Width = null;
        public Integer Height = null;
        
        public String getUrl() { return Url; }
        public DiagramImageDetail setUrl(String value) { this.Url = value; return this; }
        public Integer getWidth() { return Width; }
        public DiagramImageDetail setWidth(Integer value) { this.Width = value; return this; }
        public Integer getHeight() { return Height; }
        public DiagramImageDetail setHeight(Integer value) { this.Height = value; return this; }
    }

    public static class DiagramPartDetail
    {
        public Integer Number = null;
        public String PartName = null;
        public String PartId = null;
        public String ImageUrl = null;
        public ArrayList<Coordinate> Coordinates = null;
        
        public Integer getNumber() { return Number; }
        public DiagramPartDetail setNumber(Integer value) { this.Number = value; return this; }
        public String getPartName() { return PartName; }
        public DiagramPartDetail setPartName(String value) { this.PartName = value; return this; }
        public String getPartId() { return PartId; }
        public DiagramPartDetail setPartId(String value) { this.PartId = value; return this; }
        public String getImageUrl() { return ImageUrl; }
        public DiagramPartDetail setImageUrl(String value) { this.ImageUrl = value; return this; }
        public ArrayList<Coordinate> getCoordinates() { return Coordinates; }
        public DiagramPartDetail setCoordinates(ArrayList<Coordinate> value) { this.Coordinates = value; return this; }
    }

    public static class Coordinate
    {
        public Integer x1 = null;
        public Integer y1 = null;
        public Integer x2 = null;
        public Integer y2 = null;
        
        public Integer getX1() { return x1; }
        public Coordinate setX1(Integer value) { this.x1 = value; return this; }
        public Integer getY1() { return y1; }
        public Coordinate setY1(Integer value) { this.y1 = value; return this; }
        public Integer getX2() { return x2; }
        public Coordinate setX2(Integer value) { this.x2 = value; return this; }
        public Integer getY2() { return y2; }
        public Coordinate setY2(Integer value) { this.y2 = value; return this; }
    }

}

Java Diagram DTOs

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

HTTP + XML

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

POST /diagram/{Guid} HTTP/1.1 
Host: mds-api.mojomotorcycles.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<Diagram xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mds.Api.ServiceModel">
  <Guid>00000000-0000-0000-0000-000000000000</Guid>
</Diagram>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DiagramResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mds.Api.ServiceModel">
  <DateLastUpdate>0001-01-01T00:00:00</DateLastUpdate>
  <Guid>00000000-0000-0000-0000-000000000000</Guid>
  <Image>
    <Height>0</Height>
    <Url>String</Url>
    <Width>0</Width>
  </Image>
  <Name>String</Name>
  <Parts>
    <DiagramPartDetail>
      <Coordinates xmlns:d4p1="http://schemas.datacontract.org/2004/07/Tiptopweb.MojoPortal.Shared.Poco">
        <d4p1:Coordinate>
          <d4p1:x1>0</d4p1:x1>
          <d4p1:x2>0</d4p1:x2>
          <d4p1:y1>0</d4p1:y1>
          <d4p1:y2>0</d4p1:y2>
        </d4p1:Coordinate>
      </Coordinates>
      <ImageUrl>String</ImageUrl>
      <Number>0</Number>
      <PartId>String</PartId>
      <PartName>String</PartName>
    </DiagramPartDetail>
  </Parts>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</DiagramResponse>