java-tutorials/spring-boot-modules/spring-boot-libraries
anuragkumawat 3a3021fe53 JAVA-14681 Update spring-boot-libraries module under spring-boot-modules to remove usage of deprecated WebSecurityConfigurerAdapter (#12725)
* JAVA-14681 Update spring-boot-libraries module under spring-boot-modules to remove usage of deprecated WebSecurityConfigurerAdapter

* JAVA-14681 Correct Java Formatting
2022-09-18 10:19:53 +05:30
..
src JAVA-14681 Update spring-boot-libraries module under spring-boot-modules to remove usage of deprecated WebSecurityConfigurerAdapter (#12725) 2022-09-18 10:19:53 +05:30
.gitignore BAEL-20869 Move remaining spring boot modules 2020-02-02 20:44:54 +01:00
README.md Updated README.md 2022-06-29 18:51:58 +05:00
mvnw BAEL-20869 Move remaining spring boot modules 2020-02-02 20:44:54 +01:00
mvnw.cmd BAEL-20869 Move remaining spring boot modules 2020-02-02 20:44:54 +01:00
pom.xml JAVA-9486: Use guava.version defined in the parent pom 2022-01-18 09:42:21 +01:00

README.md

Spring Boot Libraries

This module contains articles about various Spring Boot libraries

The Course

The "REST With Spring" Classes: http://bit.ly/restwithspring

Relevant Articles:

GraphQL sample queries

Query

curl \
--request POST 'localhost:8081/graphql' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"query {\n    recentPosts(count: 2, offset: 0) {\n        id\n        title\n        author {\n            id\n            posts {\n                id\n            }\n        }\n    }\n}"}'

Mutation

curl \
--request POST 'localhost:8081/graphql' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"mutation {\n    writePost(title: \"New Title\", author: \"Author2\", text: \"New Text\") {\n        id\n        category\n        author {\n            id\n            name\n        }\n    }\n}"}'