Skip to content
Snippets Groups Projects
requests.http 902 B
Newer Older
Lukas Karsch's avatar
Lukas Karsch committed
GET http://localhost:8080/api/v1/plants
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJsdWthcy5rYXJzY2hAZ214LmRlIiwiaWF0IjoxNzAxMTY0ODMxLCJleHAiOjE3MDEyNTEyMzF9.c8NrtsWI0TyZPDG6wgoibEZnqPtGuXjvd9u6HQ3lOEU
Lukas Karsch's avatar
Lukas Karsch committed
### Create account
POST http://localhost:8080/api/v1/auth/register
Lukas Karsch's avatar
Lukas Karsch committed
content-type: application/json

{
  "email": "lukas.karsch@gmx.de",
  "firstname": "Lukas",
  "lastname": "Karsch",
  "password": "myPassword123"
Lukas Karsch's avatar
Lukas Karsch committed
}

### Authenticate
POST http://localhost:8080/api/v1/auth/authenticate
content-type: application/json

{
  "email": "lukas.karsch@gmx.de",
Lukas Karsch's avatar
Lukas Karsch committed
}

### SearchRequest
GET http://localhost:8080/api/v1/plants/search
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJsdWthcy5rYXJzY2hAZ214LmRlIiwiaWF0IjoxNzAxMjczMDI4LCJleHAiOjE3MDEzNTk0Mjh9.eOZvYQZDfcv1rUG8sQ3E7nDuZjgQffWR_jQVMQK9WLw
content-type: application/json

{
  "searchTerm": "Salat"
}