Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonallux/social-network-graphql-example
https://github.com/sonallux/social-network-graphql-example
graphql java spring spring-boot spring-graphql webflux
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sonallux/social-network-graphql-example
- Owner: sonallux
- License: mit
- Created: 2022-06-10T04:58:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-22T08:32:45.000Z (over 2 years ago)
- Last Synced: 2024-10-05T23:21:11.934Z (3 months ago)
- Topics: graphql, java, spring, spring-boot, spring-graphql, webflux
- Language: Java
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Social network - Spring GraphQL example
## Documentation
- [spring-graphql](https://docs.spring.io/spring-graphql/docs/1.0.0/reference/html/)
- [spring-boot-graphql-starter](https://docs.spring.io/spring-boot/docs/2.7.0/reference/html/web.html#web.graphql)## Setup
After starting the Spring Boot Application a [GraphiQL](https://github.com/graphql/graphiql/tree/main/packages/graphiql#readme) instance is available at http://localhost:8080/graphiql: The GraphQL schema can be obtained from http://localhost:8080/graphql/schema.
## Authentication
Some queries require basic authentication. The password is equal to the username.
To use authentication in GraphiQL add the following JSON under "request header":
- Jonas: `{"Authorization": "Basic NDIwMTo0MjAx"}`
- Max Mustermann: `{"Authorization": "Basic NDIwMjo0MjAy"}`
- Erika Musterfrau: `{"Authorization": "Basic NDIwMzo0MjAz"}`
- Hugo: `{"Authorization": "Basic NDIwNDo0MjA0"}`