Skip to content

Instantly share code, notes, and snippets.

@waxzce
Created November 12, 2015 14:05
Show Gist options
  • Save waxzce/d34a8769a1dfa34246be to your computer and use it in GitHub Desktop.
Save waxzce/d34a8769a1dfa34246be to your computer and use it in GitHub Desktop.
swagger: '2.0'
info:
title: Evolutions MarketPrice France | Mise en place WS avec Cobredia
description: L’objectif de ce document est de décrire la mise en place d’une interface via Web-Service entre MarketPrice (MP) et la future plate-forme Web du Groupe COBREDIA. Le WS devant être développé par MP, il est nécessaire de faire de rédiger la documentation descriptive du WS mais aussi d’apporter des modifications à l’outil MP de façon à bien prendre en compte toutes les données mises à disposition.
version: "1.0.0"
# the domain of the service (dev)
host: dev2.marketprice-fr.synten.com
# array of all schemes that your API supports
schemes:
- http
# will be prefixed to all paths
basePath: /demande
consumes:
- application/x-www-form-urlencoded
paths:
/demande-cobredia:
post:
summary: L'adresse du WS qui sera appelée par COBREDIA sera http://www.marketprice.fr/demande/demande-cobredia.
description: |
Pour chaque demande d’estimation de véhicule, un certain nombre de champs sont fournis.
La majorité d’entre eux sont présents sauf les données nécessaires au grading et celles des Frais
de remise en état.
Il faudra donc mettre en place :
• Une table de correspondance en fonction de l’âge/km du véhicule (table à fournir)
• Une table de correspondance entre les montants de frais de remise en état calculés et les notes spécifiques au Grading (table utilisée pour le WS B2L).
parameters:
- name: demande_estimation
in: body
description: demande d'estimation
required: false
schema:
$ref: '#/definitions/demande_estimation'
tags:
- Demande d'estimation
responses:
200:
description: reponses (demande automatique)
schema:
type: array
items:
$ref: '#/definitions/Automatique'
201:
description: reponses (demande manuelle)
schema:
type: array
items:
$ref: '#/definitions/Manuelle'
default:
description: Unexpected error
schema:
$ref: '#/definitions/Error'
definitions:
demande_estimation:
properties:
authentification:
type: object
properties:
sId:
type: string
sPass:
type: string
vehicule:
type: object
properties:
CodeSociete:
type: number
format: int32
Immatriculation:
type: string
idDemande:
type: number
format: int32
TYPNatCode:
type: number
format: int32
ZVEDescar:
type: string
MAKNatCode:
type: number
format: int32
MODNatCode:
type: number
format: int32
MAKNatLib:
type: string
MODNatLib:
type: string
DateMEC:
type: string
format: date
TYPName:
type: string
TYPName2:
type: string
Equipement:
type: object
properties:
code:
type: number
format: int32
libelle:
type: string
serieOption:
type: string
Kilometrage:
type: string
CouleurExt:
type: string
CouleurInt:
type: string
EtatVehicule:
type: string
IsPremiereMain:
type: boolean
IsAccidente:
type: boolean
PresenceCarnetEntretien:
type: boolean
KilometrageGaranti:
type: boolean
Import:
type: boolean
client:
type: object
properties:
NomClient:
type: string
PrenomClient:
type: string
EmailClient:
type: string
CodePostal:
type: number
format: int32
TelClient:
type: number
format: int32
Automatique:
properties:
statut:
type: integer
description: statut "3"
idDemande:
type: integer
description: Identifiant de la demande
prixPropose:
type: integer
description: Le prix proposé
post:
type: integer
description: post
Manuelle:
properties:
statut:
type: integer
description: statut 2
Error:
properties:
statut:
type: integer
description: statut 12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment