Newer
Older
POST http://localhost:8080/login HTTP/1.1
Content-Type: application/json
{
PUT http://localhost:8080/user HTTP/1.1
Content-Type: application/json
{
"firstName": "Peter",
"lastName": "Shawn",
"eMail": "ps@gmail.com",
"password": "???"
POST http://localhost:8080/login HTTP/1.1
Content-Type: application/json
{
"eMail": "sarah.gloger@outlook.com",
"password": "1234"
POST http://localhost:8080/user HTTP/1.1
Content-Type: application/json
{
"firstName": "Bruce",
"lastName": "Wayne",
"eMail": "bat@mail.de",
### Create a new user / Fehlerhafte Passwortwiederholung (Fehlerfall)
POST http://localhost:8080/user HTTP/1.1
Content-Type: application/json
"firstName": "Clemens",
"lastName": "Witzel",
"eMail": "clemens.witzel@gmail.com",
"password": "clemi",
"repeatPassword": "clemi"
### Create a new user / Fehlerfall, nicht alle Felder ausgefüllt
"firstName": "Leo",
"lastName": "Roth",
"password": "Leo",
"repeatPassword": "Leo"
### Update specific user (User 10 updaten) Admin
PUT http://localhost:8080/user/10 HTTP/1.1
"firstName": "Jörg",
"lastName": "Gloger",
"eMail": "jörg",
"adress": "Waldstraße 9, 35799 Merenberg",
### Update specific user (User 1 updaten, existiert nicht)
PUT http://localhost:8080/user/1 HTTP/1.1
### Delete specific user (User 7)
DELETE http://localhost:8080/user/7 HTTP/1.1
### Delete specific user (User 1)
DELETE http://localhost:8080/user/1 HTTP/1.1