question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add an API that returns the diagram librairies versions and the server version

See original GitHub issue

Currently, we only have an HTML page https://a.kroki.io but it could be useful to have an endpoint if we want to use that information programmatically.

For instance, we could locally cache images depending on the diagram library version:

plantuml-1-2020-10/
  54cae01691d18960adccb024b0e5b01b.png

plantuml-1-2020-15/
  54cae01691d18960adccb024b0e5b01b.png

A few ideas:

  • /about
  • /version
  • /versions

Alternatively, we could also use a “status” route to check that the server is alive and we could use this opportunity to return server infos:

  • /status
  • /_status

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
llavillecommented, Jul 12, 2020

glad you like it !

0reactions
Mogzttercommented, Jul 12, 2020

Yes that’s a good idea, I took inspirations from Elasticsearch:

curl -XGET localhost:9200
{
    "name": "node",
    "cluster_name": "elasticsearch-cluster",
    "version": {
        "number": "2.3.4",
        "build_hash": "dcxbgvzdfbbhfxbhx",
        "build_timestamp": "2016-06-30T11:24:31Z",
        "build_snapshot": false,
        "lucene_version": "5.5.0"
    },
    "tagline": "You Know, for Search"
}

But your last proposal is quite nice 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

REST API and Resource Versions - Tableau Help
The API version defines a set of resource versions that ship with a given release of Tableau Server (such as 2019.4). Versions of...
Read more >
Use the Microsoft Graph API
Microsoft Graph currently supports two versions: v1.0 and beta . v1.0 includes generally available APIs. Use the v1.0 version for all production ...
Read more >
Overview - Graph API - Meta for Developers - Facebook
For create and update endpoints, the Graph API can immediately read a successfully published or updated object and return any fields supported by...
Read more >
Load the Libraries | Charts - Google Developers
This page shows how to load the Google Chart libraries. ... When we release new versions of Google Charts, some of the changes...
Read more >
GraphQL | A query language for your API
GraphQL queries always return predictable results. Apps using GraphQL are fast and stable because they control the data they get, not the server....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found