Postman sample OData queries

Overview

Postman is a tool that lets you construct, execute, and test HTTP requests in a quick and easy way. This article demonstrates how to run OData queries with the Postman app against a real environment. Postman provides a sandbox to play with different sample queries and see the results.

For more information, see OData Getting Started.

PREREQUISITES: You need to connect to an online Sitefinity CMS instance.
You need to:

Configure Postman

To run the tutorial, perform the following:

  1. Install The Postman app or use Postman on the web.
    To do this, go to Download Postman.
  2. Sign in or register in Postman and open it.
  3. Import the SitefinityODataPostmanCollection.json file.
    This file contains all sample queries described in the Headless API documentation.
  4. In Postman, in the left menu, click Environments » Import.
  5. Upload the SitefinityODataPostmanEnvironment.json file and import it.
    The Postman environment defines multiple variables that you must configure to be able to use the provided samples.
    For more information, see the Postman documentation » Using variables.
  6. Select Sitefinity Web Services environment and edit it.
  7. Assign you current Sitefinity CMS instance URL to the baseurl variable
  8. Change the values of username and password, if required.
  9. In the left, click Collections » Sitefinity Web Services.
  10. Click the Auth tab and select the type of authentication, corresponding to the authentication protocol of your Sitefinity CMS instance.
  11. Execute the request.
    If the request is successful, the token received will be automatically added to the environment variables

RESULT: You are set up. You can start executing other request and playing with the samples.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?

Next article

Headless API reference