Skip to content

Fixing json output#78

Merged
SeqLaz merged 1 commit intofixing_documentation_and_other_improvementsfrom
fixing_json_output
May 8, 2025
Merged

Fixing json output#78
SeqLaz merged 1 commit intofixing_documentation_and_other_improvementsfrom
fixing_json_output

Conversation

@SeqLaz
Copy link
Member

@SeqLaz SeqLaz commented May 8, 2025

This PR addresses

  • CLI Auto Docs: Update API Endpoint Display: Changed the displayed API endpoint from the local development URL (localhost/api/v1/) to the official production URL (app.qfield.cloud/api/v1/).
  • CLI: Standardize Login Log Output: Adjusted the login log output to ensure it consistently prints in JSON format when the --json argument is utilized. This provides more predictable and machine-readable output for users.

Before

Log in ninjamaster...
{
  "avatar_url": "[https://staging.qfield.cloud/api/v1/files/avatars/ninjamaster/avatar..png](https://staging.qfield.cloud/api/v1/files/avatars/ninjamaster/avatar..png)",
  "email": "ninjamaster@opengis.ch",
  "expires_at": "2025-06-07T10:57:07.580023+02:00",
  "first_name": "",
  "full_name": "",
  "last_name": "",
  "token": "vzLLlwpCi3amzm0R7qImsjfcBIK3lmsZAi31sMviGfvTF50agt2hyaCn2nQri4alAcLrdXGg1fyYp9voY3GLt9sTonR6lN4TKN5R",
  "type": "1",
  "username": "ninjamaster"
}

After

{
  "avatar_url": "[https://staging.qfield.cloud/api/v1/files/avatars/ninjamaster/avatar..png](https://staging.qfield.cloud/api/v1/files/avatars/ninjamaster/avatar..png)",
  "email": "ninjamaster@opengis.ch",
  "expires_at": "2025-06-07T10:57:07.580023+02:00",
  "first_name": "",
  "full_name": "",
  "last_name": "",
  "token": "vzLLlwpCi3amzm0R7qImsjfcBIK3lmsZAi31sMviGfvTF50agt2hyaCn2nQri4alAcLrdXGg1fyYp9voY3GLt9sTonR6lN4TKN5R",
  "type": "1",
  "username": "ninjamaster"
}

@SeqLaz SeqLaz requested a review from suricactus May 8, 2025 09:17
@suricactus suricactus changed the base branch from master to fixing_documentation_and_other_improvements May 8, 2025 09:27
@SeqLaz SeqLaz force-pushed the fixing_json_output branch from 7aa803e to 7db2142 Compare May 8, 2025 10:08
@SeqLaz SeqLaz force-pushed the fixing_documentation_and_other_improvements branch 2 times, most recently from 067b6e0 to a5ab4ff Compare May 8, 2025 10:20
@SeqLaz SeqLaz merged commit 77c060a into fixing_documentation_and_other_improvements May 8, 2025
1 check passed
@SeqLaz SeqLaz deleted the fixing_json_output branch May 8, 2025 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants