Results 1 to 2 of 2

Thread: Where is "action" in CRUD request?

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    249
    Answers
    2
    Vote Rating
    3
      0  

    Default Where is "action" in CRUD request?

    There is no "action" in CRUD request in Ext 4. How can I distinguish between e.g. create and update if I use one handler for all CRUD operations.
    Code:
        proxy: {
            type: "ajax",
            api: {
                create: "SmthHandler.aspx?action=create",
                read: "SmthHandler.aspx?action=read",
                update: "SmthHandler.aspx?action=update",
                destroy: "SmthHandler.aspx?action=destroy"
            },
    ?
    Does better way exist?

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Answers
    102
    Vote Rating
    87
      0  

    Default

    I would suggest using a REST API instead of a single handler.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •