Website

Read all generations from model

Last update: 11.12.2023

Returns list of all generations from model.

GET: https://www.autovit.ro/api/open/categories/:category_id/models/:brand_code/generations/:model_code
Permission: read

Header

Field Type Description
User-Agent string Account email.

Query Param

Field Type Description
category_id Number Category Id. Category unique ID.
brand_code String Brand Slug.
model_code String Model Slug.

Example request:
		HTTP/1.1 GET /categories/29/models/ford/generations/focus

User-Agent: $USER_EMAIL
Content-Type: application/json
Authorization: Bearer $ACCESS_TOKEN			
		
Copied to clipboard

200

Field Type Description
options Object document containing all generations keys and associated labels in a per language basis
Success response:
		HTTP/1.1 200 OK

 {
     "options": {
         "gen-mk1": {
             "ro": "Mk1",
             "en": "Mk1"
         },
         "gen-mk2": {
             "ro": "Mk2",
             "en": "Mk2"
         },
         "gen-mk3": {
             "ro": "Mk3",
             "en": "Mk3"
         },
         "gen-st": {
             "ro": "St",
             "en": "St"
         },
     }
}			
		
Copied to clipboard