Skip to content

Instantly share code, notes, and snippets.

@cuipengfei
Last active June 28, 2017 13:42
Show Gist options
  • Save cuipengfei/ee451cba9e736fde6a093b1b2052fc3f to your computer and use it in GitHub Desktop.
Save cuipengfei/ee451cba9e736fde6a093b1b2052fc3f to your computer and use it in GitHub Desktop.
gebrauchtwagen
swagger: "2.0"
info:
version: "latest"
title: "gebrauchtwagen.at async APIs"
description: "XHR APIs of gebrauchtwagen.at. The try it out feature of swagger may not work in this page, because gebrauchtwagen.at does not allow CORS, but you can see requests and responses in Chrome's developer console."
host: "www.gebrauchtwagen.at"
basePath: "/"
schemes:
- "http"
paths:
/functions/ajx_marke_modell_detailsuche.php:
get:
summary: "Search for models of a specific brand (根据车的品牌查找可选的型号)"
produces:
- "text/plain"
parameters:
- name: "marke_var"
in: "query"
description: "brand of vehicle, marke is german for brand"
required: false
responses:
200:
description: "Got search results"
/functions/check_ss_result.php:
get:
summary: "Count how many vehicles fit search criterias"
produces:
- "text/plain"
parameters:
- name: "marke"
in: "query"
description: "brand of vehicle, marke is german for brand"
required: false
- name: "modell"
in: "query"
description: "model of vehicle (型号)"
required: false
- name: "preis_von"
in: "query"
description: "price min"
required: false
- name: "preis_bis"
in: "query"
description: "price max"
required: false
- name: "ez_von"
in: "query"
description: "manufacture year min"
required: false
- name: "ez_bis"
in: "query"
description: "manufacture year max"
required: false
- name: "km_von"
in: "query"
description: "kilometers min"
required: false
- name: "km_bis"
in: "query"
description: "kilometers max"
required: false
- name: "kw_von"
in: "query"
description: "power min"
required: false
- name: "kw_bis"
in: "query"
description: "power max"
required: false
- name: "lst_eh"
in: "query"
description: "power unit, 1 for PS(马力), 2 for KW(千瓦)"
required: false
- name: "treibstoff"
in: "query"
description: "fuel type(example: gas/electric, etc)"
required: false
- name: "neuwagen"
in: "query"
description: "new cars only, 0 false, 1 true"
required: false
- name: "neuwagen"
in: "query"
description: "new cars only, 0 false, 1 true"
required: false
- name: "originalbild"
in: "query"
description: "has original pictures, 0 false, 1 true"
required: false
- name: "hinserate"
in: "query"
description: "only dealer listings, 0 false, 1 true"
required: false
- name: "antrieb"
in: "query"
description: "only 4 wheels drive, 0 false, 1 true"
required: false
responses:
200:
description: "Got search results"
/functions/check_ds_result.php:
get:
summary: "Facet search. The result will tell you how many cars fit your search criterias and also tell you how many of them are in what category. For example: your search matches 10 cars, 4 of them are red color, 7 of them have 4 doors, etc. It take all the parameters that are taken by the above api and MANY MORE."
parameters:
- name: "marke"
in: "query"
description: "brand of vehicle, marke is german for brand"
required: false
- name: "modell"
in: "query"
description: "model of vehicle (型号)"
required: false
- name: "preis_von"
in: "query"
description: "price min"
required: false
- name: "preis_bis"
in: "query"
description: "price max"
required: false
- name: "ez_von"
in: "query"
description: "manufacture year min"
required: false
- name: "ez_bis"
in: "query"
description: "manufacture year max"
required: false
- name: "km_von"
in: "query"
description: "kilometers min"
required: false
- name: "km_bis"
in: "query"
description: "kilometers max"
required: false
- name: "kw_von"
in: "query"
description: "power min"
required: false
- name: "kw_bis"
in: "query"
description: "power max"
required: false
- name: "lst_eh"
in: "query"
description: "power unit, 1 for PS(马力), 2 for KW(千瓦)"
required: false
- name: "treibstoff"
in: "query"
description: "fuel type(example: gas/electric, etc)"
required: false
- name: "neuwagen"
in: "query"
description: "new cars only, 0 false, 1 true"
required: false
- name: "neuwagen"
in: "query"
description: "new cars only, 0 false, 1 true"
required: false
- name: "originalbild"
in: "query"
description: "has original pictures, 0 false, 1 true"
required: false
- name: "hinserate"
in: "query"
description: "only dealer listings, 0 false, 1 true"
required: false
- name: "antrieb"
in: "query"
description: "only 4 wheels drive, 0 false, 1 true"
required: false
responses:
200:
description: "Got search results"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment