项目作者: opencars

项目描述 :
:red_car: Decoding vehicle identification number
高级语言: Go
项目地址: git://github.com/opencars/vin-decoder-api.git
创建时间: 2019-12-23T21:51:18Z
项目社区:https://github.com/opencars/vin-decoder-api

开源协议:MIT License

下载


VIN Decoder

:red_car: Decoding vehicle identification number

Development

Build the binary

  1. make

Start postgres

  1. docker-compose up -Vd

Run sql migrations

  1. migrate -source file://migrations -database postgres://postgres:password@127.0.0.1:5432/vin-decoder\?sslmode=disable up

Run the web server

  1. ./bin/server

Usage

For example, you get information about this amazing Tesla Model X

  1. http http://localhost:8080/api/v1/vin-decoder/5YJXCCE40GF010543
  1. {
  2. "vehicle": {
  3. "check_digit": true,
  4. "country": "United States",
  5. "manufacturer": "Tesla, Inc.",
  6. "region": "North America",
  7. "serial": "010543",
  8. "year": 2016
  9. },
  10. "vin": {
  11. "vds": "XCCE40",
  12. "vis": "GF010543",
  13. "wmi": "5YJ"
  14. }
  15. }

License

Project released under the terms of the MIT license.