Skip to content
Snippets Groups Projects
Commit 5c3cde5c authored by dominip89's avatar dominip89 Committed by borzechof99
Browse files

Bin nicht in der Lage dazu, nicht anzunehmen.

parent c9a87fbb
No related branches found
No related tags found
No related merge requests found
......@@ -139,4 +139,4 @@ This function already returns a fully valid response, so it can be directly retu
## Our Handling of REST Standards
In our usecase of the Admin Frontend, we either explicitly work on objects we chose from a list of given objects, or we create a new object all together. Because of these circumstances, it is not relevant for the PUT request to create new objects entirely, since we know that no object currently being edited doesn't exist yet. This means that the PUT implementations in `views.py` do not create new objects if called with an unknown primary key. Instead, they are similar to PATCH, but require all fields to be sent along instead of just a portion of them as PATCH does.
\ No newline at end of file
In our usecase of the Admin Frontend, we either explicitly work on objects we chose from a list of given objects, or we create a new object all together. Because of these circumstances, it is not relevant for the PUT request to create new objects entirely, since we know that all objects currently being edited exist. This means that the PUT implementations in `views.py` do not create new objects if called with an unknown primary key. Instead, they are similar to PATCH, but require all fields to be sent along instead of just a portion of them as PATCH does.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment