naturerobots / HSOS-SEP-PlantMap-2022

PlantMap Digital Logbook: A tool to support sustainable micro farming :link: https://naturerobots.github.io/HSOS-SEP-PlantMap-2022/
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

feat/authorization #193

Closed pbrozi closed 2 years ago

pbrozi commented 2 years ago

Permission system and endpoints to create new companies and gardens.

jarkenau commented 2 years ago

@pbrozi There a still some merge conflicts that need to be handled, it makes more sense, if I review it after they have been fixed.

jarkenau commented 2 years ago

@pbrozi To my knowledge, we just use a name to create a new garden. But the following request is not working for me. I just get a 400 Bad Request. Can you look into that?

{
    "name": "Test-Garden-1"
}
jarkenau commented 2 years ago

@pbrozi when I try to get all beds of garden I receive a 403 Forbidden

Example: http://127.0.0.1:8000/companies/1/gardens/1/beds (with the initial data)

Same with the plants http://127.0.0.1:8000/companies/1/gardens/1/beds/1/plants

Never mind already fixed it :smile: