Results 1 to 2 of 2

Thread: how consume rest get in grid with parameters

  1. #1

    Default how consume rest get in grid with parameters

    hi, i need consume in a grid , from webservice REST with method GET with parameteres ...example:

    PHP Code:
    proxy: {

            
    type'rest',
            
    url 'localhost:8080/rest/preconcurso/getListConcurso',
            
    method:"GET",
            
    pageParam:false,
            
    startParam:false,
            
    limitParam:false,
            
    noCache:false,
            
    extraParams:{
                
    id:1
            
    },
            
    reader: {
                
    type'json',
                
    root'root',
                
    //totalProperty:'10000'
                
            
    }
        } 
    result:
    localhost:8080/rest/preconcurso/getListConcurso?id=1

    but i need
    localhost:8080/rest/preconcurso/getListConcurso/1

    how do i do it???
    regards

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Have you seen this example?
    http://docs.sencha.com/extjs/4.2.1/#...l/restful.html

    As far as the extraParams, I'm not sure they can be made into a REST URL that way without an override.

Similar Threads

  1. Replies: 5
    Last Post: 7 Jan 2016, 6:56 AM
  2. Rest parameters problem
    By giladfit in forum Ext 5: Q&A
    Replies: 3
    Last Post: 31 Aug 2014, 2:37 AM
  3. [CLOSED] How I can correctly set the output parameters to consume the service?
    By BillySao in forum Sencha Architect 2.x: Bugs
    Replies: 10
    Last Post: 26 Sep 2013, 1:23 PM
  4. REST proxy URL: path instead of parameters
    By MaciejZabielski in forum Ext: Q&A
    Replies: 1
    Last Post: 25 Sep 2012, 12:01 PM
  5. REST PARAMETERS
    By khebrela in forum Ext: Q&A
    Replies: 2
    Last Post: 27 Sep 2011, 3:45 AM

Posting Permissions

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