JavaScript library and REST reference for Project Server 2013

The JavaScript library and REST reference for Project Server 2013 contains information about the JavaScript object model and the REST interface that you use to access Project Server functionality. You can use these APIs to develop cross-browser web apps, Project Professional 2013 add-ins, and apps for non-Windows devices that access Project Server 2013 and Project Online.

Note

The JavaScript object model and REST interface align with the Project Server client-side object model (CSOM). They provide equivalent functionality to the Microsoft.ProjectServer.Client namespace in the CSOM.

You can access Project Server functionality through the JavaScript object model, which is defined in the PS namespace in the %ProgramFiles%\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\PS.js file. The ProjectContext object in the PS namespace is the entry point to the JavaScript object model.

Note

To browse the JavaScript object model and to help with debugging, you can use the PS.debug.js file in the same directory. To help with development on a remote computer, the Project 2013 SDK download includes the .NET Framework assemblies for the CSOM, and the PS.js and PS.debug.js files.

You can also access Project Server functionality through the REST interface. The entry point to the REST interface is the ProjectServer resource, which you access by using the https://ServerName/pwaName/_api/ProjectServer endpoint URI. For example, the following query gets the assignments in the specified project (replace ServerName and pwaName, and change the GUID to match a project).

https://ServerName/pwaName/_api/ProjectServer/Projects('263fc8d7-427c-e111-92fc-00155d3ba208')/Assignments

The ProjectServer resource is described in ProjectServer resources in the REST interface. Other REST resources are described in the documentation for the corresponding JavaScript objects and members in this reference. For more information about using REST, see Client-side object model (CSOM) for Project Server and Programming using the SharePoint 2013 REST service.

JavaScript library and REST reference for Project Server

Additional resources