Skip to content

[doc] REST.pm: Swap POST and PUT to match descriptions#29

Open
rwp0 wants to merge 1 commit intognustavo:nextfrom
rwp0:patch-1
Open

[doc] REST.pm: Swap POST and PUT to match descriptions#29
rwp0 wants to merge 1 commit intognustavo:nextfrom
rwp0:patch-1

Conversation

@rwp0
Copy link

@rwp0 rwp0 commented Mar 24, 2024

POST creates, PUT updates with HTTP

In the examples PUT is (rightfully) used for editing:

$jira->PUT("/issue/@{[$opt->issue]}", undef, $data);

`POST` creates, `PUT` updates with HTTP

In the examples `PUT` is (rightfully) used for editing:

https://github.com/gnustavo/JIRA-REST/blob/5de3eb67533868dbe821795a0bde2268b2cee0cf/examples/edit_issue.pl#L50
@rwp0 rwp0 changed the title REST.pm: Swap POST and PUT [doc] REST.pm: Swap POST and PUT to match descriptions Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant