-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API:s for the new front-end #792
base: development
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reasons for these changes? Committed by mistake?
…tions and the team descriptions are open to the public. If a new team is created or edited, it will most likely be through the admin console, meaning that we probably shouldn't have writeable APIs for this. Ludwig I'm writing this in a commit to show you that we need a ticketing system. In most ticketing systems you can set up an automation where referencing the ticket number will associate your commit to that ticket.
Hi Ankur, why is the commit message so long? Feel free to put any comments in the pull request, right here. The only things that should be writable in these API:s are things that are editable on apply.utn.se and relating to one's own member profile details. I believe that would be one's own involvement applications, event applications, and event tickets. You should alao only be able to view your own member details, applications, and event tickets. Is that clear enough? |
Regarding the ticketing system, our team and level of production is small enough for us not to need one. The scale is perfectly manageable without any system that would leas to too much abstraction and cost us time that could be spent better. |
Adding the Role thing only for posterity's sake, everything works through position and not role according to the way that the data model is designed. |
The read is only for applicants on their own stuff. The write I will create separately in a moment. Also covers user profile |
…ks on own application
Now, applications are only CRUD if you are the applicant |
But test it in a test environment a couple of times |
Here are some things that come to mind when looking at the committed code. Teams
Roles
Positions
Application
Events
Costs
Event Tickets
Event Applications
Participants
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use the same path with varying HTTP methods? GET
for reading, POST
for creating, PATCH
for updating the passed properties (set to null if properties should be set undefined), and DELETE
for deleting?
PATCH and DELETE are too different from the other two, needed to differentiate permissions, serializers and querysets for them. So they are separate. |
Description of the Change
Added APIs for several models
Feedback needed
Permission for each API and which REST calls they should have (GET, POST, PATCH, PUT, DELETE) along with permissions for each REST call.