-
-
Notifications
You must be signed in to change notification settings - Fork 25
[API] Endpoint for creating a new resource #19
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
Comments
Turns out, this is already taken care of since the endpoint was also set up to accept POST. You can create a resource by POST-ing to As currently set up, you will need a valid JWT token in your header in this format: "Authorization: Bearer <your_token>" |
I'll leave this open for now..just in case I am missing something. |
DRF does provide an automatic |
Do you mean that you want to make it accept PATCH requests instead of PUT? I'm tempted to close this issue since I've tested that POST requests will work. :) |
Unless we have our hearts set on a specific |
Sounds good! Closing. |
We need a
resources/create
endpoint that accepts the following JSON body:POSTing to
resources/create
should result in new resource being created.The text was updated successfully, but these errors were encountered: