Skip to content

Commit

Permalink
Fix API json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidePrincipi committed Jan 17, 2024
1 parent cccab5d commit b75df69
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"examples": [
{
"subscription": {
"provider": "nsent",
"attributes": {
"auth_token": "d489701d76b1424e9dacb08b73741ef6d489701d76b1424e9dacb08b73741ef6"
}
"auth_token": "d489701d76b1424e9dacb08b73741ef6d489701d76b1424e9dacb08b73741ef6"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "get-support-session output",
"$id": "http://schema.nethserver.org/node/get-support-session-output.json",
"description": "Just an empty object, representing a successful response",
"examples": [
{
"session_id": "811630de-67f4-5b6d-8b2f-7cc01f592b1b",
"active": true
},
{
"session_id": "811630de-67f4-5b6d-8b2f-7cc01f592b1b",
"active": false
}
],
"type": "object",
"required": [
"session_id",
"active"
],
"properties": {
"session_id": {
"type": "string"
},
"active": {
"type": "boolean"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "start-support-session output",
"$id": "http://schema.nethserver.org/node/start-support-session-output.json",
"description": "Just an empty object, representing a successful response",
"examples": [
{
"session_id": "811630de-67f4-5b6d-8b2f-7cc01f592b1b"
}
],
"type": "object",
"required": [
"session_id"
],
"properties": {
"session_id": {
"type": "string"
}
}
}

0 comments on commit b75df69

Please sign in to comment.