POST StallionAds/Add
İlan eklemek için kullanılır. || Used to add the ads year.
Request Information
URI Parameters
None.
Body Parameters
STALLION_ADS| Name | Description | Type | Additional information |
|---|---|---|---|
| STALLION_ADS_ID | integer |
None. |
|
| SIRE_ID | integer |
None. |
|
| SIRE_TEXT | string |
None. |
|
| YEAR_OBJECT | YEAR |
None. |
|
| PLACE_OBJECT | PLACE |
None. |
|
| FEE | integer |
None. |
|
| CURRENCY_OBJECT | CURRENCY |
None. |
|
| FEE_CURRENCY_ICON | string |
None. |
|
| MAX_COUNT | integer |
None. |
|
| MARE_COUNT | integer |
None. |
|
| PREGNANT_COUNT | integer |
None. |
|
| EMPTY_COUNT | integer |
None. |
|
| UNCHECKED_COUNT | integer |
None. |
|
| DEAD_MARE_COUNT | integer |
None. |
|
| ALIVE_COUNT | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"STALLION_ADS_ID": 1,
"SIRE_ID": 2,
"SIRE_TEXT": "sample string 3",
"YEAR_OBJECT": {
"YEAR_ID": 1,
"YEAR_TEXT": 2
},
"PLACE_OBJECT": {
"PLACE_ID": 1,
"COUNTRY_OBJECT": {
"COUNTRY_ID": 1,
"COUNTRY_EN": "sample string 2",
"COUNTRY_TR": "sample string 3",
"ABBREVIATION": "sample string 4",
"ICON": "sample string 5",
"CODE": 6,
"STALLION_LIST": [
{
"ID": 1,
"NAME": "sample string 2"
},
{
"ID": 1,
"NAME": "sample string 2"
}
]
},
"PLACE_TEXT": "sample string 2",
"ACTIVE": true
},
"FEE": 4,
"CURRENCY_OBJECT": {
"CURRENCY_ID": 1,
"TEXT": "sample string 2",
"ICON": "sample string 3",
"PARITE": 4.1
},
"FEE_CURRENCY_ICON": "sample string 5",
"MAX_COUNT": 6,
"MARE_COUNT": 7,
"PREGNANT_COUNT": 8,
"EMPTY_COUNT": 9,
"UNCHECKED_COUNT": 10,
"DEAD_MARE_COUNT": 11,
"ALIVE_COUNT": 12
}
text/html
Sample:
{"STALLION_ADS_ID":1,"SIRE_ID":2,"SIRE_TEXT":"sample string 3","YEAR_OBJECT":{"YEAR_ID":1,"YEAR_TEXT":2},"PLACE_OBJECT":{"PLACE_ID":1,"COUNTRY_OBJECT":{"COUNTRY_ID":1,"COUNTRY_EN":"sample string 2","COUNTRY_TR":"sample string 3","ABBREVIATION":"sample string 4","ICON":"sample string 5","CODE":6,"STALLION_LIST":[{"ID":1,"NAME":"sample string 2"},{"ID":1,"NAME":"sample string 2"}]},"PLACE_TEXT":"sample string 2","ACTIVE":true},"FEE":4,"CURRENCY_OBJECT":{"CURRENCY_ID":1,"TEXT":"sample string 2","ICON":"sample string 3","PARITE":4.1},"FEE_CURRENCY_ICON":"sample string 5","MAX_COUNT":6,"MARE_COUNT":7,"PREGNANT_COUNT":8,"EMPTY_COUNT":9,"UNCHECKED_COUNT":10,"DEAD_MARE_COUNT":11,"ALIVE_COUNT":12}
application/xml, text/xml
Sample:
<STALLION_ADS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/bnfBLL.ADS">
<ALIVE_COUNT>12</ALIVE_COUNT>
<CURRENCY_OBJECT xmlns:d2p1="http://schemas.datacontract.org/2004/07/bnfBLL.SYSTEM">
<d2p1:CURRENCY_ID>1</d2p1:CURRENCY_ID>
<d2p1:ICON>sample string 3</d2p1:ICON>
<d2p1:PARITE>4.1</d2p1:PARITE>
<d2p1:TEXT>sample string 2</d2p1:TEXT>
</CURRENCY_OBJECT>
<DEAD_MARE_COUNT>11</DEAD_MARE_COUNT>
<EMPTY_COUNT>9</EMPTY_COUNT>
<FEE>4</FEE>
<FEE_CURRENCY_ICON>sample string 5</FEE_CURRENCY_ICON>
<MARE_COUNT>7</MARE_COUNT>
<MAX_COUNT>6</MAX_COUNT>
<PLACE_OBJECT xmlns:d2p1="http://schemas.datacontract.org/2004/07/bnfBLL.SYSTEM">
<d2p1:ACTIVE>true</d2p1:ACTIVE>
<d2p1:COUNTRY_OBJECT>
<d2p1:ABBREVIATION>sample string 4</d2p1:ABBREVIATION>
<d2p1:CODE>6</d2p1:CODE>
<d2p1:COUNTRY_EN>sample string 2</d2p1:COUNTRY_EN>
<d2p1:COUNTRY_ID>1</d2p1:COUNTRY_ID>
<d2p1:COUNTRY_TR>sample string 3</d2p1:COUNTRY_TR>
<d2p1:ICON>sample string 5</d2p1:ICON>
<d2p1:STALLION_LIST xmlns:d4p1="http://schemas.datacontract.org/2004/07/bnfBLL.TOOLS">
<d4p1:NAMEID>
<d4p1:ID>1</d4p1:ID>
<d4p1:NAME>sample string 2</d4p1:NAME>
</d4p1:NAMEID>
<d4p1:NAMEID>
<d4p1:ID>1</d4p1:ID>
<d4p1:NAME>sample string 2</d4p1:NAME>
</d4p1:NAMEID>
</d2p1:STALLION_LIST>
</d2p1:COUNTRY_OBJECT>
<d2p1:PLACE_ID>1</d2p1:PLACE_ID>
<d2p1:PLACE_TEXT>sample string 2</d2p1:PLACE_TEXT>
</PLACE_OBJECT>
<PREGNANT_COUNT>8</PREGNANT_COUNT>
<SIRE_ID>2</SIRE_ID>
<SIRE_TEXT>sample string 3</SIRE_TEXT>
<STALLION_ADS_ID>1</STALLION_ADS_ID>
<UNCHECKED_COUNT>10</UNCHECKED_COUNT>
<YEAR_OBJECT xmlns:d2p1="http://schemas.datacontract.org/2004/07/bnfBLL.SYSTEM">
<d2p1:YEAR_ID>1</d2p1:YEAR_ID>
<d2p1:YEAR_TEXT>2</d2p1:YEAR_TEXT>
</YEAR_OBJECT>
</STALLION_ADS>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ProcessResult| Name | Description | Type | Additional information |
|---|---|---|---|
| m_sClass | string |
None. |
|
| m_sMethod | string |
None. |
|
| m_iLastId | integer |
None. |
|
| m_cDataTable | DataTable |
None. |
|
| m_lUserMessageList | Collection of string |
None. |
|
| m_PageList | Collection of integer |
None. |
|
| m_sErrorMessage | string |
None. |
|
| m_cException | Exception |
None. |
|
| m_eProcessState | ProcessState |
None. |
Response Formats
application/json, text/json
Sample:
{
"m_eProcessState": 0,
"m_sClass": "sample string 1",
"m_sMethod": "sample string 2",
"m_iLastId": 3,
"m_cDataTable": null,
"m_lUserMessageList": [
"sample string 1",
"sample string 2"
],
"m_PageList": [
1,
2
],
"m_sErrorMessage": "sample string 4",
"m_cException": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
}
}
text/html
Sample:
{"m_eProcessState":0,"m_sClass":"sample string 1","m_sMethod":"sample string 2","m_iLastId":3,"m_cDataTable":null,"m_lUserMessageList":["sample string 1","sample string 2"],"m_PageList":[1,2],"m_sErrorMessage":"sample string 4","m_cException":{"ClassName":"System.Exception","Message":null,"Data":null,"InnerException":null,"HelpURL":"sample string 1","StackTraceString":null,"RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":null,"HResult":3,"Source":"sample string 2","WatsonBuckets":null}}
application/xml, text/xml
Sample:
<ProcessResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/bnfOBJ">
<m_PageList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</m_PageList>
<m_cDataTable i:nil="true" />
<m_cException xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
<Message i:nil="true" xmlns="" />
<Data i:nil="true" xmlns="" />
<InnerException i:nil="true" xmlns="" />
<HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
<StackTraceString i:nil="true" xmlns="" />
<RemoteStackTraceString i:nil="true" xmlns="" />
<RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
<ExceptionMethod i:nil="true" xmlns="" />
<HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
<Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
<WatsonBuckets i:nil="true" xmlns="" />
</m_cException>
<m_eProcessState>SystemException</m_eProcessState>
<m_iLastId>3</m_iLastId>
<m_lUserMessageList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</m_lUserMessageList>
<m_sClass>sample string 1</m_sClass>
<m_sErrorMessage>sample string 4</m_sErrorMessage>
<m_sMethod>sample string 2</m_sMethod>
</ProcessResult>