Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Oct 4, 2023

No description provided.

@rjrudin rjrudin force-pushed the feature/with-transaction branch from 57c4155 to 27e0bde Compare October 4, 2023 21:07
"/v1/transactions",
params=params,
headers={"Accept": "application/json"},
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strangely, this doesn't match the documentation at https://docs.marklogic.com/REST/POST/v1/transactions

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean the use of the "Accept" header? I may have eagerly added that, I'll try removing it.

I'm also going to change the code for when a transaction can't be committed / rolled back, seems like raise_for_status() should be used there.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also that the documentation says to use the "Location" header in the response (which I find strange).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added comments, the docs are incorrect.

@rjrudin rjrudin force-pushed the feature/with-transaction branch from 27e0bde to e4df27d Compare October 5, 2023 15:08
@rjrudin rjrudin requested a review from BillFarber October 5, 2023 17:46
@rjrudin rjrudin merged commit 9698e3c into develop Oct 5, 2023
@rjrudin rjrudin deleted the feature/with-transaction branch October 5, 2023 17:49
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.

3 participants