Notifications
Clear all

Confusing api versionig  

  RSS
Cicicok
(@cicicok)
Active Member
Confusing api versionig

I observed that API endpoint

/api/version

returns different values on different printers. For example PrusaLink for RaspberryPi returns 0.9.0-legacy

https://github.com/prusa3d/Prusa-Link/blob/ee1a1c3fe4cb333d6d4f786f8b35d6ed769834da/prusa/link/web/main.py#L245

Even though it supports the new V1 endpoints.

XL at somepoint reported 0.1

https://github.com/home-assistant-libs/pyprusalink/pull/25#issue-1516593136

And MINI with non-V1 endpoints at somepoint reported >2.0.0

It is very confusing. Can someone clarify whan this value even means?

P.S. can somebody post response from /api/version endpoint including printer model and firmware version?

Posted : 07/11/2023 8:23 am
_KaszpiR_
(@_kaszpir_)
Prominent Member
RE: Confusing api versionig

Prusa Mini+ with 4.4.1+4194 firmware on it (prettiefied json for readability):

{
    "api": "2.0.0",
    "server": "2.1.2",
    "text": "PrusaLink MINI",
    "hostname": "PrusaMINI"
}

 

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 08/11/2023 7:28 am
Cicicok liked
_KaszpiR_
(@_kaszpir_)
Prominent Member
RE:

One more thing, see https://github.com/prusa3d/Prusa-Link-Web/tree/master/spec and you should get better idea what is going on and what given printer is capable of.
Prusa Mini+ with that 4.4.1 firmware uses 'openapi-legacy' so the version can be high, but printers can use also other  newer API (spec without legacy word).

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 08/11/2023 7:37 am
Cicicok
(@cicicok)
Active Member
Topic starter answered:
RE: Confusing api versionig

 

Posted by: @_kaszpir_

One more thing, see https://github.com/prusa3d/Prusa-Link-Web/tree/master/spec and you should get better idea what is going on and what given printer is capable of.
Prusa Mini+ with that 4.4.1 firmware uses 'openapi-legacy' so the version can be high, but printers can use also other  newer API (spec without legacy word).

Yes, I know about that. I thought, that printers with legacy API will use different api version number then V1 API. This is what I'm trying to figure out.

Posted : 08/11/2023 7:43 am
Share: