Code Monkey home page Code Monkey logo

Comments (3)

koltyakov avatar koltyakov commented on May 24, 2024

Hey @hammadfauz,

Could you please provide some code samples which fail for you with proxy but work on SP pages?
We use proxy in many dev scenarios with almost any combination of requests and never experience any issues with items update.

I would like to add this to integration tests too.

from sp-rest-proxy.

hammadfauz avatar hammadfauz commented on May 24, 2024

@koltyakov I think you guys are using SOAP endpoints more. I prefer to communicate using json, so I use REST.

My scenario is SharePoint 2010 REST services (mostly via http://server/site/_vti_bin/ListData.svc )

For the above issue, in order to update a list item, I needed to send request as below:

fetch('_vti_bin/ListData.svc/ListName(1)',{
  credentials : 'include',
  method : 'post',
  headers : {
    'Accept' : 'application/json;odata=verbose',
    'X-HTTP-Method' : 'MERGE',
    'If-Match' : '*',
    'Content-Type' : 'application/json'
  },
  body : JSON.stringify({ changed_property : 'changed_value' })
})

I think all ListData.svc requests go to genericPost and genericGet routers as fallback.

Might need to create a specific router for these if there are a lot of changes needed, IMO.

Also, thanks for the awesome work on this!

from sp-rest-proxy.

koltyakov avatar koltyakov commented on May 24, 2024

Hi @hammadfauz,

Sorry for such a long delay. It happened so that I missed completely that there was the comment from you and never come back to the issue until recently.

Could you please check the 2.7.0 version, the legacy 2010 REST support has been added.

Going to close the issue.

from sp-rest-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.