Closed StevenJSun closed 5 years ago
Hello @StevenJSun ,
the OS edition only supports sessions. For transactions support you need RESTHeart Platform Professional Edition.
Check the editions matrix and I’m not sure which version of RESTHeart to get — the open source version or the professional edition version. What are the basic differences?
See documentation at https://restheart.org/docs/transactions/
With the PE you can create transactions:
$ http -a admin:secret POST :8080/_sessions/5db32159-c08c-4a5f-b71b-fe6e818f908a/_txns
HTTP/1.1 201 Created
Location: http://localhost:8080/_sessions/5db32159-c08c-4a5f-b71b-fe6e818f908a/_txns/1
When post transaction in session, the response httpcode is 405 and it not return the corrent tranctions in http header location。
Expected Behavior
When post transaction in session, it should return 201 httpcode and the transaction should be returned in location http header。
Current Behavior
{ http status code: 405 http status description: "Method Not Allowed" message: "method POST not allowed" _links: { self: { href: "/_sessions/f682ff34-1d78-4a6e-a731-a5d9bf62b6f6/_txns" }- }- }
Context
Environment
restheart 4.0.0 and opensource community version. mongodb:4.0.6
Steps to Reproduce
1. 2. 3.
Possible Implementation