Manish Patat

Manish Patat

  • 1.6k
  • 68
  • 6.9k

New web api create in c#

Mar 2 2024 7:33 AM

i HAVE BEGINNER FROM API. SO PLEASE HELP ME. MY API STRUCTURE ARE BELOW

METHOD : POST

BODY: (JSON)

{

"customerPhone":"7799299756"

}

 

AFTER RESPONSE HERE..

Response :

Success:

{

"status": 200,

"message": "CustomerPoints",

"customer": {

"name": "Dileep Kumar",

"phone": "7799299756",

"email": null,

"points": 77

}

}

Errors:

{

“status”: {code},

“message”: {error_message}

}

 

Thabk in advance


Answers (3)