POST api/saveTopData

save topData

Request Information

URI Parameters

None.

Body Parameters

Collection of topdata
NameDescriptionTypeAdditional information
id

integer

None.

langid

integer

None.

city

string

None.

atype

integer

None.

id_locations

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "langid": 2,
    "city": "sample string 3",
    "atype": 4,
    "id_locations": 5
  },
  {
    "id": 1,
    "langid": 2,
    "city": "sample string 3",
    "atype": 4,
    "id_locations": 5
  }
]

text/xml

Sample:
<ArrayOftopdata xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cards_api">
  <topdata>
    <atype>4</atype>
    <city>sample string 3</city>
    <id>1</id>
    <id_locations>5</id_locations>
    <langid>2</langid>
  </topdata>
  <topdata>
    <atype>4</atype>
    <city>sample string 3</city>
    <id>1</id>
    <id_locations>5</id_locations>
    <langid>2</langid>
  </topdata>
</ArrayOftopdata>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

{ "data" [],"rowcount": 1,"status": true,"msg_error": ""}

outdata
NameDescriptionTypeAdditional 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>