question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pass data to before_patch and before_post

See original GitHub issue

Currently, received data (json_data from http://flask-restless.readthedocs.io/en/stable/customizing.html#request-preprocessors-and-postprocessors) is not passed to before_patch and before_post, thus modifying the incoming data is not a possibility. flask-restlless currently supports this,

def post_preprocessor(data=None, **kw):
    """Accepts a single argument, `data`, which is the dictionary of
    fields to set on the new instance of the model.

    """
    pass

Ref: http://flask-restless.readthedocs.io/en/stable/customizing.html#request-preprocessors-and-postprocessors

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
akira-devcommented, Jun 26, 2017

New release of Flask-REST-JSONAPI is available on Pypi 0.12.6

0reactions
shubham-padiacommented, Jun 26, 2017

@akira-dev Thank You 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

OCAPI Hooks
Request Method Request Path Extension Points POST /order_search dw.ocapi.shop.order_search.modifyPOSTResponse GET /stores/(,...,) dw.ocapi.shop.store.modifyGETResponse
Read more >
Pass data between two Content Page; - Stack Overflow
How to transfer variables between two Content Page. I try this way: I have two content page, MainPage and SettingsPage.
Read more >
restdb.io Cheat Sheet (v0.2)
Output from query /rest/people?totals=true returns the object {data: [ … ], ... beforePOST(req, res) ... passing parameters along and finally.
Read more >
Entity Listeners and Subscribers - typeorm - GitBook
* Indicates that this subscriber only listen to Post events. ... * Called before post insertion. ... * Called after entity is loaded....
Read more >
Data.DB.TDataSet.BeforePost - RAD Studio API Documentation
Occurs before an application posts changes for the active record to the database or change log. Write a BeforePost event handler to take...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found