Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

linux-china/rest-graphql-rsocket-demo

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST-GraphQL-RSocket combo demo

Spring Boot app with HTTP REST API, GraphQL and RSocket.

Features

  • HTTP REST API
GET http://localhost:8080/book/book-1
  • RSocket Request
### RSocket request
RSOCKET findBook
Host: ws://localhost:8080/rsocket
Content-Type: application/json

"book-1"
  • GraphQL over HTTP
### GraphQL over HTTP
GRAPHQL http://localhost:8080/graphql
Content-Type: application/graphql

query {
    findBook(id: "book-1") { id name }
}
  • RSocket over WebSocket
### GraphQL over WebSocket
GRAPHQLWS localhost:8080/graphql
Content-Type: application/graphql

query {
    findBook(id: "book-1") { id name }
}
  • GraphQL over RSocket
### GraphQL over RSocket
GRAPHQLRS graphql
Host: ws://localhost:8080/rsocket
Content-Type: application/graphql

query {
    findBook(id: "book-1") { id name }
}

References

About

One controller to combine HTTP REST, GraphQL and RSocket

Topics

Resources

License

Stars

Watchers

Forks

Morty Proxy This is a proxified and sanitized view of the page, visit original site.