-> In this project using technologies:
- Spring Boot : Framework(2.4.8) and Dependency management(1.0.11.RELEASE)
- MongoDB (5.0.0)
- Kotlin (1.4.32)
- JAVA (1.8)
- Gradle (6.9)
-> System
- MAC(iOS:10.14.6)
-> IDE
- Android Studio(4.1)
-> Packaging type: WAR
-> Configuration:
spring.data.mongodb.host=localhost
spring.data.mongodb.port=27017
spring.data.mongodb.database=students
server.port=8099
# Avoid White level error-->server.error.whitelabel.enabled=false
Spring boot project bacic CURD operation.
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run".
We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need minimal Spring configuration.
- Create stand-alone Spring applications
- Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
- Provide opinionated 'starter' dependencies to simplify your build configuration
- Automatically configure Spring and 3rd party libraries whenever possible
- Provide production-ready features such as metrics, health checks, and externalized configuration
- Absolutely no code generation and no requirement for XML configuration
MongoDB is a source-available cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas. MongoDB is developed by MongoDB Inc. and licensed under the Server Side Public License
- Kotlin
- JAVA
Kotlin is a modern but already mature programming language aimed to make developers happier. It’s concise, safe, interoperable with Java and other languages, and provides many ways to reuse code between multiple platforms for productive programming.
Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible.
Gradle is a build automation tool for multi-language software development. It controls the development process in the tasks of compilation and packaging to testing, deployment, and publishing. Supported languages include Java, C/C++, and JavaScript.
##Request and Response
BaseURL : http://localhost:8099
Request: http://localhost:8099/api/v1/create
Body: row with json
{ "name":"Dinesh Kumar", "gender":"Male", "dob":"25/01/1997", "country":"Nepal" }
Response:
{ "status": "OK", "message": "Request Successfully", "data": { "id": 10, "name": "Dinesh Kumar", "gender": "Male", "dob": "25/01/1997", "country": "Nepal" } }