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

{
Sarah Gloger's avatar
Sarah Gloger committed
  "eMail": "jj@gmail.com",
  "password": "???"
„Sophia's avatar
„Sophia committed
}

Sarah Gloger's avatar
Sarah Gloger committed
### Update user Data in Profile
Victoria Badeke's avatar
Victoria Badeke committed
PUT http://localhost:8080/user HTTP/1.1
Content-Type: application/json

{
Sarah Gloger's avatar
Sarah Gloger committed
  "firstName": "Peter",
  "lastName": "Shawn",
  "eMail": "ps@gmail.com",
  "password": "???"
„Sophia's avatar
„Sophia committed
}

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

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


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

{
Sarah Gloger's avatar
Sarah Gloger committed
  "eMail": "sarah.gloger@outlook.com",
  "password": "1234"
„Sophia's avatar
„Sophia committed
}

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

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

Sarah Gloger's avatar
Sarah Gloger committed
### Create a new user / Fehlerhafte Passwortwiederholung (Fehlerfall)
„Sophia's avatar
„Sophia committed
POST http://localhost:8080/user HTTP/1.1
Content-Type: application/json
„Sophia's avatar
„Sophia committed

„Sophia's avatar
„Sophia committed
{
Sarah Gloger's avatar
Sarah Gloger committed
  "firstName": "Clemens",
  "lastName": "Witzel",
  "eMail": "clemens.witzel@gmail.com",
  "password": "clemi",
  "repeatPassword": "clemi"
„Sophia's avatar
„Sophia committed
}
„Sophia's avatar
„Sophia committed

Sarah Gloger's avatar
Sarah Gloger committed
### Create a new user / Fehlerfall, nicht alle Felder ausgefüllt
„Sophia's avatar
„Sophia committed
POST http://localhost:8080/user HTTP/1.1
„Sophia's avatar
„Sophia committed
Content-Type: application/json

{
Sarah Gloger's avatar
Sarah Gloger committed
"firstName": "Leo",
"lastName": "Roth",
"password": "Leo",
"repeatPassword": "Leo"
„Sophia's avatar
„Sophia committed
}

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

Sarah Gloger's avatar
Sarah Gloger committed

### Delete User (eigenes Profil löschen)
Lilith Faust's avatar
Lilith Faust committed
DELETE  http://localhost:8080/user HTTP/1.1
„Sophia's avatar
„Sophia committed

Victoria Badeke's avatar
Victoria Badeke committed

Sarah Gloger's avatar
Sarah Gloger committed
####Read Users Admin Liste
Victoria Badeke's avatar
Victoria Badeke committed
GET http://localhost:8080/users HTTP/1.1

Sarah Gloger's avatar
Sarah Gloger committed
### Update specific user (User 10 updaten) Admin
PUT http://localhost:8080/user/10 HTTP/1.1
„Sophia's avatar
„Sophia committed
Content-Type: application/json

{
Sarah Gloger's avatar
Sarah Gloger committed
  "firstName": "Jörg",
  "lastName": "Gloger",
  "eMail": "jörg",
  "adress": "Waldstraße 9, 35799 Merenberg",
Lilith Faust's avatar
Lilith Faust committed
  "role": "user"
„Sophia's avatar
„Sophia committed
}


Sarah Gloger's avatar
Sarah Gloger committed
### Update specific user (User 1 updaten, existiert nicht)
PUT http://localhost:8080/user/1 HTTP/1.1
Lilith Faust's avatar
Lilith Faust committed
Content-Type: application/json
„Sophia's avatar
„Sophia committed

Lilith Faust's avatar
Lilith Faust committed
{
Sarah Gloger's avatar
Sarah Gloger committed
  "givenName": "Alina",
  "familyName": "Hoffmann"
Lilith Faust's avatar
Lilith Faust committed
}
Luisa Wenz's avatar
Luisa Wenz committed

Sarah Gloger's avatar
Sarah Gloger committed
### Delete specific user (User 7)
DELETE  http://localhost:8080/user/7 HTTP/1.1
Victoria Badeke's avatar
Victoria Badeke committed


Sarah Gloger's avatar
Sarah Gloger committed
### Delete specific user (User 1)
DELETE  http://localhost:8080/user/1 HTTP/1.1