REST API Wrapper For SP

Hi,
I am planning to create Service based custom wrapper for sharepoint using the REST API  for my developers so fetching and basic operations becomes easier for them. it turns out that in REST API/Web Services I am supposed to pass the credentials as well.
and since i can not pass the default credentials in my service which is out side the SharePoint environment. it will be difficult to pass the authentication. I have also thought of doing the operations using 1 single credential. But in that case all my list/document
library etc. has that user signature in created by and modified by columns on sharepoint.
Any suggestion ?
Thanks, Parth

Hi Shay,
Thanks for reply i followed the steps given in the documents, but there is a authentication problem.
1.I am able to see the services available in the API ----> http://host:port/rest/api/resourceIndex
These are some of the rest services  http://host:port/rest/api/spaces/resource/templates?utoken=FAOfyLL32piL7dPu9tXJjoEFMC5n_w**
                                                      http://host:port/rest/api/spaces?utoken=FAOfyLL32piL7dPu9tXJjoEFMC5n_w**
My question is , Are these the correct services which i need to consume in Jdeveloper (URL Service Data Control).
While consuming these services i m getting the error like "Authentication is Required". Is it the correct way to consume these services ??.
If not could you please tell me how to resolve this issue..? help me in this..
Thanks.

Similar Messages

  • REST API available for CCW?

    Hi Experts,
    I want to develop a web application interfacing CCW. Is there an REST API available for CCW?
    Thanks
    Krishna

    Hi, do Cisco provide a REST API for accessing the CCW in the meantime?

  • Batch Rest API Upsert for CDO Field Limit?

    Currently with SOAP we can update 150 CDO fields at once, is there a 100 filed limit with Batch Rest API?

    Further to Corey's question, when using REST API, when we upsert more than 100 fields into a CDO we get an error stating that we can only update 100 fields. Is it possible to change this limitation with Bulk REST API so that we can update more than 100 fields?

  • REST API: Query for object based on name instead of objectId

    Please correct me if I'm wrong...
    Right now I have to query anything and everything by the objectId. The issue is that I don't know what that is. I know the name. So, for example, If I know the objectId of an edge device named "myrouter" is "edge-1", then I can do:
         https://nsxmgr/api/4.0/edges/edge-1
    Awesome! Now I get the entire config. But let's say I don't know the edgeId. Because why would I? I would, however, know its name because that's why I name things. In many other API's all I would have to do is something like this:
         https://nsxmgr/api/4.0/edges?name=myrouter
    The only way I know of to do this today is to fetch ALL of the edges with the following:
         https://nsxmgr/api/4.0/edges
    This returns every single edge in the scope! Then I have to do something like (in powershell):
         $router_exist = (Select-Xml -Xml $script:edges -XPath "//edgeSummary[name=`"$esr_name`"]").Node
         if ($router_exist) {
              $router_id = $router_exist.objectId
    This isn't just for edges...its for every object available. Is it not possible to query based on an attribute?
    Thanks,
    Daniel

    Thanks for the replies :-)
    However my issue is that it gets loaded in a wrong format.
    In our System OU Name is shown as "COMPUTERS"; "DK"; "123dom" - Instead of 123dom/DK/Computers.
    We cannot make collections quering for OU name with this format in SCCM 2012. Has anyone seen this issue before? The forest was discovered using AD Forest+System+User discovery.

  • REST API Query for file Versions - current version

    Hi,
    I have referred to the list of API query options from this link:
    https://msdn.microsoft.com/en-us/library/office/dn450841.aspx .
    As described in the post, the query  goes as below
    url: "<app web url>/_api/SP.AppContextSite(@target)/web
        /getfilebyserverrelativeurl('/Shared Documents/filename.docx')/versions
        ?@target='<host web url>'",
    This does not return the current file version details. Is there a way to get those details in the same query or should we place another query to get the current version file details as below
    url: "<app web url>/_api/SP.AppContextSite(@target)/web
        /getfilebyserverrelativeurl('/Shared Documents/filename.docx')
    Thanks,
    Meena

    Hi Meena,
    In FileVersion endpoint, it will only return the old versions of a file.
    If you want to retrieve all versions(including) of a file, there will be a need to run another request for the current version only, though which might cause extra workload.
    Thanks
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Which Objects should I target for integrating Eloqua REST API 2.0?

    Which Objects should I target for integration? and What are the possible use cases for the additional objects other than core objects?

    I am still trying to find a good REST API 2,0 document like the Bulk 2.0 document.  Book List: Oracle Marketing Cloud
    I did find this but is also not in depth:
    REST API - Documentation for Core Objects

  • Are there REST APIs to retrieve entity metadata for  eloqua objects?

    There is a list of all the objects which can be accessed by REST for CRUD in this link: REST API - Documentation for Core Objects under the Core Objects section.
    For each of the objects listed under the  Core Objects section are there is a field metadata under the Properties section.
    For example for Email object, REST API - Accessing Emails , under the Properties section, there corresponding entries for fields of Emails object under the
    Name ,Type, Description and Validations headings.
    Is there a REST API for retrieving the same information i.e. the field metadata for an eloqua object programmatically ?
    If not , it is a serious hindrance to building systems that are metadata driven and also since SOAP support is being deprecated...

    Metadata is 'top level' information on the object, and available whether you query the individual object (a single form, or email asset) or query for multiple objects of that type (list all forms, list all emails). Consider using a depth of minimal or partial for faster performance if the specific configuration of those objects is not important..
    Example:
    GET /assets/forms?depth=minimal&count=2
    Returns:
      "elements":
        "type":"Form",
        "currentStatus":"Draft",
        "id":"19",
        "createdAt":"1409623550",
        "createdBy":"8",
        "depth":"minimal",
        "folderId":"7",
        "name":"zzztestCS_3-9381543541_AutocompleteTest",
        "permissions":"fullControl",
        "updatedAt":"1409623623",
        "updatedBy":"8"
        "type":"Form",
        "currentStatus":"Draft",
        "id":"22",
        "createdAt":"1409781207",
        "createdBy":"11",
        "depth":"minimal",
        "folderId":"466",
        "name":"daisychain1",
        "permissions":"fullControl",
        "updatedAt":"1412779449",
        "updatedBy":"20"
      "page":1,
      "pageSize":2,
      "total":130
    Without limiting the count to 2, this would return up to 1000 results if you had multiple forms in your system and give you a basic top level view of each. Similarly, you can use GET /assets/form/{id}?depth=minimal to get the same sort of information.
    Other endpoints can be found on the REST livedocs page here (requires authentication):
    https://secure.eloqua.com/api/docs/Dynamic/Rest/1.0/Reference.aspx
    Regards,
    Bojan

  • REST API for CCW

    Hi,
    Is there a REST API available for CCW operations? 
    Thanks
    Krishna

    Hi, do Cisco provide a REST API for accessing the CCW in the meantime?

  • Tidal 6.1.x REST API

    Has anyone had any luck using the REST API for 6.1.x?  The documentation is sub par at best, which is making things very difficult.  Spcifically I would like to know if anyone is able to submit a job and immediately know which job run id is assciated with the submit action.  We are looking to write several MVC apps and this is a key necessity in order for them to work as required.
    For instance, from a work flow perspective.  User A clicks a button to submit jobA that runs 5 minutes.  A minute later User B submits the same JobA but say with different parameters.  We need to know which jobrunId belongs to users A and B respectively.
    Even through the SOAP API the best we can get is to query the list of all running jobs of a particlar alias but cannot distinguish which job belongs to which user.
    Any information on the topic would be greatly appreciated.  I would also be more than happy to elaborate further if required.

    We didn't get the REST API wrapper as a solution to a case - but as a part of the purchase of TES. If was a high priority requirement from us, that we could migrate all our existing jobs from old scheduler (CA JMO) to TES. We didn't want to buy the migration as a turn key project, but wanted a tool so that we could build our own migration scripts. We hired a Cisco Services consultant for 3 days to help us build this. He delivered the base code which we build our code upon - but the base code is copyrighted.
    We frequently extend the functionality of this code to different purposes - there are too many things you can't do with the sacmd's.

  • REST API call in SCOM 2012R2

    Hi,  
    We are planning monitoring our cluster using SCOM 2102R2 server. REST API developed for our cluster. How to call these REST API calls in SCOM 2012R2 server? I searched, I am not able to find. Please help me with any steps or documents or with links. I am
    struct here. I am new to SCOM 2012 server. 
    Thanks,
    Boopalan

    You can refer below links
    http://mountainss.wordpress.com/2014/05/02/windows-azure-pack-service-management-api-samples-april-2014-wapack-scvmm-ws2012r2/
    http://www.vmunify.com/tag/windows-server-2012-r2/
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • Get blob properties REST API

    This REST API request for get blob:
    http://msdn.microsoft.com/en-us/library/azure/dd179440.aspx
    and get blob properties:
    http://msdn.microsoft.com/en-us/library/azure/dd179394.aspx
    look the same: https://myaccount.blob.core.windows.net/mycontainer/myblob
    When I issue this get request I get back both the property and the metadata. How do I just get the blob property? (I tried https://myaccount.blob.core.windows.net/mycontainer/myblob?comp=properties
    as a shot in the dark but that didn't work. I got a verb not recognized error.)

    HI
    The different is there Request Method:
    Get Blob is Get Method.
    GET Method Request URI
    Get Blob Properties  is Head Method.
    So when you create the Request, you need to set the Request Method to Head.
    request.Method = "Head";
    My Blog
    Please use Make as Answer if my post solved your problem and use
    Vote As Helpful if a post was useful.

  • FILES REST API url to list specific folder content

    I need to retrieve the items/documents in a specific folder of our Office 365 hosted SharePoint site, but I always get an resource error. I'm trying to use the FILE REST API for this, documented here:
    https://msdn.microsoft.com/office/office365/APi/files-rest-operations
    The url to the SharePoint site with the files is
    https://informationresourcemanager.sharepoint.com/irm/fido/1074/Forms/AllItems.aspx
    and according to the MSDN documents the call should be
    GET {base-url}/Files/{folder-id}/children
    and "base-url" should in the case of SharePoint be
    https://{tenant}.sharepoint.com/{site-path}/_api/v1.0
    Now, I've tried 10 different combinations without getting any good results, so I guess I'm doing something wrong with the base-url or the site-path. Is the correct base-url this for my site
    https://informationresourcemanager.sharepoint.com/irm/fido/_api/v1.0/
    or just
    https://informationresourcemanager.sharepoint.com/irm/_api/v1.0/
    /Johan

    Hi,
    According to your description, my understanding is that you want to get all the content in a specific folder using Office 365 rest api.
    For the base url, it needs to specify the site collection name in the url. In my environment, I have a site collection called "ZhengyuGuo", so we can get all the file in such site collection like below firstly:
    https://xxx.sharepoint.com/sites/zhengyuGuo/_api/v1.0/files/
    Then you can get the content in a specific folder using the "getByPath" method like below, in my environment, I will get the all file contents in document library folder.
    https://xxx.sharepoint.com/sites/zhengyuGuo/_api/v1.0/files/getByPath('/')/children
    The json data return like the capture below:
    Thanks
    Best Regards,
    Jerry Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Wrappers for RESTful API

    Are there any published Java wrapper classes for the WebI RESTful API?  Or do I have to manually write and parse JSON/XML?

    Hello Jean-Philippe,
    I can just give you my personal point of view if you're interested in.
    Moving to RESTful is not just a technology change but a deep paradigm change. I think having a kind of wrappers based on legacy approach would be slow, error-prone and will not cover all the new features delivered in BI4.
    I feel that trying to wrap every RESTful call offered (the number of supported operations is huge) in a generic way is not the most efficient to answer to a specific application. It will be faster to just grab the needed information and process it for a specific usecase.
    The API offered (first came with 4.0 SP5) is stable (still anwering in the same way).
    Because each developer has his/her own mindset, I don't expect that everybody will love to work with a RESTful API (even if most of comments we received are very positive and enthusiastic regarding how it's now possible to do complex operations in a friendly way, from different technologies, ...).
    But I hope others we give a chance to discover how this new approach can be benefic in a world moving to Could and Mobility based applications.
    Anthony

  • How to get permission of a sharepoint list for a user using REST api

    Hi there,
    I have a requirement where i need to check the access permission of a user against a List or Library only using REST api from my remote salesforce app. [I already have access token and I am able to view list, add item etc..]
    Say for example, I have to send the list name and user name, and get the result as Read, Write, Contribute(Manage), None. I need to display what permission does that user have for that List.
    How do I achieve this. Please help me.
    Thanks in advance.

    Hi,
    For High and low bits, we can create a new SP.BasePermissions object to use like below:
    function success(data){
    var permissions = new SP.BasePermissions();
    permissions.set(SP.PermissionKind.manageLists);
    var hasPermission = permissions.hasPermissions(data.d.EffectiveBasePermissions.High, data.d.EffectiveBasePermissions.Low);
    Here is a detailed article for your reference:
    http://www.lifeonplanetgroove.com/checking-user-permissions-from-the-sharepoint-2013-rest-api/
    Thanks
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Error while accessing SharePoint 2013 news feed REST api - "The server encountered an error processing the request. See server logs for more details."

    Hi Experts,
    I am facing an issue while accessing SharePoint 2013 news feed REST api URL <SiteCollectionURL>/_api/social.feed/my/news from browser giving error "The server encountered an
    error processing the request. See server logs for more details."
    This is happening after posting the image to news feed without entering any text or description with that. If i post an image with some text or description, then i can able to get the feeds. Or else if i delete the image post then also i can able to get
    the feeds.
    I can able to see below logs in log files.
    Exception occured in scope Microsoft.Office.Server.Social.SPSocialRestFeed._SerializeToOData. Exception=System.MissingMethodException: No parameterless constructor defined for this object.     at System.RuntimeTypeHandle.CreateInstance(RuntimeType
    type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)     at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache,
    StackCrawlMark& stackMark)     at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)     at System.Activator.CreateInstance(Type type, Boolean nonPublic)
        at System.Activator.CreateInstance(Type type)     at Microsoft.SharePoint.C...
    ...lient.ValueTypeConverter.<GetODataProperties>d__2.MoveNext()     at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperties(IEdmStructuredType owningType, IEnumerable`1 cachedProperties, Boolean isWritingCollection,
    Action beforePropertiesAction, Action afterPropertiesAction, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker, EpmValueCache epmValueCache, EpmSourcePathSegment epmSourcePathSegment, ProjectedPropertiesAnnotation projectedProperties)    
    at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteComplexValue(ODataComplexValue complexValue, IEdmTypeReference metadataTypeReference, Boolean isOpenPropertyType, Boolean isWritingCollection, Action beforeValueAction, Action afterValueAction,
    DuplicatePropertyNamesChecker duplicatePropertyNa...
    ...mesChecker, CollectionWithoutExpectedTypeValidator collectionValidator, EpmValueCache epmValueCache, EpmSourcePathSegment epmSourcePathSegment, ProjectedPropertiesAnnotation projectedProperties)     at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperty(ODataProperty
    property, IEdmStructuredType owningType, Boolean isTopLevel, Boolean isWritingCollection, Action beforePropertyAction, EpmValueCache epmValueCache, EpmSourcePathSegment epmParentSourcePathSegment, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker,
    ProjectedPropertiesAnnotation projectedProperties)     at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperties(IEdmStructuredType owningType, IEnumerable`1 cachedProperties, Boolean isWritingCollection, Action beforePropertie...
    ...sAction, Action afterPropertiesAction, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker, EpmValueCache epmValueCache, EpmSourcePathSegment epmSourcePathSegment, ProjectedPropertiesAnnotation projectedProperties)     at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteComplexValue(ODataComplexValue
    complexValue, IEdmTypeReference metadataTypeReference, Boolean isOpenPropertyType, Boolean isWritingCollection, Action beforeValueAction, Action afterValueAction, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker, CollectionWithoutExpectedTypeValidator
    collectionValidator, EpmValueCache epmValueCache, EpmSourcePathSegment epmSourcePathSegment, ProjectedPropertiesAnnotation projectedProperties)     at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSeriali...
    ...zer.WriteCollectionValue(ODataCollectionValue collectionValue, IEdmTypeReference propertyTypeReference, Boolean isOpenPropertyType, Boolean isWritingCollection)     at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperty(ODataProperty
    property, IEdmStructuredType owningType, Boolean isTopLevel, Boolean isWritingCollection, Action beforePropertyAction, EpmValueCache epmValueCache, EpmSourcePathSegment epmParentSourcePathSegment, DuplicatePropertyNamesChecker duplicatePropertyNamesChecker,
    ProjectedPropertiesAnnotation projectedProperties)     at Microsoft.Data.OData.Atom.ODataAtomPropertyAndValueSerializer.WriteProperties(IEdmStructuredType owningType, IEnumerable`1 cachedProperties, Boolean isWritingCollection, Action beforePropertiesAction,
    Action afterPropertiesAct...
    Can anyone please help me out.
    Thanks!
    dinesh

    O365,
    Is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

Maybe you are looking for

  • Where did Google Earth go when I upgraded to the latest version of Firefox?

    I clicked the popup that upgraded to the latest version of Firefox - and clicked to give it permission to make changes to my computer - and my Google Earth was no longer there. I restored my computer to before I had made the Firefox changes and my Go

  • Error while setting up the EDI Inbound

    Hi Guru's We are trying to set up the 875 inbound. It had worked perfectly fine in past. While setting up for new partner we are getting following error 2009.03.18 at 05:17:17:237: Thread-100: B2B - (DEBUG) oracle.tip.adapter.b2b.tpa.RepoDataAccessor

  • Cancel/Rebill charges originated in Legacy

    All, I wanted to see if there's any better way(s)  than the below given approach for handling cancel/rebill charges that were originated in legacy. The process we have is something like this: Step a) Analyze the billing history; access the legacy bil

  • UWL Iview launch issue

    Hi, We have customize a task in the UWL when a user click on the task, it open an ITS iview in the same window.  For some reason and specific users, when they click the same iview, it open an SAP transaction.  I have deleted all my config and re-impo

  • Installing TCS3 updated for FM 10 on Windows 7 displays Adobe Application Manager may be damaged error

    I got a new laptop and installed FM10. To avoid getting the License expired error, I tried installing TCS update 3. But the system displays an error Adobe Application Manager may be damaged. I re-installed Adobe Applicaiton Manager, but still the sam