feat: adds spaceapi endpoint #57
No reviewers
Labels
No Label
art
big
blocked
bug
crash report
disputed
documentation
duplicate
feature request
good first issue
packaging
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Projects/nettsiden#57
Loading…
Reference in New Issue
No description provided.
Delete Branch "spaceapi"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A basic implementation of the https://spaceapi.io/ specification.
Tested working door sensor status. Added basic info about us, our website, git forge and wiki.
Co-authored with @sindos and @oysteikt.
We might need to do some tricks to make nginx shows this as
application/json
in the headers?Edit: Resolved
@ -0,0 +37,4 @@
"wiki": {
"type": "atom",
"url": "https://www.pvv.ntnu.no/w/api.php?hidebots=1&urlversion=1&action=feedrecentchanges&feedformat=atom"
}
Maybe add
calender
https://www.pvv.ntnu.no/hendelser/?That link is neither RSS nor ical, so that i don't think that's allowed per https://spaceapi.io/docs/. Ical support on the website would be amazing though, but surprisingly difficult to implement due to our terrible event system.
I added the /hendelser/-page to "links" for now.
No, I do think we could add it under calendar. The
type
beingrss
,atom
orical
are just being provided as examples. We could set"type": "html"
and still be compliant.@ -0,0 +42,4 @@
"projects": [
"https://github.com/Programvareverkstedet/",
"https://git.pvv.ntnu.no/"
]
Should we add links to other official medias, like youtube, facebook or linkedin using
links
?Not right there, under projects
But we could make a list of
The list you recommended seems good 👍
Thanks, that was what I meant. Not sure where else to comment
@ -0,0 +13,4 @@
"api": "0.13",
"api_compatibility": ["14"],
"space": "Programvareverkstedet",
"logo": "https://git.pvv.ntnu.no/Drift/pvv-nixos-config/raw/branch/main/assets/logo_blue_regular.png",
We could potentially use https://git.pvv.ntnu.no/assets/img/logo.svg instead
a20fae7595
toc76b424c94
c76b424c94
to5f7544588e
@ -0,0 +21,4 @@
"lat": 63.250
},
"contact": {
"irc": "//irc.pvv.ntnu.no/pvv",
Should this be
irc://irc.pvv.ntnu.no/pvv
maybe?ccf0b0511e
toc6df8e6ae3
I did validate all my changes at https://validator.spaceapi.io/ui/, by the way :)
@ -0,0 +30,4 @@
"issue_report_channels": ["email"],
"state": {
"open": <?php echo($doorEntry->open ? "true" : "false"); ?>,
"lastchange": <?php echo($doorEntry->time ? $doorEntry->time : 0); ?>
Maybe add a message, just in case anyone is wondering
@ -0,0 +22,4 @@
},
"contact": {
"irc": "irc://irc.pvv.ntnu.no/pvv",
"email": "pvv@pvv.ntnu.no",
Should we add
issue_mail
?6a8ad06e00
toa7a69ca2ac
a7a69ca2ac
to0542a10d03