Closed dobro929 closed 2 years ago
@dobro929 Not sure if I got that correctly, both endpoints should just accept a name from the request? :thinking:
@jarkenau Yes, we will extend it later, but make sure you set the user as admin when we create a company.
I will probably implement it without requiring admin privileges for now, since @pbrozi is still working on the permission system.
After registration we start an onboarding process where the user can create a company and a garden. Therefore we need 2 more endpoints.
Here is a rough example:
Post: /companies
Post: /companies/{companyId}/gardens
Both endpoints should be authenticated.
They have the same body for now. We will add an optional address to both later on.
If the object was created successfully, we get the id as return.