POST api/News/addNewsPhotos
Dodanie zdjęcia do Newsa
Request Information
URI Parameters
None.
Body Parameters
model dodania zdjęcia
NewsPhotoModelsToAdd| Nazwa | Opis | Typ | Informacje dodatkowe |
|---|---|---|---|
| idNews |
Identyfikator newsa |
integer |
Required |
| linkURL |
Link do zdjęcia |
string |
Max length: 500 |
| source |
Zawartość zdjęcia |
string |
Max length: 2147483647 |
| alterText |
Tekst opisu zdjęcia |
string |
Max length: 100 |
| Default |
Zdjęcie domyślne |
boolean |
None. |
| Active |
Aktywność zdjęcia |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"idNews": 1,
"linkURL": "sample string 2",
"source": "sample string 3",
"alterText": "sample string 4",
"Default": true,
"Active": true
}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.