# Mastering REST API Integration in Pega Constellation
> Learn how to configure Connect REST POST, PUT, PATCH, and DELETE methods in Pega with this step-by-step technical walkthrough.

Tags: pega, rest-api, integration, pega-constellation, http-methods, post-method, software-development
## Connect REST Post Method Walkthrough
An introductory guide to implementing RESTful services in Pega.

## Step 1: Endpoint Configuration
* Launch the 'New REST Integration' wizard.
* Define Name: CreatePostREST.
* Base Endpoint URL: https://jsonplaceholder.typicode.com/posts.

## Step 2: Resource Method Selection
* Select the 'POST' method for resource creation.
* Optional support for GET, PUT, PATCH, and DELETE.

## Step 3: Defining Requests via JSON
* Input sample JSON payload (e.g., title, body, userId).
* Pega automatically parses the structure to generate the Data Model.

## Step 4: Parsing the Response
* Configure the Response tab.
* Logic handles HTTP 201 Created status codes.

## Step 5: Automated Asset Generation
* Pega generates Int- and Data- classes, Connector rules, and Data Pages.
* Process took approximately 17 seconds in the demo.

## Data Page & Mapping
* Use 'D_CreatePostREST' to invoke the connector.
* Use Request Data Transforms to map Pega properties to external JSON fields.

## Integration Results
* Verified successful execution with a 201 Response and ID: 101.

## HTTP Methods: Comparisons
* **PUT**: Full replacement of a resource.
* **PATCH**: Partial update of a resource.
* **DELETE**: Removal of a resource.
* **POST vs PUT**: POST creates new entries (non-idempotent), while PUT updates specific ones (idempotent).
---
This presentation was created with [Bobr AI](https://bobr.ai) — an AI presentation generator.