Merge branch '2.3' into 2.4

This commit is contained in:
Markus Mäkelä
2020-12-01 06:35:17 +02:00
6 changed files with 40 additions and 25 deletions

View File

@ -29,10 +29,10 @@ an external server, the operation may be expensive.
"self": "http://localhost:8989/v1/sessions/9"
},
"data": {
"id": "9",
"id": "9", // The session ID, same as the one sent to the client
"type": "sessions",
"relationships": {
"services": {
"services": { // The service that the session uses
"links": {
"self": "http://localhost:8989/v1/services/"
},
@ -45,11 +45,11 @@ an external server, the operation may be expensive.
}
},
"attributes": {
"state": "Session ready for routing",
"user": "maxuser",
"remote": "::ffff:127.0.0.1",
"connected": "Mon Jul 17 11:10:39 2017",
"idle": 23.800000000000001
"state": "Session ready for routing", // Session state
"user": "maxuser", // The user that this session uses
"remote": "::ffff:127.0.0.1", // The client address
"connected": "Mon Jul 17 11:10:39 2017", // The time when the client connected
"idle": 23.800000000000001 // How many seconds the session has been idle
},
"links": {
"self": "http://localhost:8989/v1/sessions/9"
@ -71,6 +71,7 @@ Get all sessions.
`Status: 200 OK`
```javascript
// See `/v1/sessions/:id` for a descriptions of the fields
{
"links": {
"self": "http://localhost:8989/v1/sessions/"