GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Backup and Health Endpoints · Issue #528 · ArcadeData/arcadedb

Backup and Health Endpoints #528

New issue
Copy link
New issue
Copy link
Closed
Closed
Backup and Health Endpoints#528
Copy link
Assignees
lvca
Labels
questionFurther information is requested
Milestone
22.9.1

Description

@gramian
gramian
opened on Sep 22, 2022
Issue body actions

Dear Developers,

I was thinking the following two HTTP endpoints could be useful (at least for me):

  1. Backup a database: /api/v1/backup/{database} (as a shortcut alternative for the BACKUP DATABASE [ <backup-file-url> ] command)
  2. Check status of server: /api/v1/health (returning a simple OK)

Thank you for considering this

Activity

  1. lvca commented on Sep 22, 2022

    @lvca
    lvca
    on Sep 22, 2022
    Member
    More actions

    @gramian We try to keep the API strict to the minimum, to simplify things. So whatever you can do with SQL (or any supported language), it's better to use it instead of creating one API per command.

    About /health, you could use /server to return if the server is ok. If runs distributed, it returns the cluster configuration, otherwise just {}

  2. lvca
    closed this as completedon Sep 22, 2022
  3. lvca
    self-assigned this
    on Sep 22, 2022
  4. lvca
    added
    questionFurther information is requested
    on Sep 22, 2022
  5. gramian commented on Sep 22, 2022

    @gramian
    gramian
    on Sep 22, 2022
    CollaboratorAuthor
    More actions

    OK, I understand this approach.

    Thanks for clarifying the use of /server.

  6. gramian commented on Sep 25, 2022

    @gramian
    gramian
    on Sep 25, 2022
    CollaboratorAuthor
    More actions

    @lvca
    I have a brief follow-up question on the server endpoint: Using a GET request I get an empty response, but when using a POST request with empty payload, I get the empty JSON {} returned. Am I doing something wrong, is this working correctly, or should the server endpoint actually be a POST endpoint? I tested this using curl.

  7. lvca commented on Sep 26, 2022

    @lvca
    lvca
    on Sep 26, 2022
    Member
    More actions

    @gramian you're totally right, the command handler is registered as a POST, but by looking at the code there are zero not-idempotent requests to the databases or server, so it could totally be a GET.

    I guess the first idea was to put there some commands to manipulate the server/cluster.

    I'm going to modify the current POST into a GET, updated the docs, and in the case we're going to provide new methods to change server settings, we could have a proper POST. It's going to be into 22.9.1 which will be released this week.

  8. lvca
    added
    bug
    on Sep 26, 2022
  9. lvca
    added this to the 22.9.1 milestone on Sep 26, 2022
  10. lvca
    added a commit that references this issue on Sep 26, 2022

    Transformed POST /server command into a GET

    7412bb7
  11. lvca commented on Sep 26, 2022

    @lvca
    lvca
    on Sep 26, 2022
    Member
    More actions

    Done, it's in the main branch.

  12. tae898
    added a commit that references this issue on Jun 28, 2026

    Transformed POST /server command into a GET

    a1131cb
  13. mergify
    added a commit that references this issue on Jul 26, 2026

    build(deps): bump org.apache.maven.plugins:maven-jar-plugin from 3.5.…

    8163a69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

questionFurther information is requested

Type

No type

Projects

No projects

    Milestone

    • 22.9.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.