All Projects → aeiz → student-api-graphql

aeiz / student-api-graphql

Licence: other
A GraphQL Wrapper for Ellucian's Banner Student REST API

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to student-api-graphql

graphql-directive-rest
GraphQL directive for easy integration with REST API
Stars: ✭ 39 (+105.26%)
Mutual labels:  graphql-server, graphql-js
Graphql To Mongodb
Allows for generic run-time generation of filter types for existing graphql types and parsing client requests to mongodb find queries
Stars: ✭ 261 (+1273.68%)
Mutual labels:  graphql-server, graphql-js
graphql-query-whitelist
GraphQL query whitelisting middleware
Stars: ✭ 17 (-10.53%)
Mutual labels:  graphql-server, graphql-js
ugql
🚀GraphQL.js over HTTP with uWebSockets.js
Stars: ✭ 27 (+42.11%)
Mutual labels:  graphql-server, graphql-js
graphql-express-nodejs
A Simple GraphQL Server implementation using Express and Node. See post here: https://t.co/Cm6GitZaBL
Stars: ✭ 24 (+26.32%)
Mutual labels:  graphql-server, graphql-js
graphql-spotify
GraphQL Schema And Resolvers For Spotify Web API
Stars: ✭ 55 (+189.47%)
Mutual labels:  graphql-server, graphql-js
relay-compiler-plus
Custom relay compiler which supports persisted queries
Stars: ✭ 68 (+257.89%)
Mutual labels:  graphql-server, graphql-js
Typegql
Create GraphQL schema with TypeScript classes.
Stars: ✭ 415 (+2084.21%)
Mutual labels:  graphql-server, graphql-js
Graphql Log
Add logging to your GraphQL resolvers so you know what's going on in your app.
Stars: ✭ 94 (+394.74%)
Mutual labels:  graphql-server, graphql-js
Graphql Cost Analysis
A Graphql query cost analyzer.
Stars: ✭ 527 (+2673.68%)
Mutual labels:  graphql-server, graphql-js
Graphql2rest
GraphQL to REST converter: automatically generate a RESTful API from your existing GraphQL API
Stars: ✭ 181 (+852.63%)
Mutual labels:  graphql-server, graphql-js
Hangzhou Graphql Party
杭州 GraphQLParty 往期记录(slide,照片,预告,视频等)
Stars: ✭ 142 (+647.37%)
Mutual labels:  graphql-server, graphql-js
Grial
A Node.js framework for creating GraphQL API servers easily and without a lot of boilerplate.
Stars: ✭ 194 (+921.05%)
Mutual labels:  graphql-server, graphql-js
server
Core server in the Alkemio platform, offering a GraphQL api for interacting with the logical domain model.
Stars: ✭ 20 (+5.26%)
Mutual labels:  graphql-server
Crazy-Banner
custom banner editor script for Termux
Stars: ✭ 60 (+215.79%)
Mutual labels:  banner
AKGADWrapper
A wrapper for a UIViewController with a GADBannerView at the bottom
Stars: ✭ 55 (+189.47%)
Mutual labels:  banner
showcase
A Full Stack Journey with Micro Services and Micro Front Ends. Using dapr, kubernetes, react module federation and web assembly,
Stars: ✭ 45 (+136.84%)
Mutual labels:  graphql-server
StackViewLayout
StackViewLayout is a slide card view
Stars: ✭ 24 (+26.32%)
Mutual labels:  banner
SimpleSlider
A simple slider allows you to easily use.
Stars: ✭ 78 (+310.53%)
Mutual labels:  banner
Banner
🔥🔥🔥Android Compose Banner!!! 安卓 Compose 版本的 Banner,欢迎大家体验!!!
Stars: ✭ 40 (+110.53%)
Mutual labels:  banner

student-api-graphql

A GraphQL Wrapper for Ellucian's Banner Student REST API

Build Status

This project's purpose is to aggregate all of the StudentAPI endpoints into a single GraphQL endpoint with intuitive types that are connected via the proper relationships. Using GraphQL to expose the StudentAPI endpoints offers many benefits, however considering it is just a wrapper, many of the limitations of the REST implementation remain.

Disclaimer

This project is a work in progress! This is also just a user-contributed project. I am not affiliated with Ellucian.

Install

git clone https://github.com/aeiz/student-api-graphql.git
cd student-api-graphql
npm install

Configuration

Edit config.js with your own settings.

Config Option Description Default
API_BASE_URL Point to your school's StudentAPI endpoint https://api.university.edu/StudentApi/api
SERVER_PROTOCOL GraphQL Server Protocol (http or https) http
SERVER_ADDRESS GraphQL Server Address localhost
SERVER_PORT GraphQL Server Port Number 3000
CRYPTO_ALGO Crypto Algorithm aes-256-ctr
JWT_SECRET JSON Web Token Secret shhhhh!
JWT_EXPIRE JSON Web Token Expiration Duration (in minutes) 60

Running the GraphQL Server

npm start

Alternatively, if you use want to use forever, there is a wrapper (server.js) to support running babel-node via forever:

forever start server.js

Once the server is started, browse to http://localhost:3000/graphql to use GraphiQL (A graphical interactive in-browser GraphQL IDE).

Authentication

This project relies on the authentication mechanism implemented in the StudentAPI (basic HTTP authentication) application. However, I've exposed a mutation (createAuthenticationToken) that enables authentication through JWTs (JSON Web Tokens). Either can be used.

If you want to use JWTs, here's an example of the GraphQL mutation you would use to retrieve the token:

mutation {
  createAuthenticationToken(username: "username", password:"password") {
    token
    expires
  }
}

Schema

The schema is generated programmatically, but you can view the schema language description by browsing to http://localhost:3000/schema when the server is running. The schema language description is also saved in schema.graphql.

A graph diagram of the schema definition generated by graphqlviz is available here.

You can also view the schema interactively using the GraphQL Voyager tool here.

Documentation of the schema generated via graphql-docs is available here.

Here's an example query:

query {
  personIdentification(bannerId: "bannerId") {
    person {
      names {
        fullName
        firstName
        middleName
        lastName
      }
      dateOfBirth
    }
  }
}

Debug

This project uses debug, which can be enabled by setting the DEBUG environment variable.

Windows:

set DEBUG=*,-babel,-express*

Linux/Mac:

DEBUG=*,-babel,-express*
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].