/[...]/Matcha/env: ./start [matcha_*]
/[...]/Matcha/env: ./rebuild [matcha_*]
- matcha_db
- matcha_backend
- matcha_fronted
ex: curl --location --request GET 'localhost:8080/api/[YOUR_ROUTE]'
- GET user/ - fetches all users in database
- POST user/ - creates a new user in the database
requires a user as payload:
{
login: String
password: String
email: String
name: String
surname: String
} - GET user/:login - fetches one user from by login
To be continued ...
PS: For now, some usefull curl cmd:
-
create user: curl --location --request POST 'localhost:8080/api/user'
--header 'Content-Type: application/json'
--data-raw '{"name":"userName","email":"user@mail.com","dateOfBirth":"1995-09-04","surname":"userSurname","login":"userLogin", "password":"azerty"}' -
get all verified users: curl --location --request GET "localhost:8080/api/user/verified"
-
update a user: curl --location --request PUT "http://localhost:8080/api/user/userLogin"
--header 'Content-Type: application/json'
--data-raw '{"user":{"name":"newUserName", "bio":"My awwwwwesooooooome new bio","gender":"nb","prefMale":true,"prefFemale":true,"prefEnby":false,"imgA":"","imgB":"","imgC":"","imgD":"","imgE":"","tags":[{"bwid":"pizza"},{"bwid":"pasta"}]}}' -
delete a user: curl --location --request DELETE 'localhost:8080/api/user/userLogin'
-
login: curl --location --request POST 'localhost:8080/api/user/login'
--header 'Content-Type: application/json'
--data-raw '{"login":"userLogin", "password":"azerty"}'