graphql_api_go

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2016 License: MIT Imports: 6 Imported by: 0

README

GraphQL API Go

A GraphQL API server written in Go.

Features

  • Todo CRUD
  • User CRUD
  • Basic Authorization

Requirements

  • Go 1.6+
  • MySQL 5.6+ * * Previous versions may still work but never tested

Quick start

  1. Install: $ go install
  2. Setup new MySQL database
  3. Save database configuration in config/database.json
  4. Migrate database: $ graphql_api_go migrate
  5. Run the server $ graphql_api_go server

Sending Query

Queries are sent as request payload of HTTP POST command with HTTP Basic Authentication header. Example using curl:

$ curl -X POST -u [email protected]:password01 -d "{
    __schema {
      types {
        name
        kind
      }
    }
  }" "http://localhost:8080/graphql"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL