@@ -533,209 +533,6 @@ func init() {
533533 },
534534 })
535535
536- // Notes endpoints
537- Endpoints = append (Endpoints , & Endpoint {
538- Name : "List Notes" ,
539- Path : "/notes" ,
540- Method : "GET" ,
541- Description : "Get all notes for authenticated user" ,
542- Response : []* Value {
543- {
544- Type : "JSON" ,
545- Params : []* Param {
546- {
547- Name : "notes" ,
548- Value : "array" ,
549- Description : "Array of note objects with id, title, content, tags, created_at, updated_at" ,
550- },
551- },
552- },
553- },
554- })
555-
556- Endpoints = append (Endpoints , & Endpoint {
557- Name : "Get Note" ,
558- Path : "/notes/{id}" ,
559- Method : "GET" ,
560- Description : "Get a single note by ID" ,
561- Response : []* Value {
562- {
563- Type : "JSON" ,
564- Params : []* Param {
565- {
566- Name : "id" ,
567- Value : "string" ,
568- Description : "Note ID" ,
569- },
570- {
571- Name : "title" ,
572- Value : "string" ,
573- Description : "Note title" ,
574- },
575- {
576- Name : "content" ,
577- Value : "string" ,
578- Description : "Note content" ,
579- },
580- {
581- Name : "tags" ,
582- Value : "array" ,
583- Description : "Note tags" ,
584- },
585- },
586- },
587- },
588- })
589-
590- Endpoints = append (Endpoints , & Endpoint {
591- Name : "Create Note" ,
592- Path : "/notes/new" ,
593- Method : "POST" ,
594- Description : "Create a new note" ,
595- Params : []* Param {
596- {
597- Name : "title" ,
598- Value : "string" ,
599- Description : "Note title (optional)" ,
600- },
601- {
602- Name : "content" ,
603- Value : "string" ,
604- Description : "Note content (required)" ,
605- },
606- {
607- Name : "tags" ,
608- Value : "string" ,
609- Description : "Comma-separated tags" ,
610- },
611- },
612- Response : []* Value {
613- {
614- Type : "JSON" ,
615- Params : []* Param {
616- {
617- Name : "success" ,
618- Value : "boolean" ,
619- Description : "Whether the note was created" ,
620- },
621- {
622- Name : "id" ,
623- Value : "string" ,
624- Description : "The created note ID" ,
625- },
626- },
627- },
628- },
629- })
630-
631- Endpoints = append (Endpoints , & Endpoint {
632- Name : "Update Note" ,
633- Path : "/notes/{id}" ,
634- Method : "POST" ,
635- Description : "Update an existing note" ,
636- Params : []* Param {
637- {
638- Name : "title" ,
639- Value : "string" ,
640- Description : "Note title" ,
641- },
642- {
643- Name : "content" ,
644- Value : "string" ,
645- Description : "Note content (required)" ,
646- },
647- {
648- Name : "tags" ,
649- Value : "string" ,
650- Description : "Comma-separated tags" ,
651- },
652- {
653- Name : "pinned" ,
654- Value : "boolean" ,
655- Description : "Pin the note" ,
656- },
657- {
658- Name : "color" ,
659- Value : "string" ,
660- Description : "Note color (yellow, green, blue, pink, purple, gray)" ,
661- },
662- },
663- Response : []* Value {
664- {
665- Type : "JSON" ,
666- Params : []* Param {
667- {
668- Name : "success" ,
669- Value : "boolean" ,
670- Description : "Whether the note was updated" ,
671- },
672- {
673- Name : "id" ,
674- Value : "string" ,
675- Description : "The updated note ID" ,
676- },
677- },
678- },
679- },
680- })
681-
682- Endpoints = append (Endpoints , & Endpoint {
683- Name : "Delete Note" ,
684- Path : "/notes/{id}/delete" ,
685- Method : "GET" ,
686- Description : "Delete a note (redirects to /notes)" ,
687- Response : []* Value {
688- {
689- Type : "Redirect" ,
690- Params : []* Param {
691- {
692- Name : "location" ,
693- Value : "string" ,
694- Description : "Redirects to /notes" ,
695- },
696- },
697- },
698- },
699- })
700-
701- Endpoints = append (Endpoints , & Endpoint {
702- Name : "Archive Note" ,
703- Path : "/notes/{id}/archive" ,
704- Method : "GET" ,
705- Description : "Toggle note archive status" ,
706- Response : []* Value {
707- {
708- Type : "Redirect" ,
709- Params : []* Param {
710- {
711- Name : "location" ,
712- Value : "string" ,
713- Description : "Redirects back to note or /notes" ,
714- },
715- },
716- },
717- },
718- })
719-
720- Endpoints = append (Endpoints , & Endpoint {
721- Name : "Pin Note" ,
722- Path : "/notes/{id}/pin" ,
723- Method : "GET" ,
724- Description : "Toggle note pinned status" ,
725- Response : []* Value {
726- {
727- Type : "Redirect" ,
728- Params : []* Param {
729- {
730- Name : "location" ,
731- Value : "string" ,
732- Description : "Redirects back to note or /notes" ,
733- },
734- },
735- },
736- },
737- })
738-
739536 // Flag endpoint
740537 Endpoints = append (Endpoints , & Endpoint {
741538 Name : "Flag Content" ,
0 commit comments