Open codingfabi opened 1 year ago
I think these endpoints are already implemented. These would be the queries:
query {
businesstrips {
timestamp
distance
co2e
transportationMode
}
}
query {
commutings {
timestamp
distance
co2e
transportationMode
}
}
query {
heatings {
timestamp
co2e
fuelType
}
}
query {
electricities {
timestamp
co2e
fuelType
}
}
The email of the creating user of the electricity and heating entries would be the email of the representative I guess.
We want to be able to show the users an interactive overview of the emission entries they have created (see #139).
To implement this we first need 4 query endpoints for each entry type that returns the entries created by the provided user. The endpoints should function in the following way:
Heating Overview
Should only be available for working group representatives. Should return all heating entries for the working group that the logged in user is a representative of. It should provide the following information:
Electricity Overview
Similar to heating, should only be available for working group representatives. Should return all electricity entries for the working group that the logged in user is a representative of. It should provide the following information:
Commuting Overview
Should return all commuting entries that the logged in user has created. It should provide the following information:
Business Trip
Should return all business trip entries that the logged in user has created. It should provide the following information: