Skip to content

bug: Swagger reference the wrong URL for SCIM endpoints #24736

@Cjkjvfnby

Description

@Cjkjvfnby

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When I try to use SCIM endpoint at swagger UI on my instance the URL is not the right one:

curl -X 'GET' \
  'https://instance/api/v2/scim/v2/ServiceProviderConfig' \
  -H 'accept: application/scim+json'

The correct URL is https://instance/scim/v2/ServiceProviderConfig, without api/v2

Also the Coder Assist bot provides the wrong URL in its responses (and eventually the correct one as well).

Relevant Log Output

Expected Behavior

Swagger UI has correct links to SCIM

Steps to Reproduce

  1. Setup Coder with swagger
  2. Open /swagger page
  3. Authenticate on the top of the page
  4. Find scim entry for example /scim/v2/ServiceProviderConfig
  5. Use "try it"
  6. Check Request URL

Environment

Additional Context

The issue occurs consistently

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions