Find Motorcycle by ID

Returns a single motorcycle by the ID (the primary key in the database). The ID was returned in the response code when the car was added to the collection. See Add Motorcyle.

Swagger Documentation

Method GET
Endpoint /motorcycle/{motorcycleId}
Base Path azvehicles.com/azstc2018api
Consumes application/json
Produces
  • application/json
  • application/xml
Query Request Parameter
Query Parameter Data Type Required/Optional Valid Values Description
carId
  • integer
  • int64
Required 8-digit numeric The motorcycle ID provided by AZ Vehicles.
Response Payload Parameters
Request JSON Data Element Data Type Required/Optional Valid Values Description
id
  • integer
  • int64
Required 8-digit numeric The system-generated unique ID for the car.
make
  • enum
  • string
Required
  • BMW
  • Ducati
  • Harley-Davidson
  • Honda
  • Indian
  • Kawasaki
  • Suzuki
  • Yamaha
The make of the motorcyle. For example, Honda, Indian, Harley-Davidson, and so on.
model
  • enum
  • string
Required The model of the motorcycle. The model of the motorcycle. For example, Low Glider, Low Rider, Strugis, and so on.
year
  • enum
  • string
Required
  • 1964
  • 1965
  • 1966
  • 1967
  • 1968
  • 1969
  • 1970
  • 1971
  • 1972
  • 1973
  • 1974
  • 1975
  • 1976
  • 1977
  • 1978
  • 1979
  • 1980
  • 1981
  • 1982
  • 1983
  • 1984
  • 1985
  • 1986
The year the motorcycle was produced (must be 1964-1986).
color
  • enum
  • string
Required
  • Black
  • Brown
  • White
  • Silver
  • Gold
  • Red
  • Blue
  • Green
  • Orange
  • Purple
  • Yellow
The primary color of the motorcyle.
Response Status Codes
Code Definition
200 Successful operation.
400 Invalid car ID. Please enter a valid car ID.
404 Car not found.