[TRNSPRTPCE-776] Swagger broken in stable/potassium and stable/chlorine Created: 23/Jan/24  Updated: 25/Jan/24  Resolved: 25/Jan/24

Status: Resolved
Project: transportpce
Component/s: None
Affects Version/s: Chlorine, Potassium
Fix Version/s: Potassium

Type: Bug Priority: Medium
Reporter: Joakim Törnqvist Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:
$ mvn -version
Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /opt/maven
Java version: 17.0.9, vendor: Private Build, runtime: /usr/lib/jvm/java-17-openjdk-amd64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-87-generic", arch: "amd64", family: "unix"

Attachments: PNG File 5.2.0.png     PNG File 6.4.0.png     PNG File 7.3.1.png     PNG File 8.1.0.png    

 Description   

I've tested these branches, some work, some don't:

 

branch Version swagger thumbnail
stable/sulfur 5.2.0  
stable/chlorine 6.4.0
stable/argon 7.3.1
stable/potassium 8.1.0

How to test

Compile source and start TransportPCE

The following commands where executed using the branches stable/sulfur, stable/chlorine, stable/argon and stable/potassium.

  1. checkout <branch>
  2. mvn clean install -DskipTests
  3. cd karaf/target/assembly/bin
  4. ./karaf
  5. Navigate to http://<server>:8181/apidoc/explorer/index.html

Note: <server> refers to a remote machine relative to the browser in step 5.



 Comments   
Comment by Gilles Thouenon [ 23/Jan/24 ]

Hi Joakim,
Thank you for reporting this issue. Actually, swagger works correctly in Potassium, but be careful because the restconf url has changed.
The new one:

http://<server>:8181/openapi/explorer/index.html

Comment by Gilles Thouenon [ 25/Jan/24 ]

swagger works correctly in Potassium, but be careful because the restconf url has changed.
The new one:

http://<server>:8181/openapi/explorer/index.html

Generated at Wed Feb 07 20:44:04 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.