All Projects → rkaneko → Spring Boot Rest Api Example

rkaneko / Spring Boot Rest Api Example

Implement REST APIs using Spring Boot and Spring Session.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Spring Boot Rest Api Example

Springboot Registration Login Theperfectexample
Login & Signup tutorial for every website ,mixes a lot of microservices together with the latest spring framework api in combined with full security
Stars: ✭ 89 (+790%)
Mutual labels:  mysql, spring-boot, spring-session
Mycollab
An open source, free, high performance, stable and secure Java Application Business Platform of Project Management and Document
Stars: ✭ 1,063 (+10530%)
Mutual labels:  rest-api, mysql, spring-boot
Kotlin Spring Boot Jpa Rest Api Demo
Build a Restful API with Kotlin, Spring Boot, Mysql, Jpa and Hibernate
Stars: ✭ 67 (+570%)
Mutual labels:  rest-api, mysql, spring-boot
Hibernate Springboot
Collection of best practices for Java persistence performance in Spring Boot applications
Stars: ✭ 589 (+5790%)
Mutual labels:  mysql, spring-boot
Spring Lemon
Helper library for Spring Boot web applications
Stars: ✭ 529 (+5190%)
Mutual labels:  rest-api, spring-boot
Taroco
整合Nacos、Spring Cloud Alibaba,提供了一系列starter组件, 同时提供服务治理、服务监控、OAuth2权限认证,支持服务降级/熔断、服务权重,前端采用vue+elementUI+webpack,可以很好的解决转向Spring Cloud的一系列问题。
Stars: ✭ 545 (+5350%)
Mutual labels:  mysql, spring-boot
Cerberus
A demonstration of a completely stateless and RESTful token-based authorization system using JSON Web Tokens (JWT) and Spring Security.
Stars: ✭ 482 (+4720%)
Mutual labels:  rest-api, spring-boot
Retrofit Spring Boot Starter
A springboot starter for retrofit, and supports many functional feature enhancements, greatly simplifying development.(实现了Retrofit与spring-boot框架快速整合,并支持了诸多功能增强,极大简化开发)
Stars: ✭ 658 (+6480%)
Mutual labels:  rest-api, spring-boot
Boot React
A starter application with spring boot and react
Stars: ✭ 605 (+5950%)
Mutual labels:  spring-boot, spring-session
Music Website
🎧 Vue + SpringBoot + MyBatis 音乐网站
Stars: ✭ 673 (+6630%)
Mutual labels:  mysql, spring-boot
Sample Hazelcast Spring Datagrid
sample spring-boot applications integrated with hazelcast imdg, and providing hot cache with hazelcast and striim
Stars: ✭ 16 (+60%)
Mutual labels:  mysql, spring-boot
Bxbot
A simple Bitcoin trading bot written in Java.
Stars: ✭ 515 (+5050%)
Mutual labels:  rest-api, spring-boot
Shirojwt
API SpringBoot + Shiro + Java-Jwt + Redis(Jedis)
Stars: ✭ 503 (+4930%)
Mutual labels:  mysql, spring-boot
Books Recommendation
程序员进阶书籍(视频),持续更新(Programmer Books)
Stars: ✭ 558 (+5480%)
Mutual labels:  mysql, spring-boot
V8 Archive
Directus Database API — Wraps Custom SQL Databases with a REST/GraphQL API
Stars: ✭ 486 (+4760%)
Mutual labels:  rest-api, mysql
New Bee
开源社区 vue + springBoot - 前后分离微服务的最佳实践
Stars: ✭ 619 (+6090%)
Mutual labels:  mysql, spring-boot
Newbee Mall
🔥 🎉newbee-mall 项目(新蜂商城)是一套电商系统,包括 newbee-mall 商城系统及 newbee-mall-admin 商城后台管理系统,基于 Spring Boot 2.X 及相关技术栈开发。 前台商城系统包含首页门户、商品分类、新品上线、首页轮播、商品推荐、商品搜索、商品展示、购物车、订单结算、订单流程、个人订单管理、会员中心、帮助中心等模块。 后台管理系统包含数据面板、轮播图管理、商品管理、订单管理、会员管理、分类管理、设置等模块。
Stars: ✭ 8,319 (+83090%)
Mutual labels:  mysql, spring-boot
Go Book Store Api
Go Sample project to understand Mysql CRUD operation with best practises Includes logging, JWT, Swagger and Transactions
Stars: ✭ 18 (+80%)
Mutual labels:  rest-api, mysql
Nodejs Restapi Using Express Mysql
Nodejs Restful API for CRUD operation using MySQL
Stars: ✭ 25 (+150%)
Mutual labels:  rest-api, mysql
Favorites Web
云收藏 Spring Boot 2.X 开源项目
Stars: ✭ 4,485 (+44750%)
Mutual labels:  spring-boot, spring-session

Spring Boot REST APIs example

Topic

  • Authentication using a X-Auth-Token header for REST APIs
  • Spring Session backend jdbc (MySQL)

Usage

  • see the database configuration application-dev.properties

  • initialize database

$ mysql -uroot -e "CREATE DATABASE spring_rest;"

# initialize schemes
$ ./gradlew flywayClean flywayMigrate

# run an app
$ ./gradlew bootRun

client sample

$ cat credential.json
{
  "user": "user",
  "password": "password"
}

# login
$ curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" localhost:8080/api/auth -d @credential.json
{"user": "user", "token": "1ad4df3a-778d-40dd-bfb1-0cc7fcf1dc77", "authenticated": true}

# invoke a REST API
$ cat example-input.json
{
  "id": 1,
  "name": "rkaneko"
}

$ curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 1ad4df3a-778d-40dd-bfb1-0cc7fcf1dc77" localhost:8080/api/example -d @example-input.json
{"name": "rkaneko"}

# logout
$ curl -X DELETE -H "X-Auth-Token: 1ad4df3a-778d-40dd-bfb1-0cc7fcf1dc77" localhost:8080/api/auth
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].