Skip to content

Commit

Permalink
Documented the Account Sync Protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Wavesonics committed Oct 20, 2024
1 parent 6128064 commit ee61217
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/SYNCING-PROTOCOL.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ sequenceDiagram
rect rgb(1, 59, 15)
Client ->> Server: GET /projects/{userId}/begin_sync
activate Server
Note right of Client: userId<br>bearer token
Note right of Client: bearer token
Server -->> Client: 200 OK (Sync Began)
deactivate Server
activate Client
Note left of Server: syncId<br>projects<br>deletedProjects
Note left of Server: syncId<br/>projects<br/>deletedProjects
alt Sync already in progress
Server -x Client: 400 Bad Request (sync ends here)
end
Expand All @@ -90,7 +90,7 @@ sequenceDiagram
Client ->> Server: GET /api/projects/{userId}/rename
deactivate Client
activate Server
Note right of Client: syncId <br> projectId <br> projectName
Note right of Client: bearer token <br/> syncId <br/> projectId <br/> projectName
Server -->> Client: 200 OK (Rename successful)
deactivate Server
activate Client
Expand All @@ -105,7 +105,7 @@ sequenceDiagram
Client ->> Server: GET /api/projects/{userId}/delete (syncId, projectId)
deactivate Client
activate Server
Note right of Client: syncId <br> projectId
Note right of Client: bearer token <br/> syncId <br/> projectId
Server -->> Client: 200 OK (Delete successful)
deactivate Server
activate Client
Expand All @@ -120,7 +120,7 @@ sequenceDiagram
Client ->> Server: GET /api/projects/{userId}/{projectName}/create
deactivate Client
activate Server
Note right of Client: syncId <br> projectName
Note right of Client: bearer token <br/> syncId <br/> projectName
Server -->> Client: 200 OK (projectId)
deactivate Server
activate Client
Expand All @@ -134,7 +134,7 @@ sequenceDiagram
Client ->> Server: GET /api/projects/{userId}/end_sync
deactivate Client
activate Server
Note right of Client: syncId
Note right of Client: bearer token <br/> syncId
Server -x Client: 200 OK (Sync completed)
deactivate Server
end
Expand Down

0 comments on commit ee61217

Please sign in to comment.