CON-In-A-Box / CIAB-Portal

The Core of Con-In-A-Box, but so much more! Convention Meetings, Registration and Volunteers management software package
Apache License 2.0
9 stars 5 forks source link

Implement POST Department API Endpoint #670

Closed rkaiser-dev closed 8 months ago

rkaiser-dev commented 8 months ago

This PR adds an endpoint to create Departments.

Need to determine the appropriate permission for the new endpoint. Previously there was no permission applied at all. In existing ConCom code, it was implied that if you had site.concom.permissions you would be able to create new departments without further checks. The new convention is api.[action].[resource] in most places, but it is not clear to me who would have the site.concom.permissions to appropriately grant this to users, so I chose to not add anything for now.

Perhaps site.concom.permissions would be most appropriate to start?