@@ -368,6 +368,93 @@ paths:
368368 schema :
369369 $ref : ' #/components/schemas/ErrorResponse'
370370
371+ /navigation/history :
372+ post :
373+ summary : Get Route History
374+ operationId : get_route_history
375+ x-pass-as-object : true
376+ description : |
377+ Retrieves the navigation history stack and current route information.
378+
379+ **When to Use:**
380+ To understand where the user is in the application and how they got there.
381+ tags : [Navigation]
382+ requestBody :
383+ content :
384+ application/json :
385+ schema :
386+ $ref : ' #/components/schemas/GetRouteHistoryRequest'
387+ responses :
388+ ' 200 ' :
389+ description : Route history
390+ content :
391+ application/json :
392+ schema :
393+ type : object
394+ properties :
395+ count :
396+ type : integer
397+ windowId :
398+ type : integer
399+ history :
400+ type : array
401+ items :
402+ type : object
403+ ' 400 ' :
404+ description : Invalid request body
405+ content :
406+ application/json :
407+ schema :
408+ $ref : ' #/components/schemas/ErrorResponse'
409+ ' 500 ' :
410+ description : Internal server error
411+ content :
412+ application/json :
413+ schema :
414+ $ref : ' #/components/schemas/ErrorResponse'
415+
416+ /navigation/route/set :
417+ post :
418+ summary : Set Route
419+ operationId : set_route
420+ x-pass-as-object : true
421+ description : |
422+ Navigates the application to a specific route (hash).
423+
424+ **When to Use:**
425+ To drive the application to a specific view or state.
426+ tags : [Navigation]
427+ requestBody :
428+ required : true
429+ content :
430+ application/json :
431+ schema :
432+ $ref : ' #/components/schemas/SetRouteRequest'
433+ responses :
434+ ' 200 ' :
435+ description : Route set successfully
436+ content :
437+ application/json :
438+ schema :
439+ type : object
440+ properties :
441+ status :
442+ type : string
443+ hash :
444+ type : string
445+ ' 400 ' :
446+ description : Invalid request body
447+ content :
448+ application/json :
449+ schema :
450+ $ref : ' #/components/schemas/ErrorResponse'
451+ ' 500 ' :
452+ description : Internal server error
453+ content :
454+ application/json :
455+ schema :
456+ $ref : ' #/components/schemas/ErrorResponse'
457+
371458 /server/start :
372459 post :
373460 summary : Start WebSocket Server
@@ -609,6 +696,31 @@ components:
609696 type : string
610697 description : The target App Worker Session ID
611698
699+ GetRouteHistoryRequest :
700+ type : object
701+ properties :
702+ windowId :
703+ type : integer
704+ description : Optional window ID to get history for.
705+ sessionId :
706+ type : string
707+ description : The target App Worker Session ID
708+
709+ SetRouteRequest :
710+ type : object
711+ required :
712+ - hash
713+ properties :
714+ hash :
715+ type : string
716+ description : The new hash value to set (e.g., "#mainview=home").
717+ windowId :
718+ type : integer
719+ description : Optional window ID to target.
720+ sessionId :
721+ type : string
722+ description : The target App Worker Session ID
723+
612724 SetComponentPropertyRequest :
613725 type : object
614726 required :
0 commit comments