Skip to content

chatgut/userServiceAjCh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

userServiceAjCh

User Service This is a micro service built for Chatgut, a ITHS project. The user service is built with Springboot and using MySQL. Runs on port 8087 and the MySQL database runs on port 3306.

This user service allows you to:

  • Get all users
  • Get user by id
  • Update an user
  • Delete an user

How to get started:

Clone the repository:

https://github.com/chatgut/userServiceAjCh.git

Run the command:

docker compose up

The following endpoints are available:

Get requests:

Get all users

GET http://localhost:8087/users

Get user by id

GET http://localhost:8087/user/{id}

Post request:

Create a user based on JSON.

POST http://localhost:8087/user

Example JSON: { "userName": "JaneDoe", "imageUrl" : "https://th.bing.com/th/id/OIP.OYbzbbyzogwtriubL2pP0AHaHa?w=195&h=195&c=7&r=0&o=5&dpr=1.6&pid=1.7" }

Put requests:

Update a user by id based on JSON.

PUT http://localhost:8087/user/{id}

Example JSON: { "userName": "JohnDoe", "imageUrl" : "https://th.bing.com/th/id/OIP.OYbzbbyzogwtriubL2pP0AHaHa?w=195&h=195&c=7&r=0&o=5&dpr=1.6&pid=1.7" }

Delete request:

Delete a user by id.

Delete http://localhost:8087/user/{id}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published