Sommaire

Urbaniste App

Service name : urbaniste

URL : api

Method : GET

Auth required : NO

Success Response code: 200 OK

JSON API

Show all customers

Get the details of all customers registered in the CRM db

Service name : crm

URL : api/data

Method : GET

Auth required : NO

Success Response code: 200 OK

Content examples:

[
  {
    "idClient": "a14e39ce-e29e-11e9-a8cb-08002751d198",
    "firstName": "Jacquie",
    "lastName": "Bloggs",
    "fidelityPoint": 42,
    "payment": 0,
    "account": "BKN1CST53"
  },
  {
    "idClient": "a14f4a08-e29e-11e9-a8cb-08002751d198",
    "firstName": "Michelle",
    "lastName": "Bigoudi",
    "fidelityPoint": 69,
    "payment": 3,
    "account": "BKN1BNT53"
  }
]

Show one customer

Get the details of a customer registered in the CRM db with ID.

Service name : crm

URL : api/data/<id>

Method : GET

Auth required : NO

Success Response code: 200 OK

Content examples:

[
     {
       "idClient": "a14e39ce-e29e-11e9-a8cb-08002751d198",
       "firstName": "Jacquie",
       "lastName": "Bloggs",
       "fidelityPoint": 42,
       "payment": 0,
       "account": "BKN1CST53"
     }
 ]

Add a customer

Register a new customer in CRM db

Service name : crm

URL : /api/update_db

Method : POST

Auth required : NO

Success Response code: 200 OK

Content examples:

{"clients" : [
                {
                    "Nom": "Eddison-18",
                    "Prenom": "Jean",
                    "Credit": 0.0,
                    "Paiement": 0,
                    "Compte": "BKN1CST18"
                },
                {
                    "Nom": "Sarkozy-51",
                    "Prenom": "Marc",
                    "Credit": 0.0,
                    "Paiement": 0
                },
                {
                    "Nom": "Eddison-53",
                    "Prenom": "Anne",
                    "Credit": 154.62542724609375,
                    "Paiement": 3,
                    "Compte": "BKN1CST53"
                }
            ]
}