ns1-go
ns1-go copied to clipboard
"feeds" field is missing from the Answer struct
According to the API documentation here: https://developer.ibm.com/apis/catalog/ns1--ibm-ns1-connect-api/api/API--ns1--ibm-ns1-connect-api#getRecord , the answer fields of the record resource has a "feeds" field. However this field is missing from the client implementation's Answer
struct here: https://github.com/ns1/ns1-go/blob/72c28cb2abb537ade303b5ab2be5c3cc38e88632/rest/model/dns/answer.go#L14-L27
Extending the struct like this:
type AnswerFeed struct {
Feed string `json:"feed"`
Source string `json:"source"`
}
type Answer struct {
...
Feeds []AnswerFeed `json:"feeds"`
}
Seems to be working properly for Records.Get
.
This field would be very useful to have included, because feeds can not be queried only by their ID (that can be get from a metadata feed pointer) the source ID is needed as well, but there's no other way to get this info.