Comments (3)
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.
@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.
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)
- OData parser to support clients relying on metadata URLs HOT 3
- Cannot find module 'socket.io-client' error when updating from version 3.0.2 to 3.1.0 HOT 1
- Request Method DELETE HOT 8
- OndemandCredentials Electron Mac HOT 6
- Identical requests - succeeding and failing HOT 4
- Can this react app be deployed as a web app on to a windows server so that users can access the app outside of the server ? HOT 6
- Host "sp-rest-proxy" as an independent web-app on Azure or pass authentication in configs to be used in CI/CD pipeline HOT 1
- Can this proxy be used when the host SP environment (on prem) has a "strict-origin-when-cross-origin" HTTP referrer policy? HOT 3
- sharepoint MFA bypass HOT 2
- [Feature query] Can the proxy be made to connect to multiple sites? HOT 1
- sp-rest-proxy with sharepointplus HOT 10
- POST request fails when calling the proxy (adding extra path to sharepoint request) HOT 5
- Proxy Error: Cannot read properties of null (reading 'toString') (see more in sp-rest-proxy console) HOT 4
- Version 3.3.4 broken for OnpremiseUserCredentials HOT 5
- Cannot read properties of null (reading 'toString') HOT 3
- On Demand - cannot read properties of null / childprocess.spawnsync EONENT Error HOT 2
- Proxy approach for Azure Active Directory HOT 2
- Typescript import HOT 1
- Setting siteUrl programatically HOT 4
- sp-rest-proxy does not work with Node 18.16.0 (current LTS) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sp-rest-proxy.