1

for an upcoming project, I will need to write a middleware that inserts some data into MS Project - Projects. After investigating I found two ways of communication with the Sharepoint-Ecosystem that I'd consider using:

  • .NET API (CSOM - Libraries)
  • REST Webservice

Figuring out the REST Webservice, especially the authentication took some time but I am now able to not only GET data but also make POST requests that update project fields.

While exploring the REST-paths I found myself surprised that they are actually much more developed than the sparse / rather confusing documentation had me believe.

Question: Will the MS Sharepoint / MS Project REST API be further developed or at least supported by Microsoft? I'd really like to use REST but I am not 100% confident that using the API will be the more future-proof choice.

Edit: I am aware that REST is not MS technology. The emphasis of my question is on the "Is Microsoft planning to change it's APIs or maybe discontinue REST support in future Sharepoint versions"

Thank you in advanced!

  • ♦ If an answer was helpful could you remove your question from the SO unanswered list, by marking it as answered, tnx – Danny '365CSI' Engelman Jun 4 '17 at 7:59
1

Yes, it is future proof (until technology X replaces it, just like REST replaced others)

REST is not Microsoft Technology. It is the protocol almost all APIs use.

https://en.wikipedia.org/wiki/Representational_state_transfer

Edit: Future Proof is mainly a software architecture issue

So you do not sprinkle you code with

context.httpClient.get( .. )

all over the place

But use one class/function

getContent(){
  return  context.httpClient.get( .. )
}

That way you have abstracted your code, can work with other data retrieval methods (like getting data from a localStorage cache) and it is easier to test.

And Microsofts'commitment

PnP Core JS is all about abstracting the REST interface for you

https://dev.office.com/patterns-and-practices

  • I am aware that REST is no Microsoft technology ;) I'll change my question accordingly. – FabianTe May 12 '17 at 10:13
  • Danny, do you know if Microsoft are developing on the REST API? I think the feature support is still less than JSOM – eirikb May 12 '17 at 11:28
  • Follow all the work Patrick Rodgers does on PnPCoreJS: gitter.im/OfficeDev/PnP-JS-Core – Danny '365CSI' Engelman May 12 '17 at 15:49
  • @Danny'365CSI'Engelman isn't pnp-js-core just an client-side interface for the REST api? I'm curious about the API itself – eirikb May 13 '17 at 14:43
  • Yes, it abstracts the REST API, actively development bij Microsoft and used for many SPFx examples. Not likely to be discontinued soon – Danny '365CSI' Engelman May 13 '17 at 16:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.