-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathschema.gql
More file actions
67 lines (63 loc) · 1.47 KB
/
schema.gql
File metadata and controls
67 lines (63 loc) · 1.47 KB
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
schema {
query: Query
}
type Query {
"""
Returns information about a Chrome extension based on it's ID and language (defaults to "en").
"""
chromeExtension(id: String!): ChromeExtension
"""
Returns information about a list of Chrome extension ids.
"""
chromeExtensions(ids: [String!]!): [ChromeExtension]!
"""
Returns information about a Firefox addon based on it's ID/GUID/slug.
"""
firefoxAddon(id: String!): FirefoxAddon
"""
Returns information about a list of Firefox addon ID/GUID/slugs.
"""
firefoxAddons(ids: [String!]!): [FirefoxAddon]!
}
type ChromeExtension {
id: String!
name: String!
iconUrl: String!
storeUrl: String!
shortDescription: String!
longDescription: String!
weeklyActiveUsers: Int!
version: String!
lastUpdated: String!
rating: Float
reviewCount: Int
screenshots: [Screenshot!]!
}
type FirefoxAddon {
id: String!
name: String!
iconUrl: String!
storeUrl: String!
shortDescription: String!
longDescription: String!
dailyActiveUsers: Int!
version: String!
lastUpdated: String!
rating: Float
reviewCount: Int
screenshots: [Screenshot!]!
}
type Screenshot {
"""
The screenshot's order.
"""
index: Int!
"""
The image's raw URL provided by the service. When screenshots are updated, this URL changes.
"""
rawUrl: String!
"""
URL to the image based on the index. If the raw URL changes, the `indexUrl` will remain constant, good for links in README.md files.
"""
indexUrl: String!
}