More work on the API. Primarely defining jsonapi types
This commit is contained in:
parent
4f4d05a335
commit
0ed50aca60
13 changed files with 165 additions and 48 deletions
|
@ -1,9 +1,15 @@
|
|||
package server
|
||||
|
||||
import "net/http"
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// Notes
|
||||
func linstromGetNote(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromGetNote(w http.ResponseWriter, r *http.Request) {
|
||||
store := StorageFromRequest(r)
|
||||
noteId := NoteIdFromRequest(r)
|
||||
note, err := store.FindNoteById(noteId)
|
||||
}
|
||||
func linstromUpdateNote(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromNewNote(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromDeleteNote(w http.ResponseWriter, r *http.Request) {}
|
||||
|
@ -25,5 +31,15 @@ func linstromAddQuote(w http.ResponseWriter, r *http.Request) {}
|
|||
|
||||
// No delete quote since quotes are their own notes with an extra attribute
|
||||
|
||||
// Pinning
|
||||
func linstromPinNote(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromUnpinNote(w http.ResponseWriter, r *http.Request) {}
|
||||
|
||||
// Reporting
|
||||
func linstromReportNote(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromRetractReportNote(w http.ResponseWriter, r *http.Request) {}
|
||||
|
||||
// Admin tools
|
||||
// TODO: Figure out more admin tools for managing notes
|
||||
// Delete can be done via normal note delete, common permission check
|
||||
func linstromForceCWNote(w http.ResponseWriter, r *http.Request) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue