Skip to content

PankajPal6732/java7sampleProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

used on maven setup 3.9.9

Commands to run local::

mvn clean install java -jar jarname

springboot-java7-style project

✅ 1. Create a User bash CopyEdit curl -X POST http://localhost:8080/users
-H "Content-Type: application/json"
-d '{"name":"Rama","email":"rama@example.com"}'

✅ 2. Get All Users bash CopyEdit curl http://localhost:8080/users

✅ 3. Get User by ID bash CopyEdit curl http://localhost:8080/users/1

✅ 4. Update User by ID bash CopyEdit curl -X PUT http://localhost:8080/users/1
-H "Content-Type: application/json"
-d '{"name":"Updated Rama","email":"updated@example.com"}'

✅ 5. Delete User by ID bash CopyEdit curl -X DELETE http://localhost:8080/users/1

✅ 6. Search Users by Name (Optional Filter Logic if Added) bash CopyEdit curl http://localhost:8080/users/search?keyword=Rama (Assumes you add a custom filtering endpoint later, optional)

File Operations to create , read and delete a file

Create a file

curl -X POST "http://localhost:8080/file/create?filename=test.txt&content=HelloWorld"

Read the file

curl "http://localhost:8080/file/read?filename=test.txt"

Delete the file

curl -X DELETE "http://localhost:8080/file/delete?filename=test.txt"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages