serviceΒΆ

Web service exposing endpoints for a mult-user aiAgent interface. This is built with python Flask library, which is intended to be fronted by another production level serber like Nginx or Apache.

Get a list of user storages json.

    @app.route("/<username>/storage/",
      methods=["GET"])

Get a list of document elements in json. Can be filtered with query params added.

    @app.route("/<username>/storage/<storename>/",
      methods=["GET"])

Get the document details for the document specified in url.

    @app.route("/<username>/storage/<storename>/<docid>",
      methods=["GET"

Form POST with multi file uploads to the base store name. The form should put the file content in the form field with id of files.

    @app.route("/<username>/storage/<storename>/",
      methods=["POST"])

Form POST of a single document contents embedded in the body of the POST or PUT directly to the docid of the url

    @app.route("/<username>/storage/<storename>/<docid>",
      methods=["POST", "PUT"])

Delete the document from the storage named. Will delete the document and chunk elements from it in the docustore, it will also delete the contents in the agent and smnet stores.

    @app.route("/<username>/storage/<storename>/<docid>",
      methods=["DELETE"])