Home Forums Miria forums – EN Miria : How To ? How to use REST API in Miria 3.14.0.10+

Tagged: ,

  • This topic is empty.
Viewing 0 reply threads
  • Author
    Posts
    • #11494
      Jean-Marie MenesesJean-Marie Meneses
      Participant

        To be able to use the RestAPI in Miria 3.14.0.10+, please edit the file $MIRIA_HOME/restapi/.env
        Add the lines:
        # If the databases are defined in the .env file, set to True
        LOAD_DATABASES_FROM_ENV=True

        If you have multiple ADA databases (ADA, DEMO,…), add the dbs in the variable ADA_DATABASE_ALIASES:
        ADA_DATABASE_ALIASES=ADA,DEMO
        Add one line xxx_DATABASE_URL per database with xxx= db name:
        ADA_DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5433/ADA
        DEMO_DATABASE_URL=postgres://postgres:postgres@127.0.0.1:5433/DEMO

        If your Miria server is a linux, to be able to use the swagger, add also:
        SERVER_URL_VIRTUAL_DIR=”/restapi”

    Viewing 0 reply threads
    • You must be logged in to reply to this topic.