AngularJS module for Oracle Webcenter

Added by: Sam Deering





Stars: 1

Watchers: 1

Forks: 0

Module Description

Welcome to ng-webcenter!

An angular module that attempts to wrap services from Webcenter REST API to corresponding angular services. The module also provides a unique HTTP interceptor that enriches the HATEOAS response from Webcenter REST API by parsing the associated Link Model and converting each link to a corresponding method. These method(s), when invoked will return a HTTP Promise that will resolve to the response object.

This work is inspired by project webcenter-rest


<!doctype html>
<html ng-app="myApp">
    <script src="//"></script>
    <script src="js/ng-webcenter.min.js"></script>
        var myApp = angular.module('myApp', ['ngWebcenter']);

        //app config
        myApp.config(['wcAuthProvider', '$httpProvider', function (wcAuth, $httpProvider) {
          wcAuth.setRestBaseUrl('http://hostname:port/rest'); //webcenter rest context root
          $httpProvider.interceptors.push('wcHateosInterceptor'); //registering the wcHateoasInterceptor

        myApp.controller('AbcCntrl',['wcAuth','wcPeopleService', function (wcAuth,wcPeopleService) {
            var promise = wcAuthService.restLogin('<username>', '<password>');
              var receivedInvitesProm = wcPeopleService.getReceivedInvitations();



As of now, the following Webcenter REST API have their corresponding AngularJS services.

Webcenter Service | AngularJS service --------------------- | ----------------- Discussions | wcDiscussionsService Lists | wcPeopleService,wcPortalService People Connections | wcPeopleService,wcWallService,wcActivityService WebCenter Spaces | wcPortalService Activity Graph | Work In Progress Events | wcEventsService Feedback | Work In Progress Search | Work In Progress Tags | Work In Progress Navigation | wcCore Content | Work In Progress


API docs are available here. Work is in progress to make the documentation more extensive.

Module stats last updated: 2015-04-19 02:55:27

Disclaimer: Some data on this page may have been gathered from the authors GitHub respository. If you see any mistakes or outdated information please let us know. Thanks!