Improved API view
This commit is contained in:
parent
f05be0f71c
commit
8485e99172
@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"net/http"
|
||||
"reflect"
|
||||
@ -24,7 +23,6 @@ func init() {
|
||||
// Bind name for the closure
|
||||
typeName := name
|
||||
|
||||
fmt.Println(typeName)
|
||||
rootQueryFields[typeName] = &graphql.Field{
|
||||
Args: graphql.FieldConfigArgument{
|
||||
"id": &graphql.ArgumentConfig{
|
||||
|
@ -1,7 +1,17 @@
|
||||
component API(types []string)
|
||||
.api-docs-page
|
||||
h1 API
|
||||
|
||||
h2 Endpoints
|
||||
ul
|
||||
li
|
||||
strong REST:
|
||||
span https://notify.moe/api
|
||||
li
|
||||
strong GraphQL:
|
||||
span https://notify.moe/graphql
|
||||
|
||||
h2 Types
|
||||
table
|
||||
//- thead
|
||||
//- tr
|
||||
|
Loading…
Reference in New Issue
Block a user