Ps.js JavaScript library and REST reference

Learn about the PS.js JavaScript library and REST interface for Project Server 2013, which you can use to develop custom solutions and apps for Project 2013.

Applies to: Project Professional 2013 | Project Server 2013

Project Server 2013 provides a JavaScript object model and a Representational State Transfer (REST) service that you can use to develop cross-browser web apps, task pane apps for Project Professional 2013, and apps for non-Windows devices that access Project Server 2013 and Project Online.

The JavaScript object model for Project Server 2013 is defined in the PS namespace in the PS.js JavaScript library. The PS.js JavaScript library is in the %ProgramFiles%\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\PS.js file.

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 also includes the PS.js and PS.debug.js files.

Project Server 2013 also provides a Representational State Transfer (REST) service that has equivalent APIs to the JavaScript object model and the .NET client object model. To use the REST interface, you build and send HTTP requests to the resource endpoints that represent the tasks you want to perform. REST resources correspond to Project Server objects, properties, and methods. Resource endpoint URIs and supported HTTP request types are documented with the corresponding members of the JavaScript object model.

If you're using the JavaScript object model, use the ProjectContext object as the entry point for Project Server functionality. If you're using the REST interface, use the https://ServerName/pwaName/_api/ProjectServer endpoint URI (replace ServerName and pwaName in the URI).

In this section

  • PS namespace  Describes the objects in the JavaScript object model and the resources in the REST interface that you can use to develop custom solutions and apps for Project 2013.

Reference

Client-side object model (CSOM) for Project Server

JavaScript library and REST reference for Project Server 2013

Getting started with the JavaScript object model

Querying OData feeds for Project 2013 reporting data