0
Wie kann ich anpassen WebAPI 2 Antwort wie Status, Daten, Meldung im JSON-Formatanpassen WebAPI Antwort wie Stand, Daten, Nachrichtenformat
Erfolgreiche Anfrage:
{
"status": "success",
"data": {
/* Application-specific data would go here. */
},
"message": null /* Or optional success message */
}
fehlgeschlagen Anfrage:
{
"status": "error",
"data": null, /* or optional error payload */
"message": "Error xyz has occurred"
}