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

{
Victoria Badeke's avatar
Victoria Badeke committed
  "eMail": "paula@gmx.de",
  "password": "123"
}

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

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

{
  "givenName": "Laurin",
  "familyName": "Etzel"
„Sophia's avatar
„Sophia committed
}

Victoria Badeke's avatar
Victoria Badeke committed
### Read User
GET http://localhost:8080/user/21 HTTP/1.1

### Read User
GET http://localhost:8080/user/500 HTTP/1.1


„Sophia's avatar
„Sophia committed
### Login
POST http://localhost:8080/login HTTP/1.1
Content-Type: application/json

{
  "eMail": "lilith@fa.gmx.de",
  "password": "passwort"
„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@mail.de",
Sarah Gloger's avatar
Sarah Gloger committed
  "password": "1234",
  "repeatPassword": "1234"
„Sophia's avatar
„Sophia committed
}

„Sophia's avatar
„Sophia committed
### Create a new user
POST http://localhost:8080/user HTTP/1.1
Content-Type: application/json
„Sophia's avatar
„Sophia committed

„Sophia's avatar
„Sophia committed
{
  "firstName": "Bruce",
  "lastName": "Wayne",
„Sophia's avatar
„Sophia committed
  "eMail": "bat@mail.de",
„Sophia's avatar
„Sophia committed
  "password": "1234",
  "repeatPassword": "123456"
}
„Sophia's avatar
„Sophia committed

„Sophia's avatar
„Sophia committed
### Create a new user
POST http://localhost:8080/user HTTP/1.1
„Sophia's avatar
„Sophia committed
Content-Type: application/json

{
„Sophia's avatar
„Sophia committed
"firstName": "Bruce",
"lastName": "Wayne",
"password": "1234",
"repeatPassword": "1234"
„Sophia's avatar
„Sophia committed
}

### Logout
POST http://localhost:8080/logout HTTP/1.1
„Sophia's avatar
„Sophia committed

### Logout
Victoria Badeke's avatar
Victoria Badeke committed
POST http://localhost:8080/logout HTTP/1.1



„Sophia's avatar
„Sophia committed

„Sophia's avatar
„Sophia committed
### Update specific user
PUT http://localhost:8080/user/48 HTTP/1.1
Content-Type: application/json

{
  "firstName": "Selina",
  "lastName": "Kyle"
}


„Sophia's avatar
„Sophia committed

Luisa Wenz's avatar
Luisa Wenz committed