go-oluet-api

command module
v0.0.0-...-5008859 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 18 Imported by: 0

README

Oluet-api

API for finding information about you favorive alcoholic beverages!😎 (not only beer!)

cool beer picture

This is a rewrite of my oluet-api in go!

  • The poject was originally written in nodejs, but I decided to start learning glo and thought this was a good place to start exploring!

If you don't know graphql playground is a great place to try out some queries straight from you favorite browser. Give it a shot!

API documentation v1

Graphql endpoint

This endpoint is used by all of the queries. You should read the official graphql documentation on more information about the technology if it's new for you! Graphal docs

https://oluet-api.xyz/query
Graphql playground endpoint

If you are not yet familiar with graphql you are going to love the playground! There is no need to use tools like Postman with graphql since you can test your queries straight from the playground! You should also see the docs for playground to utilize it's full potential! Graphal playground docs

https://oluet-api.xyz/graphql
Sample queries

You can experiment with these at the playground!

List all drinks
query {
    drinks {
        nimi
        date
        productID
        hinta
        tyyppi
    }
}
List all beers
query {
    beers {
        nimi
        date
        olutTyyppi
        hinta
        tyyppi
    }
}
Search for all "karhu" beers
query {
    beersearch(term: "karhu") {
        nimi
        date
        valmistaja
        huomautus
        olutTyyppi
        hinta
        tyyppi
    }
}
Search for all "karhu" beers
query {
    pricehistory(productID:"792176") {
        hinta
        date 
    }
 }

TODO

  1. maybe make a separate type for olut

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
gql

Jump to

Keyboard shortcuts

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