Skip to content

Gokrazy API #229

Answered by damdo
BrunoTeixeira1996 asked this question in Q&A
Nov 2, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hey Bruno!
As far as I know (and @stapelberg can correct me here) there is not yet a full documentation on the gokrazy on-device API endpoints.

But you should be able to find most of them by using grep or a similar tool, and then read the relevant code.
Here is what I found with a trivial search:

$ rg "http.HandleFunc"
status.go
208:    http.HandleFunc("/status", func(w http.ResponseWriter, r *http.Request) {
277:    http.HandleFunc("/log", func(w http.ResponseWriter, r *http.Request) {
329:    http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {

supervise.go
698:    http.HandleFunc("/stop", stopstartHandler)
699:    http.HandleFunc("/restart", stopstartHandler)

update.go…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BrunoTeixeira1996
Comment options

@stapelberg
Comment options

Answer selected by BrunoTeixeira1996
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants