- Install Git (https://git-scm.com/download/)
- Install Java 8 (https://adoptopenjdk.net/index.html?variant=openjdk8&jvmVariant=hotspot)
- new Test line
$ git clone https://github.com/crkarthik11/lably.git
$ cd lably
$ ./gradlew
$ ./gradlew bootRun
$ curl -v localhost:8080
Swagger URL: http://localhost:8080/swagger-ui.html
Swagger URL: http://localhost:8080/database
Rest controller
- Get
- Path Param
- Request Param
- Post
- Request Body
https://docs.spring.io/spring-data/jpa/docs/current/reference/html/
- Inbuilt CRUD queries
- Automatic Custom Queries
- Manual Custom Queries
- String name
- String address
- String phone
- String pinCode
- String name
- String description
- Double price
- String name
- String username
- String password
- String name
- String address
- String age
- String gender
- Add Admin (POST) ("/addAdmin")
- List of admins - Must return 5 admin objects (GET) ("/getAdmins")
- API to return single admin by username (GET)
- Add Lab (Post)
- List of labs - Must return 5 labs in list (GET)
- API to return single lab by name (GET)
- Add Test (Post)
- List of Test - Must return 5 Test in list (GET)
- API to return single Test by name (GET)
- Add Customer (Post)
- List of Customer - Must return 5 Customer in list (GET)
- API to return single Customer by username (GET)
- How to create a new project : https://start.spring.io/
- Spring Docs : https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/
SELECT * from TBL_ADMIN WHERE department = 'CSE' SELECT admin FROM Admin admin WHERE admin.department = :department