1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//! Resource methods for the `news` API group.
//!
//! # Operations
//!
//! | Method | Op | Path |
//! |--------|-----|------|
//! | GET | `get_news_item` | `/news/{item_id}` |
//! | GET | `list_news_sources` | `/news_sources` |
//!
//!
//! ## Multi-ID lookups for `get_news_item`
//!
//! The Nordnet API path parameter for `get_news_item` accepts a
//! comma-separated list of news article IDs. This method covers the
//! single-ID case via the [`NewsId`] newtype, mirroring the
//! [`Client::get_market`] pattern. A future helper may be added for
//! multi-ID lookups when needed (Phase 3X).
//!
//!
//! ## 204 No Content
//!
//! `GET /news/{item_id}` may return HTTP 204 (No Content) when no matching
//! article is found. The base [`Client::get`] method attempts to parse the
//! empty response body as JSON, which fails. `get_news_item` detects this
//! specific case (a [`Error::Decode`] with an empty body) and maps it to
//! an empty `Vec`, mirroring [`Client::get_country`] / [`Client::get_market`].
//!
//!
//! ## `body_format` query parameter
//!
//! The `body_format` query parameter is documented as deprecated with no
//! effect on the response. It is intentionally NOT exposed on this method.
use crateClient;
use crateError;
use ;