Giter VIP home page Giter VIP logo

spring-boot-crud's Introduction

spring-boot-crud

Implementing the spring boot crud operations on student entity by using Postman Rest api

Rest API request for Postman Rest API:

  1. Save student: POST http://localhost:8080/student
  2. Get student by Id: GET http://localhost:8080/student/2
  3. Get All students: GET http://localhost:8080/student
  4. Update a student: PUT http://localhost:8080/student/5
  5. Delete a student: DELETE http://localhost:8080/student/6

image image image image image


Command Prompt and Chrome or any browser cURL syntax for REST API:

  1. Save student: curl -X POST -H "Content-Type: application/json" -d "{"name":"milind","email":"[email protected]"}" http://localhost:8080/student
  2. Get student by Id: curl http://localhost:8080/student/1
  3. Get All students: curl http://localhost:8080/student
  4. Update a student: curl -X PUT -H "Content-Type: application/json" -d "{"id":23,"name":"karan","email":"[email protected]"}" http://localhost:8080/student/23 -v
  5. Delete a student: curl -X DELETE http://localhost:8080/student/24

note:

  1. cURL is a networking tool used to transfer data between a server and the curl client using protocols like HTTP, FTP, TELNET, and SCP.
  2. cURL is a command-line tool that lets you transmit HTTP requests and receive responses from the command line or a shell script. It is available for Linux distributions, Mac OS X, and Windows.
  3. cURL command syntax is used to construct the command in order to use cURL to run REST web API call: https://<HOST_OR_IP>/<BASE_INSTALL_DIR>/rest/
  4. reference website for cURL application: https://developer.adobe.com/commerce/webapi/get-started/gs-curl/ image

spring-boot-crud's People

Contributors

millstack avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.