mirror of
https://github.com/imjasonh/go-marvel
synced 2026-07-18 06:47:49 +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 {
|
||||
commonList
|
||||
Results []struct {
|
||||
ID int `json:"id"`
|
||||
DigitalID int `json:"digitalId"`
|
||||
} `json:"results"`
|
||||
} `json:"data"`
|
||||
ID int
|
||||
Title string
|
||||
Description string
|
||||
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) {
|
||||
u := c.baseURL(req)
|
||||
u.Path += fmt.Sprintf("series/%d/comics", id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue