Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TECH: Swagger UI "Try it out" Feature funktioniert nicht #2467

Closed
Tracked by #301
mtnstar opened this issue Mar 7, 2024 · 1 comment · Fixed by #2552
Closed
Tracked by #301

TECH: Swagger UI "Try it out" Feature funktioniert nicht #2467

mtnstar opened this issue Mar 7, 2024 · 1 comment · Fixed by #2552

Comments

@mtnstar
Copy link
Member

mtnstar commented Mar 7, 2024

Aktuelles Verhalten

Seit dem Ausbau der JSON:API yaml spec funktioniert das Swagger UI nicht mehr

image

die richtige URL kann nicht mehr ausgewählt werden.

Gewünschtes Verhalten

Swagger UI sollte wieder funktionieren als Tool um das API zu testen

Schritte zu reproduzieren

Zugriff auf api-docs/index.html der gewünschten Hitobito Instanz

Wann ist der Fehler aufgetreten?

No response

hitobito version

No response

Organisation

No response

Screenshots, weiterer Kontext

  • Die URL wird im Gem aus Rails.application.routes.default_url_options zusammengesetzt, was wir aktuell nicht befüllen.
  • Es ist unklar ob es weitere Auswirkungen hat wenn wir diese default_url_options setzen
  • Wenn man diese einfach mal setzt (in development.rb und production.rb natürlich unterschiedlich), dann kann man API requests absetzen, aber diese (z.B. /people) laufen in 500-Fehler
    • Wenn man nicht eingeloggt ist, sollte nicht ein 500er sondern ein 401 zurückkommen
    • Wenn man eingeloggt ist, sollte nicht ein 500er sondern ein 200 zurückkommen

ToDos

No response

@carlobeltrame carlobeltrame changed the title TECH: Swagger UI funktioniert nicht mehr TECH: Swagger UI Try it out Feature funktioniert nicht Mar 14, 2024
@carlobeltrame carlobeltrame changed the title TECH: Swagger UI Try it out Feature funktioniert nicht TECH: Swagger UI "Try it out" Feature funktioniert nicht Mar 14, 2024
@daniel-illi daniel-illi self-assigned this Apr 5, 2024
@daniel-illi daniel-illi removed their assignment Apr 8, 2024
@amaierhofer amaierhofer self-assigned this Apr 9, 2024
@sykesonrocks
Copy link
Collaborator

Die "Try it out" Funktion funktioniert wieder.

@sykesonrocks sykesonrocks removed their assignment Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants