From 8485e99172946d4f77f8f9780f2e47f1100a1050 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 8 Apr 2018 18:10:39 +0200 Subject: [PATCH] Improved API view --- graphql.go | 2 -- pages/apiview/api.pixy | 10 ++++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/graphql.go b/graphql.go index fa4c206f..79251a16 100644 --- a/graphql.go +++ b/graphql.go @@ -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{ diff --git a/pages/apiview/api.pixy b/pages/apiview/api.pixy index 44f2af54..50bcf447 100644 --- a/pages/apiview/api.pixy +++ b/pages/apiview/api.pixy @@ -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