Skip to content

Commit 079ddb4

Browse files
committed
updated with federation specs
1 parent 09d9d5f commit 079ddb4

File tree

1 file changed

+81
-22
lines changed

1 file changed

+81
-22
lines changed

REST_API_InternalDoc.md

Lines changed: 81 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -534,35 +534,94 @@ endpoint used to access federation objects
534534
return JSON data containing the following information regarding current checklists and templates present on the server
535535
```json
536536
{
537-
"outgoingFederations":
538-
[{
539-
"Name": "federation 1",
540-
"Address": "127.0.0.1",
541-
"Port": "11111",
542-
"FallBack": "federation 2",
543-
"Status": "Disabled",
544-
"ReconnectInterval": "32",
545-
"MaxRetries": "15",
546-
"LastError": "Timeout"
547-
}]
537+
"activeFederations":
538+
[
539+
{
540+
"id": "111-111-111",
541+
"address": "127.0.0.1",
542+
"port": "9000",
543+
"initiator": "Self",
544+
"readCount": "0",
545+
"processedCount": "0"
546+
}
547+
{
548+
"id": "111-111-112",
549+
"address": "1.1.1.1",
550+
"port": "11111",
551+
"initiator": "Remote",
552+
"readCount": "0",
553+
"processedCount": "0"
554+
}
555+
],
556+
"federations":
557+
[
558+
{
559+
"name": "federation 1",
560+
"id": "111-111-111",
561+
"address": "127.0.0.1",
562+
"port": "9000",
563+
"fallback": "federation 2",
564+
"status": "Disabled",
565+
"reconnectInterval": "32",
566+
"maxRetries": "15",
567+
"lastError": "Timeout"
568+
}
569+
]
548570
}
549571
```
550572

551573
### POST
552-
create a new outgoing federation
574+
create a new federation configuration
553575
```json
554576
{
555-
"outgoingFederations":[{
556-
"Name": "federation 1",
557-
"Address": "127.0.0.1",
558-
"Port": "11111",
559-
"FallBack": "federation 2",
560-
"Status": "Disabled",
561-
"ReconnectInterval": "32",
562-
"MaxRetries": "15",
563-
}]
577+
"outgoingFederations":
578+
[
579+
{
580+
"name": "federation 1",
581+
"address": "127.0.0.1",
582+
"port": "9000",
583+
"fallback": "federation 2",
584+
"status": "Disabled",
585+
"reconnectInterval": "32",
586+
"maxRetries": "15"
587+
}
588+
]
564589
}
565590
```
566591

567592
### DELETE
568-
Not yet implemented
593+
delete an existing federation configuration
594+
```json
595+
{
596+
"federations":
597+
[
598+
{
599+
"id": "111-111-111"
600+
}
601+
]
602+
}
603+
```
604+
605+
### PUT
606+
modify an existing federation configuration
607+
```json
608+
{
609+
"federations":
610+
[
611+
{
612+
"id": "111-111-111",
613+
"name": "new federation 1",
614+
"fallback": "new fallback",
615+
"status": "Enabled",
616+
"reconnectInterval": "15",
617+
"maxRetries": "10"
618+
}
619+
]
620+
}
621+
```
622+
* id: must be id of existing federation configuration
623+
* name(optional): new name of federation configuration
624+
* fallback(optional): name of new fallback
625+
* status(optional): new status of connection
626+
* reconnectInterval(optional): new reconnect interval
627+
* maxRetries(optional): new maximum number of retries

0 commit comments

Comments
 (0)