Ship API
Access
Methods
[ Jump to Models ]
Table of Contents
Attachments
Ships
Attachments
get /attachments/{attachmentId}
Path parameters
Consumes
This API call consumes the following media types via the Content-Type request header:
application/json;charset=utf-8
Return type
Example data
{
"buildnumber" : 123,
"filename" : "aeiou",
"attachmentdata" : "aeiou",
"type" : "aeiou",
"url" : "aeiou",
"contenttype" : "aeiou"
}
Produces
This API call produces the following media types according to the Accept request header;
the media type will be conveyed by the Content-Type response header.
application/json;charset=utf-8
Responses
200
Single attachment
Attachment
400
Invalid request was sent to the server
BadRequest
403
Attempted to make a call with unauthorized client
Forbidden
404
Attachment with specified ID was not found
NotFound
500
Internal server error
InternalServerError
get /attachments/{attachmentId}/data
Path parameters
Consumes
This API call consumes the following media types via the Content-Type request header:
application/json;charset=utf-8
Return type
byte[]
Example data
Produces
This API call produces the following media types according to the Accept request header;
the media type will be conveyed by the Content-Type response header.
application/octet-stream
Responses
200
Returns an attachment data
byte[]
400
Invalid request was sent to the server
BadRequest
403
Attempted to make a call with unauthorized client
Forbidden
404
Attachment with specified ID was not found
NotFound
500
Internal server error
InternalServerError
get /attachments
Consumes
This API call consumes the following media types via the Content-Type request header:
application/json;charset=utf-8
Query parameters
Return type
Example data
[ {
"buildnumber" : 123,
"filename" : "aeiou",
"attachmentdata" : "aeiou",
"type" : "aeiou",
"url" : "aeiou",
"contenttype" : "aeiou"
} ]
Produces
This API call produces the following media types according to the Accept request header;
the media type will be conveyed by the Content-Type response header.
application/json;charset=utf-8
Responses
200
An array of attachments
400
Invalid request was sent to the server
BadRequest
403
Attempted to make a call with unauthorized client
Forbidden
500
Internal server error
InternalServerError
Ships
get /ships/{shipId}
Path parameters
Consumes
This API call consumes the following media types via the Content-Type request header:
application/json;charset=utf-8
Return type
Example data
{
"buildnumber" : 123,
"type_info" : "aeiou",
"buildyear" : "aeiou",
"name" : "aeiou",
"_id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"type" : "aeiou",
"type_translated" : "aeiou",
"properties" : [ {
"property" : "aeiou",
"value" : "aeiou"
} ]
}
Produces
This API call produces the following media types according to the Accept request header;
the media type will be conveyed by the Content-Type response header.
application/json;charset=utf-8
Responses
200
Returns a ship
Ship
400
Invalid request was sent to the server
BadRequest
403
Attempted to make a call with unauthorized client
Forbidden
404
Ship with specified ID was not found
NotFound
500
Internal server error
InternalServerError
get /ships
Consumes
This API call consumes the following media types via the Content-Type request header:
application/json;charset=utf-8
Query parameters
Return type
Example data
[ {
"buildnumber" : 123,
"type_info" : "aeiou",
"buildyear" : "aeiou",
"name" : "aeiou",
"_id" : "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"type" : "aeiou",
"type_translated" : "aeiou",
"properties" : [ {
"property" : "aeiou",
"value" : "aeiou"
} ]
} ]
Produces
This API call produces the following media types according to the Accept request header;
the media type will be conveyed by the Content-Type response header.
application/json;charset=utf-8
Responses
200
An array of ships
400
Invalid request was sent to the server
BadRequest
403
Attempted to make a call with unauthorized client
Forbidden
500
Internal server error
InternalServerError
Models
[ Jump to Methods ]