Skip to content

Samer-Abdulaziz/dataservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This quick example using Spring boot, JPA, Hibernat and MySql to have rest service CURD operations

what you will need to get this app working

command to get the code locally

git clone https://github.com/sameerasaad/dataservice.git

Create Database using workbanch

create database notes_app;

if you want to create database user and password use the below commands after you login to mySQL

mysql> create user 'springuser'@'%' identified by 'ThePassword'; -- Creates the user
mysql> grant all on db_example.* to 'springuser'@'%'; -- Gives all the privileges to the new user on the newly created database

How to run the App

cd DataService

run this command :

mvn spring-boot:run


alt text

CURD Operations and APIs

  • GET /api/notes
    alt text
  • POST /api/notes
    alt text
  • GET /api/notes/{noteId}
    alt text
  • PUT /api/notes/{noteId}
    alt text
  • DELETE /api/notes/{noteId}
    alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages