mirror of
https://github.com/imjasonh/go-marvel
synced 2026-07-21 22:57:15 +00:00
full schema for series list method, this will get more sane when other methods share structs
This commit is contained in:
parent
bc4665c04f
commit
c56c758bf4
1 changed files with 75 additions and 4 deletions
79
marvel.go
79
marvel.go
|
|
@ -76,10 +76,81 @@ func (c Client) Series(id int64, req CommonRequest) (resp struct {
|
||||||
Data struct {
|
Data struct {
|
||||||
commonList
|
commonList
|
||||||
Results []struct {
|
Results []struct {
|
||||||
ID int `json:"id"`
|
ID int
|
||||||
DigitalID int `json:"digitalId"`
|
Title string
|
||||||
} `json:"results"`
|
Description string
|
||||||
} `json:"data"`
|
ResourceURI string
|
||||||
|
URLs []struct {
|
||||||
|
Type string
|
||||||
|
URL string
|
||||||
|
}
|
||||||
|
StartYear int
|
||||||
|
EndYear int
|
||||||
|
Rating string
|
||||||
|
//Modified Date
|
||||||
|
Thumbnail struct {
|
||||||
|
Path string
|
||||||
|
Extension string
|
||||||
|
}
|
||||||
|
Comics struct {
|
||||||
|
Available int
|
||||||
|
Returned int
|
||||||
|
CollectionURI string
|
||||||
|
Items []struct {
|
||||||
|
ResourceURI string
|
||||||
|
Name string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Stories struct {
|
||||||
|
Available int
|
||||||
|
Returned int
|
||||||
|
CollectionURI string
|
||||||
|
Items []struct {
|
||||||
|
ResourceURI string
|
||||||
|
Name string
|
||||||
|
Type string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Events struct {
|
||||||
|
Available int
|
||||||
|
Returned int
|
||||||
|
CollectionURI string
|
||||||
|
Items []struct {
|
||||||
|
ResourceURI string
|
||||||
|
Name string
|
||||||
|
Type string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Characters struct {
|
||||||
|
Available int
|
||||||
|
Returned int
|
||||||
|
CollectionURI string
|
||||||
|
Items []struct {
|
||||||
|
ResourceURI string
|
||||||
|
Name string
|
||||||
|
Type string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Creators struct {
|
||||||
|
Available int
|
||||||
|
Returned int
|
||||||
|
CollectionURI string
|
||||||
|
Items []struct {
|
||||||
|
ResourceURI string
|
||||||
|
Name string
|
||||||
|
Type string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Next struct {
|
||||||
|
ResourceURI string
|
||||||
|
Name string
|
||||||
|
}
|
||||||
|
Previous struct {
|
||||||
|
ResourceURI string
|
||||||
|
Name string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}, err error) {
|
}, err error) {
|
||||||
u := c.baseURL(req)
|
u := c.baseURL(req)
|
||||||
u.Path += fmt.Sprintf("series/%d/comics", id)
|
u.Path += fmt.Sprintf("series/%d/comics", id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue