| POST | /v1/BaumusterModelMap | Upload and replace Baumuster–Model mapping CSV file | Delegates CSV upload to Vehicle Data API for processing |
|---|
# frozen_string_literal: true
# encoding: utf-8
require 'json'
require 'servicestack'
class PostBaumusterModelMapResponse
include ServiceStack::DTO
# @return [TrueClass]
attr_accessor :success
def self.properties
{
success: { name: 'success' },
}
end
end
class PostBaumusterModelMapRequest
include ServiceStack::DTO
def response_type() = PostBaumusterModelMapResponse
def get_type_name() = 'PostBaumusterModelMapRequest'
end
Ruby PostBaumusterModelMapRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/BaumusterModelMap HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"success":false}