Coder Social home page Coder Social logo

graphql's Introduction

The GraphQL Claustra

This is a basic implementation of a JSON API for Antville using GraphQL.

Installation

Add the graphql folder to your claustra directory and enable the claustra in your application’s app.properties file:

# Multiple claustra can be enabled comma-separated
claustra = graphql

Example Request

$ curl -if http://localhost:8080/helma/antville/claustra/graphql -d \ 
  "query=query {site(name: 'blog') {stories(max: 1) {title url created creator}}}"

HTTP/1.1 200 OK
Set-Cookie: HopSession=fe80:0:0:0:0:0:0:1l574os0if9s0; Path=/; HttpOnly
ETag: "vLwa7i/9IVurZgCo9HGfhw=="
Content-Length: 191
Content-Type: application/json; charset=UTF-8
Server: Jetty(8.1.22.v20160922)

{"site":{"stories":[{"creator":"p3k","created":"Sat Jan 16 2016 23:35:51 GMT+0100 (CET)","title":"Samstag, 16. Januar 2016","url":"http://localhost:8080/helma/antville/blog/stories/8638/"}]}}

Resources

graphql's People

Contributors

p3k avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.