読者です 読者をやめる 読者になる 読者になる

楽観的/悲観的ロック HTTP 書き込み

 

楽観的ロック
リクエスト

レスポンス

GET /1120002 HTTP/1.1
Host: zip.ricollab.jp

HTTP/1.1 200 OK
Content-Type: application/json
ETag: sample-etag-value

{
"": "",
"": {
"": "",
"": "",
"": ""
},
"yomi": {
"": "",
"": "",
"": ""
}
}

 

HTTP/1.1 200 OK
Content-Type: application/json
ETag: sample-etag-value

{
"": "",
"": {
"": "",
"": "",
"": ""
},
"yomi": {
"": "",
"": "",
"": ""
}
}

HTTP/1.1 200 OK

 

DELETE
Host
Content-Type
If-March

HTTP/1.1 200 OK
----------------------
悲観的ロック
LOCK/UNLOK

LOCK /1120002 HTTO/1.1

HTTP/1.1 200 OK

HTTP/1.1 423 Locked

PUT /1120002 HTTP/1.1

HTTP/1.1 200 OK

UNLOCK /1120034 HTTP/1.1

HTTP/1.1 200 OK

POST /1120034 HTTP/1.1

HTTP/1.1 201 Created
Location: http:

DELETE /1120034/lock HTTP/1.1
HOST: zip.ricollab.jp
Authorization: Basic ...

HTTP/1.1 200 OK
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------
----------------------