POST api/Edie_services
edit data
Request Information
URI Parameters
None.
Body Parameters
{Card_services,"token":""}
Card_servicesName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
clinic_id | integer |
None. |
|
card_id | integer |
None. |
|
user_id | integer |
None. |
|
token | string |
None. |
|
details | Collection of Card_services_details |
None. |
Request Formats
application/json, text/json
Sample:
{ "id": 1, "clinic_id": 2, "card_id": 3, "user_id": 4, "token": "sample string 5", "details": [ { "id_services": 1, "services_name": "sample string 2", "price": 3.1, "discount": 4.1, "net": 5.1, "note": "sample string 6" }, { "id_services": 1, "services_name": "sample string 2", "price": 3.1, "discount": 4.1, "net": 5.1, "note": "sample string 6" } ] }
text/xml
Sample:
<Card_services xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cards_api"> <card_id>3</card_id> <clinic_id>2</clinic_id> <details> <Card_services_details> <discount>4.1</discount> <id_services>1</id_services> <net>5.1</net> <note>sample string 6</note> <price>3.1</price> <services_name>sample string 2</services_name> </Card_services_details> <Card_services_details> <discount>4.1</discount> <id_services>1</id_services> <net>5.1</net> <note>sample string 6</note> <price>3.1</price> <services_name>sample string 2</services_name> </Card_services_details> </details> <id>1</id> <token>sample string 5</token> <user_id>4</user_id> </Card_services>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
{"data" [],"rowcount": 1,"status": true,"msg_error": ""}
outdataName | Description | Type | Additional information |
---|---|---|---|
data | DataTable |
None. |
|
rowcount |
if get data then return count row else return the id row affected |
integer |
None. |
status | boolean |
None. |
|
msg_error | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "data": null, "rowcount": 1, "status": true, "msg_error": "sample string 3" }
text/xml
Sample:
<outdata xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cards_api"> <data i:nil="true" /> <msg_error>sample string 3</msg_error> <rowcount>1</rowcount> <status>true</status> </outdata>