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

[dev.icinga.com #10570] /v1 returns HTML even if JSON is requested #3627

Closed
icinga-migration opened this issue Nov 8, 2015 · 7 comments

Comments

Projects
None yet
1 participant
@icinga-migration
Copy link
Member

commented Nov 8, 2015

This issue has been migrated from Redmine: https://dev.icinga.com/issues/10570

Created by formorer on 2015-11-08 17:31:06 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2016-06-15 15:50:04 +00:00)
Target Version: 2.5.0
Last Update: 2016-08-22 11:47:28 +00:00 (in Redmine)

Icinga Version: 2.4.0
Backport?: Not yet backported
Include in Changelog: 1

Hi,

endpoint /v1 should return json instead of html if the client requests json.

Changesets

2016-06-15 15:46:09 +00:00 by mfriedrich 2b47482

API: Fix that /v1 returns html if json is requested

fixes #10570
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Nov 8, 2015

Updated by gbeutner on 2015-11-08 18:31:36 +00:00

  • Assigned to set to gbeutner
  • Target Version set to 2.4.0
  • Icinga Version changed from 2 to 2
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Nov 9, 2015

Updated by mfriedrich on 2015-11-09 13:05:11 +00:00

  • Priority changed from Low to Normal
  • Assigned to deleted gbeutner
  • Target Version changed from 2.4.0 to Backlog
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented May 9, 2016

Updated by mfriedrich on 2016-05-09 11:47:36 +00:00

  • Parent Id set to 11415
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Jun 15, 2016

Updated by mfriedrich on 2016-06-15 15:48:35 +00:00

  • Status changed from New to Assigned

  • Assigned to set to mfriedrich

  • Target Version changed from Backlog to 2.5.0

    curl -k -s -u root:icinga 'https://localhost:5665/v1'

    Icinga 2Hello from Icinga 2!You are authenticated as root. Your user has the following permissions: *More information about API requests is available in the documentation.

    curl -k -s -u root:icinga -H 'Accept: application/json' 'https://localhost:5665/v1'

    {"results":[{"info":"More information about API requests is available in the documentation at http://docs.icinga.org/icinga2/latest.","permissions":["*"],"user":"root"}]}

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Jun 15, 2016

Updated by mfriedrich on 2016-06-15 15:50:04 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 2b47482.

@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Aug 8, 2016

Updated by mfriedrich on 2016-08-08 09:21:25 +00:00

  • Parent Id deleted 11415
@icinga-migration

This comment has been minimized.

Copy link
Member Author

commented Aug 22, 2016

Updated by gbeutner on 2016-08-22 11:47:28 +00:00

  • Subject changed from /v1 returns html even if json is requested to /v1 returns HTML even if JSON is requested

@icinga-migration icinga-migration added this to the 2.5.0 milestone Jan 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.