{"openapi":"3.0.0","info":{"title":"Admin Gateway","version":"0.0.1","description":"The Admin Gateway collection provides a comprehensive overview of the API structure behind Rierino's administrative interface. These endpoints represent the operations typically invoked by the Admin UI applications, covering platform configuration, data management, content operations, workflow execution, and system administration tasks.\n\nThis collection is organized to mirror the gateway's routing logic, giving developers and integration partners a clear map of available services and their request patterns. Each endpoint includes sample payloads and parameter definitions to help you understand expected inputs, authentication requirements, and response formats.\n\nUse this collection to explore how the Admin UI communicates with backend microservices, replicate administrative operations programmatically, build custom tooling on top of existing platform capabilities, or automate routine configuration and management tasks. It is particularly useful for teams developing custom admin panels, extending platform functionality through external services, or integrating Rierino's administrative layer into broader enterprise workflows.\n\nFork this collection to your own workspace to begin testing against your [Rierino](https://rierino.com) environment.\n\nYou can find more about standard APIs available out of box [here.](https://docs.rierino.com/devops/api-gateway-and-security/apis)"},"externalDocs":{"description":"Find the complete configuration models and microservices deployment architecture here.","url":"https://docs.rierino.com"},"servers":[{"url":"{{adminGateway}}"},{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/rierino/rierino-core-base/0.0.1"}],"paths":{"/api/auth/login/rpc":{"post":{"summary":"Login","responses":{"200":{"description":"Login","headers":{"Date":{"deprecated":false,"schema":{},"example":"Thu, 19 Mar 2026 16:19:20 GMT"},"Content-Length":{"deprecated":false,"schema":{},"example":"1022"},"Connection":{"deprecated":false,"schema":{},"example":"keep-alive"},"x-middleware-rewrite":{"deprecated":false,"schema":{},"example":"http://admincontroller:1236/api/auth/login/rpc"},"Vary":{"deprecated":false,"schema":{},"example":"Origin, Access-Control-Request-Method, Access-Control-Request-Headers, Accept-Encoding"},"cache-control":{"deprecated":false,"schema":{},"example":"no-cache, no-store, max-age=0, must-revalidate"},"pragma":{"deprecated":false,"schema":{},"example":"no-cache"},"expires":{"deprecated":false,"schema":{},"example":"0"},"x-content-type-options":{"deprecated":false,"schema":{},"example":"nosniff"},"x-frame-options":{"deprecated":false,"schema":{},"example":"DENY"},"x-xss-protection":{"deprecated":false,"schema":{},"example":"1 ; mode=block"},"referrer-policy":{"deprecated":false,"schema":{},"example":"no-referrer"}}}},"tags":["Authentication"],"security":[{"BasicAuth":[]}],"description":"Logs in an admin user with provided username and password"}},"/api/request/rpc/Me":{"get":{"summary":"Me","parameters":[{"name":"X-Request-Id","in":"header","schema":{"type":"string"},"example":"test"}],"responses":{"default":{"description":"Me"}},"tags":["Authentication"],"description":"Resolves the user gateway token to reveal profile and access information"}},"/api/request/{crudRunner}/{crudState}":{"get":{"summary":"List & filter records","parameters":[{"name":"$_id.IN[]","in":"query","schema":{"type":"string"},"example":"app,ui"},{"name":"$data.name.EQ","in":"query","schema":{"type":"string"},"example":"App"},{"name":"limit","in":"query","schema":{"type":"integer"},"example":1}],"responses":{"default":{"description":"List & filter records"}},"tags":["Core","CRUD (Generic)"],"description":"Lists records from a given state manager, with the ability to apply filters, select fields, order and skip/limit results."},"parameters":[{"name":"crudRunner","in":"path","required":true,"schema":{"type":"string"},"example":"{{crudRunner}}"},{"name":"crudState","in":"path","required":true,"schema":{"type":"string"},"example":"{{crudState}}"}],"post":{"summary":"Create a record without given ID","responses":{"default":{"description":"Create a record without given ID"}},"tags":["Core","CRUD (Generic)"],"description":"Creates a new record in given state manager. ID of the new record is automatically generated by the state, if the state manager has an ID generator configured, otherwise this API would return an error.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"name":{"type":"string"}}}}},"example":{"data":{"name":"New Record"}}}}}}},"/api/request/{crudRunner}/graphql":{"post":{"summary":"GraphQL Query","responses":{"default":{"description":"GraphQL Query"}},"tags":["Core","CRUD (Generic)"],"description":"Lists records with the requested ids from a given state manager."},"parameters":[{"name":"crudRunner","in":"path","required":true,"schema":{"type":"string"},"example":"{{crudRunner}}"}]},"/api/request/{crudRunner}/{crudState}/{crudId}":{"get":{"summary":"Read a record","responses":{"default":{"description":"Read a record"}},"tags":["Core","CRUD (Generic)"],"description":"Retrieves details of a record with the requested id from a given state manager."},"parameters":[{"name":"crudRunner","in":"path","required":true,"schema":{"type":"string"},"example":"{{crudRunner}}"},{"name":"crudState","in":"path","required":true,"schema":{"type":"string"},"example":"{{crudState}}"},{"name":"crudId","in":"path","required":true,"schema":{"type":"string"},"example":"{{crudId}}"}],"post":{"summary":"Create a record with given ID","responses":{"default":{"description":"Create a record with given ID"}},"tags":["Core","CRUD (Generic)"],"description":"Creates a new record with a specific ID in given state manager.","requestBody":{"content":{"application/json":{"schema":{"type":"object"},"example":"{\r\n    \"data\":{\r\n        \"name\": \"New Record - \"{{crudId}}\"\"\r\n    }\r\n}"}}}},"put":{"summary":"Overwrite a record","responses":{"default":{"description":"Overwrite a record"}},"tags":["Core","CRUD (Generic)"],"description":"Completely overwrites the contents of a record in a given state manager.","requestBody":{"content":{"application/json":{"schema":{"type":"object"},"example":"{\r\n    \"data\":{\r\n        \"name\": \"Updated Record - \"{{crudId}}\"\"\r\n    }\r\n}"}}}},"patch":{"summary":"Patch a record","responses":{"default":{"description":"Patch a record"}},"tags":["Core","CRUD (Generic)"],"description":"Partially updates the contents of a record in a given state manager.","requestBody":{"content":{"application/json":{"schema":{"type":"object"},"example":"{\r\n    \"data\":{\r\n        \"name\": \"Patched Record - \"{{crudId}}\"\"\r\n    }\r\n}"}}}},"delete":{"summary":"Delete a record","responses":{"default":{"description":"Delete a record"}},"tags":["Core","CRUD (Generic)"],"description":"Deletes the record with selected ID in a given state manager."}},"/api/request/{crudRunner}/{crudState}/@":{"post":{"summary":"Perform bulk write","responses":{"default":{"description":"Perform bulk write"}},"tags":["Core","CRUD (Generic)"],"description":"Performs batch write actions with a single API call. All write event handler actions are supported with this API endpoint.","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string"},"inputElement":{"type":"string"},"outputElement":{"type":"string"},"meta":{"type":"object","properties":{"structure":{"type":"string"}}},"list":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"data":{"type":"object","properties":{"name":{"type":"string"}}}}}}}},"example":{"action":"Create","inputElement":"list","outputElement":"result","meta":{"structure":"array"},"list":[{"id":"bulk-1","data":{"name":"Bulk 1"}},{"id":"bulk-2","data":{"name":"Bulk 2"}}]}}}}},"parameters":[{"name":"crudRunner","in":"path","required":true,"schema":{"type":"string"},"example":"{{crudRunner}}"},{"name":"crudState","in":"path","required":true,"schema":{"type":"string"},"example":"{{crudState}}"}]},"/api/request/{rpcRunner}/GetAIAgent":{"get":{"summary":"GetAIAgent","parameters":[{"name":"id","in":"query","schema":{"type":"string"},"example":"AGENT_ID"}],"responses":{"default":{"description":"GetAIAgent"}},"tags":["Core","RPC (Generic)"],"description":"Calls rpcAction endpoint (e.g. Saga) on rpcRunner as a GET request."},"parameters":[{"name":"rpcRunner","in":"path","required":true,"schema":{"type":"string"},"example":"{{rpcRunner}}"}]},"/api/request/{rpcRunner}/CallAIAgent":{"post":{"summary":"CallAIAgent","responses":{"default":{"description":"CallAIAgent"}},"tags":["Core","RPC (Generic)"],"description":"Make a request to a selected AI agent","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"agent":{"type":"string"},"message":{"type":"string"}}},"example":{"agent":"AGENT_ID","message":"PROMPT"}}}}},"parameters":[{"name":"rpcRunner","in":"path","required":true,"schema":{"type":"string"},"example":"{{rpcRunner}}"}]},"/api/request/train_crud/dummy":{"get":{"summary":"dummy (List)","responses":{"default":{"description":"dummy (List)"}},"tags":["Train","CRUD (Train)"],"description":"Lists records in the 'dummy' training state"}},"/api/request/train_crud/dummy/train":{"get":{"summary":"dummy/train","responses":{"default":{"description":"dummy/train"}},"tags":["Train","CRUD (Train)"],"description":"Retrieves a specific record in the 'dummy' training state"}},"/api/request/train_crud/dummy/train_0":{"post":{"summary":"dummy/train_0","responses":{"default":{"description":"dummy/train_0"}},"tags":["Train","CRUD (Train)"],"description":"Creates a new record in the 'dummy' training state","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"name":{"type":"string"}}}}},"example":{"data":{"name":"Training Entry 0"}}}}}},"delete":{"summary":"dummy/train_0","responses":{"default":{"description":"dummy/train_0"}},"tags":["Train","CRUD (Train)"],"description":"Deletes a record from the 'dummy' training state","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"name":{"type":"string"}}}}},"example":{"data":{"name":"Training Entry 0"}}}}}}},"/api/request/train_crud/dummy/train_1":{"put":{"summary":"dummy/train_1","responses":{"default":{"description":"dummy/train_1"}},"tags":["Train","CRUD (Train)"],"description":"Replaces a specific record in the 'dummy' training state","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"name":{"type":"string"}}}}},"example":{"data":{"name":"Training Entry 1"}}}}}},"patch":{"summary":"dummy/train_1","responses":{"default":{"description":"dummy/train_1"}},"tags":["Train","CRUD (Train)"],"description":"Partially updates a specific record in the 'dummy' training state","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"name":{"type":"string"}}}}},"example":{"data":{"name":"Training Entry 1 Updated"}}}}}}},"/api/request/train_rpc/train_ping":{"post":{"summary":"train_ping","responses":{"default":{"description":"train_ping"}},"tags":["Train","RPC (Train)"],"description":"Performs a simple PING call without performing any specific action"}},"/api/request/train_rpc/train_mock":{"post":{"summary":"train_mock","responses":{"default":{"description":"train_mock"}},"tags":["Train","RPC (Train)"],"description":"Performs a simple PING call without performing any specific action"}},"/api/request/train_rpc/train_hello":{"post":{"summary":"train_hello","responses":{"default":{"description":"train_hello"}},"tags":["Train","RPC (Train)"],"description":"Outputs a \"Hello World\" message"}},"/api/request/train_rpc/train_redirect":{"post":{"summary":"train_redirect","responses":{"default":{"description":"train_redirect"}},"tags":["Train","RPC (Train)"],"description":"Outputs a \"Hello World\" message, where the server redirects this endpoint to /train_hello saga to produce this output"}},"/api/request/train_rpc/train_condition":{"get":{"summary":"train_condition","parameters":[{"name":"value","in":"query","schema":{"type":"string"},"example":"A"}],"responses":{"default":{"description":"train_condition"}},"tags":["Train","RPC (Train)"],"description":"Executes a conditional flow, returning different values for different \"value\" parameters (e.g. \"A\", \"B\")"}},"/api/request/train_rpc/train_get":{"get":{"summary":"train_get","parameters":[{"name":"id","in":"query","schema":{"type":"string"},"example":"train"}],"responses":{"default":{"description":"train_get"}},"tags":["Train","RPC (Train)"],"description":"Retrieves details of the record with requested id from 'dummy' training state"}},"/api/request/train_rpc/train_query":{"get":{"summary":"train_query","parameters":[{"name":"search","in":"query","schema":{"type":"string"},"example":"Train"},{"name":"limit","in":"query","schema":{"type":"integer"},"example":1},{"name":"skip","in":"query","schema":{"type":"integer"},"example":0}],"responses":{"default":{"description":"train_query"}},"tags":["Train","RPC (Train)"],"description":"Executes a query to retrieve records from 'dummy' training state, with a case sensitive \"search\" parameter"}},"/api/request/train_rpc/train_set":{"post":{"summary":"train_set","responses":{"default":{"description":"train_set"}},"tags":["Train","RPC (Train)"],"description":"Updates contents of a record with requested id in 'dummy' training state","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"data":{"type":"object","properties":{"name":{"type":"string"}}}}},"example":{"id":"train","data":{"name":"Training Entry Updated"}}}}}}},"/api/request/train_rpc/train_rest":{"get":{"summary":"train_rest (openlibrary)","parameters":[{"name":"author","in":"query","schema":{"type":"string"},"example":"tolkien"}],"responses":{"default":{"description":"train_rest (openlibrary)"}},"tags":["Train","RPC (Train)"],"description":"Makes a rest call to a sample external API passing given parameters"}},"/api/request/train_rpc/train_pattern":{"get":{"summary":"train_pattern","parameters":[{"name":"d","in":"query","schema":{"type":"string"},"example":"Nation"},{"name":"m","in":"query","schema":{"type":"string"},"example":"Population"}],"responses":{"default":{"description":"train_pattern"}},"tags":["Train","RPC (Train)"],"description":"Makes a rest call to a sample external API passing a transformed version of the given parameters"}},"/api/request/train_rpc/train_parallel":{"get":{"summary":"train_parallel","responses":{"default":{"description":"train_parallel"}},"tags":["Train","RPC (Train)"],"description":"Runs two parallel flows and returns their merged results"}},"/api/request/train_rpc/train_nested":{"post":{"summary":"train_nested","responses":{"default":{"description":"train_nested"}},"tags":["Train","RPC (Train)"],"description":"Calls a nested saga flow and returns its results","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"surname":{"type":"string"}}},"example":{"name":"Test","surname":"Person"}}}}}},"/api/request/train_rpc/train_for":{"post":{"summary":"train_for","responses":{"default":{"description":"train_for"}},"tags":["Train","RPC (Train)"],"description":"Calls a nested saga flow and returns its results","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"list":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"surname":{"type":"string"}}}}}},"example":{"list":[{"name":"First","surname":"Person"},{"name":"Second","surname":"Person"}]}}}}}},"/api/request/train_rpc/train_secret":{"post":{"summary":"train_secret","responses":{"default":{"description":"train_secret"}},"tags":["Train","RPC (Train)"],"description":"Encrypts and decrypts the text given as an input","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"input":{"type":"string"}}},"example":{"input":"hello"}}}}}},"/api/request/train_rpc/train_script":{"post":{"summary":"train_script","responses":{"default":{"description":"train_script"}},"tags":["Train","RPC (Train)"],"description":"Executes a sample script to echo the provided body as output text","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"test":{"type":"string"}}},"example":{"test":"hello"}}}}}},"/api/request/train_rpc/train_hft":{"post":{"summary":"train_hft","responses":{"default":{"description":"train_hft"}},"tags":["Train","RPC (Train)"],"description":"Executes a sample Java class to return a \"Hello\" message"}},"/api/request/train_rpc/train_template":{"post":{"summary":"train_template","responses":{"default":{"description":"train_template"}},"tags":["Train","RPC (Train)"],"description":"Renders a sample Handlebars template as HTML text field","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"surname":{"type":"string"}}},"example":{"name":"Test","surname":"Person"}}}}}},"/api/request/train_rpc/train_rule":{"post":{"summary":"train_rule","responses":{"default":{"description":"train_rule"}},"tags":["Train","RPC (Train)"],"description":"Renders a sample Handlebars template as HTML text field","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"integer"},"status":{"type":"string"}}},"example":{"value":11,"status":"A"}}}}}},"/api/file/list/sudo/{fsSystem}":{"get":{"summary":"List Root","responses":{"default":{"description":"List Root"}},"tags":["File"],"description":"Lists the files and folders on a file system root"},"parameters":[{"name":"fsSystem","in":"path","required":true,"schema":{"type":"string"},"example":"{{fsSystem}}"}]},"/api/file/list/sudo/{fsSystem}/dummy":{"get":{"summary":"List Folder","responses":{"default":{"description":"List Folder"}},"tags":["File"],"description":"Lists the files and folders on a given file system path"},"parameters":[{"name":"fsSystem","in":"path","required":true,"schema":{"type":"string"},"example":"{{fsSystem}}"}]},"/api/file/info/sudo/{fsSystem}/dummy/test.json":{"get":{"summary":"File Info","responses":{"default":{"description":"File Info"}},"tags":["File"],"description":"Returns the information for the file on a given file system path"},"parameters":[{"name":"fsSystem","in":"path","required":true,"schema":{"type":"string"},"example":"{{fsSystem}}"}]},"/api/file/sudo/{fsSystem}/dummy/test.json":{"get":{"summary":"Download File","responses":{"default":{"description":"Download File"}},"tags":["File"],"description":"Downloads the file on a given file system path"},"parameters":[{"name":"fsSystem","in":"path","required":true,"schema":{"type":"string"},"example":"{{fsSystem}}"}],"delete":{"summary":"Delete File","responses":{"default":{"description":"Delete File"}},"tags":["File"],"description":"Deletes the file a given file system path"}},"/api/file/dir/sudo/{fsSystem}/dummy":{"post":{"summary":"Create Dir - dummy","responses":{"default":{"description":"Create Dir - dummy"}},"tags":["File"],"description":"Creates a new folder on a given file system path"},"parameters":[{"name":"fsSystem","in":"path","required":true,"schema":{"type":"string"},"example":"{{fsSystem}}"}]},"/api/file/rename/sudo/{fsSystem}/dummy":{"put":{"summary":"Rename Dir - dummy","responses":{"default":{"description":"Rename Dir - dummy"}},"tags":["File"],"description":"Renames an existing folder on a given file system path","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"type":"string"}}},"example":{"to":"dummy2"}}}}},"parameters":[{"name":"fsSystem","in":"path","required":true,"schema":{"type":"string"},"example":"{{fsSystem}}"}]},"/api/file/sudo/{fsSystem}/brand/baxter.png":{"put":{"summary":"Upload File","responses":{"default":{"description":"Upload File"}},"tags":["File"],"description":"Uploads a new file on a given file system path"},"parameters":[{"name":"fsSystem","in":"path","required":true,"schema":{"type":"string"},"example":"{{fsSystem}}"}]},"/actuator/health":{"get":{"summary":"Health","tags":["Health"],"responses":{"default":{"description":"Health"}},"description":"Returns 200 if the target gateway is up and running"}},"/api/request/rpc/Ping":{"get":{"summary":"Ping","tags":["Health"],"responses":{"default":{"description":"Ping"}},"description":"Returns 200 if the target gateway is up and running"}}},"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic"}}},"tags":[{"name":"Train","description":"Training samples"},{"name":"Authentication","description":"Endpoints related to security, access validation, and user profile mapping."},{"name":"Core","description":"Foundational microservice controller layer configurations."},{"name":"CRUD (Generic)","description":"Generic platform definitions handling basic data listing, creation, and records storage."},{"name":"RPC (Generic)","description":"Remote Procedure Call executions, service integrations, and automation handlers such as AI Agents."},{"name":"CRUD (Train)","description":"Training-specific standard Create, Read, Update, and Delete actions."},{"name":"RPC (Train)","description":"Training-specific structural flows, condition templates, and logic actions."},{"name":"File","description":"System file storage administration, directory mappings, downloads, and transfers."},{"name":"Health","description":"Tags typically used for health check."}]}