Skip to content
Snippets Groups Projects
userman.http 764 B
Newer Older
„Sophia's avatar
„Sophia committed
### Login
POST http://localhost:8080/login HTTP/1.1
Content-Type: application/json

{
„Sophia's avatar
„Sophia committed
  "eMail": "bob.hase@outlook.com",
  "password": "09876543"
„Sophia's avatar
„Sophia committed
}

### Create a new user
POST http://localhost:8080/user HTTP/1.1
Content-Type: application/json

{
Victoria Badeke's avatar
Victoria Badeke committed
  "firstName": "Bruce",
  "lastName": "Wayne",
„Sophia's avatar
„Sophia committed
  "eMail": "bat",
Sarah Gloger's avatar
Sarah Gloger committed
  "password": "1234",
  "repeatPassword": "1234"
„Sophia's avatar
„Sophia committed
}

### Get all users
GET http://localhost:8080/users HTTP/1.1

### Get specific user
GET http://localhost:8080/user/1 HTTP/1.1

### Update specific user
PUT http://localhost:8080/user/1 HTTP/1.1
Content-Type: application/json

{
Victoria Badeke's avatar
Victoria Badeke committed
  "firstName": "Selina",
  "lastName": "Kyle"
„Sophia's avatar
„Sophia committed
}

### Delete specific user
DELETE  http://localhost:8080/user/1 HTTP/1.1

### Logout
POST http://localhost:8080/logout HTTP/1.1