OBJECT

Query

link GraphQL Schema definition

1type Query {
2
3# A query to retrieve an existing User
4#
5# Arguments
6# username: Unique User identifier to be retrieved
7retrieveUser(username: String): User
8
9# A query to retrieve the WaterStation specified along with the measurements
10# recorded for the specified time interval (startDate - endDate)
11#
12# Arguments
13# startDate: Beginning of the period of time to be observed
14# endDate: End of the period of time to be observed
15# idWaterStation: Unique Water identifier to be retrieved
16retrieveWaterStation(
17startDate: String,
18endDate: String,
19idWaterStation: Int!
20): WaterStation
21
22# A query to retrieve all WaterStations in the network along with all the daily
23# measurements recorded
24retrieveAllWaterStations: [WaterStation]
25
26# A query to retrieve the AirStation specified along with the measurements
27# recorded for the specified time interval (endDate - startDate)
28#
29# Arguments
30# idAirStation: Unique air station identifier to be retrieved
31# startDate: Beginning of the period of time to be observed
32# endDate: End of the period of time to be observed
33retrieveAirStation(
34idAirStation: Int!,
35startDate: String!,
36endDate: String!
37): AirStation
38
39# A query to retrieve all AirStations in the network along with all the daily
40# measurements recorded
41retrieveAllAirStations: [AirStation]
42
43# A query to reatrieve information about the actual weather in Zaragoza
44retrieveWeather: Weather
45
46# A query to retrieve the PollenMeasure specified along with the measurements
47# recorded for the specified time interval (startDate - endDate)
48#
49# Arguments
50# startDate: Beginning of the period of time to be observed
51# endDate: End of the period of time to be observed
52# idPollenMeasure: Unique Water identifier to be retrieved
53retrievePollenMeasure(
54startDate: String,
55endDate: String,
56idPollenMeasure: String!
57): PollenMeasure
58
59# A query to retrieve all PollenMeasures in the network along with all the daily
60# measurements recorded
61retrieveAllPollenMeasures: [PollenMeasure]
62
63# A query to retrieve all feeds
64#
65# Arguments
66# page: Current page number
67# limit: Results per page (100 maximum)
68retrieveFeeds(page: Int!, limit: Int!): [Feed]
69
70# A query to retrieve the broadcast alerts by descendent time
71#
72# Arguments
73# limit: Number of alerts to be retrieved (100 maximum)
74retrieveAlerts(limit: Int!): [Alert]
75
76# A query to retrieve all users (Admin only)
77#
78# Arguments
79# page: Current page number
80# limit: Results per page (100 maximum)
81retrieveUsers(page: Int!, limit: Int!): [User]
82
83# A query to retrieve all settings (Admin only)
84retrieveSettings: [Settings]
85
86# A query to retrieve API metrics (Admin only)
87retrieveMetrics: Metrics
88
89}

link Required by

This element is not required by anyone