mardi 6 septembre 2016

Is there a design pattern for that : send a blank form and receive it back compeleted

Is there a design pattern for that ? A rest microservice receives a JSon data structure, with no value (but maybe an id) and returns back the same data with blanks filed? Example :

Input :

{
    id: 1546,
    name: ,
    height: ,
    color:
}

Output :

{
    id: 1546,
    name: "Bob",
    height: 40,
    color: "yellow"
}

Aucun commentaire:

Enregistrer un commentaire