on master help sign in
Slight modifications
commit155fd6a9035896f37c987e8a2048bea4bbe4c723 authoriko <ilyakooo0@gmail.com> dateWed 23 Jan 2019, 18:18 (8 years ago) parent0a4df80
1 file changed+23−22
readme.md+23−22
readme.md+23−22
@@ -58,10 +58,11 @@ Use this _url_ to get the token every time when application begins and previous
5858 ]
5959}
6060```
61−### Captures:
62−- «token» to further use it in subscription to web socket
6361
64−- «response» to start with the given number of posts in table
62+### Response fields
63+
64+- "token" to further use it in subscription to web socket
65+- "response" to start with the given number of posts in table
6566
6667## WebSocket /posts/subscribe/:token
6768
@@ -79,14 +80,14 @@ Open a web socket from the given `token` for receiving events about new and dele
7980
8081```javascript
8182{
82− «token»: 1828,
83− «response»: {
84− «deleted»: [
83+ "token": 1828,
84+ "response": {
85+ "deleted": [
8586 1819,
8687 1835,
8788 1843
8889 ],
89− «added»: [
90+ "added": [
9091 1844,
9192 1845,
9293 1846
@@ -118,9 +119,9 @@ _url: [`https://websuck1t.herokuapp.com/posts/{id}`](https://websuck1t.herokuapp
118119
119120```javascript
120121{
121− «postBody»: «This is the post body»,
122− «postAuthor»: 4,
123− «postId»: 1
122+ "postBody": "This is the post body",
123+ "postAuthor": 4,
124+ "postId": 1
124125}
125126```
126127
@@ -128,9 +129,9 @@ _url: [`https://websuck1t.herokuapp.com/posts/{id}`](https://websuck1t.herokuapp
128129
129130```javascript
130131{
131− «postBody»: «This is another post body»,
132− «postAuthor»: 4,
133− «postId»: 1
132+ "postBody": "This is another post body",
133+ "postAuthor": 4,
134+ "postId": 1
134135}
135136```
136137
@@ -138,9 +139,9 @@ _url: [`https://websuck1t.herokuapp.com/posts/{id}`](https://websuck1t.herokuapp
138139
139140```javascript
140141{
141− «postBody»: «This is the post body»,
142− «postAuthor»: 7,
143− «postId»: 1
142+ "postBody": "This is the post body",
143+ "postAuthor": 7,
144+ "postId": 1
144145}
145146```
146147
@@ -148,9 +149,9 @@ _url: [`https://websuck1t.herokuapp.com/posts/{id}`](https://websuck1t.herokuapp
148149
149150```javascript
150151{
151− «postBody»: «This is another post body»,
152− «postAuthor»: 7,
153− «postId»: 1
152+ "postBody": "This is another post body",
153+ "postAuthor": 7,
154+ "postId": 1
154155}
155156```
156157
@@ -158,9 +159,9 @@ _url: [`https://websuck1t.herokuapp.com/posts/{id}`](https://websuck1t.herokuapp
158159
159160```javascript
160161{
161− «postBody»: «This is the post body»,
162− «postAuthor»: 92,
163− «postId»: 1
162+ "postBody": "This is the post body",
163+ "postAuthor": 92,
164+ "postId": 1
164165}
165166```
166167