# Invoking Entando Core APIs
This tutorial describes how to invoke Entando Core APIs using Postman. Entando uses Swagger to automatically generate OpenAPI documentation that describes the available APIs.
Entando core APIs are accessible from a base URL such as localhost:8080/entando-de-app/api. For example, the page controller is available under /pages at the URL localhost:8080/entando-de-app/api/pages. The page template controller is available at localhost:8080/entando-de-app/api/pageModels.
For Postman assets, environment configuration, and token setup, refer to API Documentation. That section provides the downloadable Postman collection and environment files, along with guidance for obtaining an access token and authenticating requests.
Refer to User Management Roles for more details.
# Prerequisites
- Basic knowledge of Postman. You can download the Postman application or use Postman on the web. The latter requires changes to the Keycloak configuration.
- A local running copy of the Entando App Engine. For more details, refer to the Entando App Engine GitHub Readme (opens new window).
- An enabled Swagger UI
# Set Up Postman
- Open the API Documentation page and download the Postman collection and environment files.
- Import those files into Postman.
- Update the environment values for your target Entando and Keycloak instance, as described in the API documentation.
- Complete the authentication flow described in the API documentation to obtain an access token for your requests.
# Prepare a Generic API Request
Create a new request with the following parameters:
Authorizationsection
Type: "Inherit auth from parent"Headerssection
Create the following Key-Value pairs:Key: "Authorization",Value: "Bearer"Key: "Content-Type",Value: "application/json"
Select the appropriate method (GET, DELETE, POST, etc.) for your request and enter the URL with appropriate values, (i.e. localhost:8080/entando-de-app/api/pages).
Add the relevant payload in JSON format to the Body section. Remember to select raw and JSON (application/json).
Submit your test to check for the appropriate response.
- For more information on comprehensive testing, the Collection Runner on Postman (opens new window) enables you to run the API requests in a collection in a specified sequence.
- For more information on creating a collection for testing with Postman, go to Testing an API (opens new window).