Skip to content

DCNM_REST: Adding support for Encoding Type 'x-www-form-urlencoded' #490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

AKDRG
Copy link
Collaborator

@AKDRG AKDRG commented Aug 6, 2025

Issue:
#366

Fix:
Add support for API requests with body-data encoding type 'x-www-form-urlencoded', through attribute "urlencoded_data" in the dcnm_rest module.

Example:

tasks:
- name: Save Robot Credentials
cisco.dcnm.dcnm_rest:
method: POST
path: 'https://192.168.1.2/appcenter/cisco/ndfc/api/v1/lan-fabric/rest/lanConfig/saveRobotCredentials'
urlencoded_data: '{"password": "password","confirmPassword": "password","isRobot":true,"username": "admin"}'

@AKDRG AKDRG requested a review from mikewiebe August 6, 2025 18:11
@AKDRG AKDRG self-assigned this Aug 6, 2025
@AKDRG AKDRG added the ready for review PR is ready to be reviewed label Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review PR is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant