|
205 | 205 | "/auth/token" : { |
206 | 206 | "post" : { |
207 | 207 | "tags" : [ "auth" ], |
208 | | - "description" : "Creates new token from current access token, inheriting workspace id & session id. The duration of generated token is (and should not be) parameterizable. Server should set proper duration, respecting \"reconnect\" period of socket.io clients. Remember that most of socket.io client implementations (including official js client) do not provide any ways to change connection parameters (header or query) while reconnecting to server.\n\nLike login API, this endpoint does not provide any encryption. Server should not set any data to harm security in the token & should provide some signinig/encryption mechanism to protect token. Simple JSON Web Token with HMAC-SHA will do.\n", |
| 208 | + "description" : "Creates new token from current access token, inheriting workspace id & session id. The duration of generated token is not (and should not be) parameterizable. Server should set proper duration, respecting \"reconnect\" period of socket.io clients. Remember that most of socket.io client implementations (including official js client) do not provide any ways to change connection parameters (header or query) while reconnecting to server.\n\nLike login API, this endpoint does not provide any encryption. Server should not set any data to harm security in the token & should provide some signinig/encryption mechanism to protect token. Simple JSON Web Token with HMAC-SHA will do.\n", |
209 | 209 | "operationId" : "issueToken", |
210 | 210 | "parameters" : [ { |
211 | 211 | "name" : "type", |
|
724 | 724 | }, { |
725 | 725 | "name" : "If-None-Match", |
726 | 726 | "in" : "header", |
727 | | - "description" : "Usual if-non-match header, allowing only 1 e-tag value from previous readFile response, including weak prefix and quotation chars. This header value precedes if-modified-since, and server should ignore if-modified-since header when if-none-match header exists, as RFC-2616 declines.", |
| 727 | + "description" : "Usual if-non-match header, allowing only 1 e-tag value from previous readFile response. The value of this header can have weak prefix and quotation chars. This header value precedes the value of if-modified-since header. Server should ignore if-modified-since header when if-none-match header exists, as RFC-2616.", |
728 | 728 | "required" : false, |
729 | 729 | "type" : "string" |
730 | 730 | } ], |
|
1478 | 1478 | }, |
1479 | 1479 | "Session" : { |
1480 | 1480 | "type" : "object", |
1481 | | - "required" : [ "clientAddress", "connectedAt", "disconnectedAt", "id", "name", "state" ], |
| 1481 | + "required" : [ "clientAddress", "connectedAt", "id", "name", "state" ], |
1482 | 1482 | "properties" : { |
1483 | 1483 | "id" : { |
1484 | 1484 | "type" : "string", |
|
1490 | 1490 | }, |
1491 | 1491 | "state" : { |
1492 | 1492 | "type" : "string", |
1493 | | - "description" : "NORMAL = connected, normally working\nLOSING = disconnected, waiting reconnection. still accessible with api\nCLOSING = socket connection will close connection by server (clinet will be notified)\n\nThere\"s no \"CLOSED\" / \"LOST\" state, for server will remove session object in registry when the server closes connection or stops waiting for reconnection for timeout.\n", |
1494 | | - "enum" : [ "NORMAL", "LOSING", "CLOSING" ] |
| 1493 | + "description" : "NORMAL = connected, normally working.\nCLOSING = server requested client to disconnect. Connection will be closed soon.\nTERMINATED = disconnected. server will remove this session from registry ASAP.\n", |
| 1494 | + "enum" : [ "NORMAL", "CLOSING", "TERMINATED" ] |
1495 | 1495 | }, |
1496 | 1496 | "workspaceId" : { |
1497 | 1497 | "type" : "string", |
|
1506 | 1506 | "format" : "date-time", |
1507 | 1507 | "description" : "the time when socket connection is established" |
1508 | 1508 | }, |
1509 | | - "disconnectedAt" : { |
1510 | | - "type" : "string", |
1511 | | - "format" : "date-time", |
1512 | | - "description" : "the time when socket is closed." |
1513 | | - }, |
1514 | 1509 | "willCloseAt" : { |
1515 | 1510 | "type" : "string", |
1516 | 1511 | "format" : "date-time", |
1517 | | - "description" : "when state becomes CLOSING, actual closing time will be updated by server." |
1518 | | - }, |
1519 | | - "willLoseAt" : { |
1520 | | - "type" : "string", |
1521 | | - "format" : "date-time", |
1522 | | - "description" : "when state becomes LOSING, server will not wait for reconnection after this time." |
| 1512 | + "description" : "when state becomes CLOSING, server sets this time as deadline." |
1523 | 1513 | } |
1524 | 1514 | }, |
1525 | 1515 | "description" : "an application session per ide instance. bound to access token" |
|
1631 | 1621 | "properties" : { |
1632 | 1622 | "id" : { |
1633 | 1623 | "type" : "string", |
1634 | | - "description" : "id, and the path-fragment to access. Since this id is a path-fragment, any unsafe chars for file system path should not be included. Windows OS prohibits following characters to be used in a file name.\n < (less than)\n > (greater than)\n : (colon)\n \" (double quote)\n / (forward slash)\n \\ (backslash)\n | (vertical bar or pipe)\n ? (question mark)\n * (asterisk)\n" |
| 1624 | + "description" : "id, and the path-fragment to access. Since this id is a path-fragment, any unsafe chars for file system path should not be included. Windows OS prohibits following characters.\n < (less than)\n > (greater than)\n : (colon)\n \" (double quote)\n / (forward slash)\n \\ (backslash)\n | (vertical bar or pipe)\n ? (question mark)\n * (asterisk)\n" |
1635 | 1625 | }, |
1636 | 1626 | "workspaceId" : { |
1637 | 1627 | "type" : "string", |
|
0 commit comments