News¶
News list¶
/news/
| method | GET |
Input vars
| Parameter | Type | Description |
|---|---|---|
| tags | string | Filter news by keyword found in tags |
| text | string | Filter news by keyword found in the body |
Response
| Parameter | Type | Description |
|---|---|---|
| news | integer | Id |
| Nested in news(look single-news-information) | ||
Single news information¶
/news/{news_id}/
| method | GET |
Parameters
| Parameter | Type | Description |
|---|---|---|
| news_id | integer | News ID |
Response
| Parameter | Type | Description |
|---|---|---|
| id | integer | News ID |
| title | integer | Point Id |
| brief | string | News title |
| text | string | News text |
| author | author | Company or author name |
| link | string | Link to original article |
| tags | array | Tags(array of strings) |
| image | string | Url for main image |
| pubdate | timestamp | Publication date |
Add news¶
/news/
| method | POST |
| Auth | YES |
Input vars
| Parameter | Type | Description |
|---|---|---|
| Look news’s info response data | ||
Response
| Parameter | Type | Description |
|---|---|---|
| id | integer | Id newly added news |
Edit news¶
/news/{news_id}/
| method | PUT |
| Auth | YES |
Parameters
| Parameter | Type | Description |
|---|---|---|
| news_id | integer | News ID |
Input vars
| Parameter | Type | Description |
|---|---|---|
| Look single-news-information | ||
Response
| Parameter | Type | Description |
|---|---|---|
| result | 1 | |
Remove news¶
/news/{news_id}/
| method | DELETE |
| Auth | YES |
Parameters
| Parameter | Type | Description |
|---|---|---|
| news_id | integer | News ID |
Response
| Parameter | Type | Description |
|---|---|---|
| result | 1 | |