Skip to content

docs: add postman environment #77

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

Merged
merged 3 commits into from
Jun 23, 2025
Merged

Conversation

kshitij-k-osmosys
Copy link
Contributor

@kshitij-k-osmosys kshitij-k-osmosys commented Jun 17, 2025

API PR Checklist

Task Link

Osmosys Developers must include the Pinestem task link in the PR.

REST-1563

Pre-requisites

  • I have gone through the Contributing guidelines for Submitting a Pull Request (PR) and ensured that this is not a duplicate PR.
  • I have performed preliminary unit testing.
  • I have updated the required api docs as applicable.
  • I have added/updated test cases to the test suite as applicable

PR Details

PR details have been updated as per the given format (see below)

  • PR title adheres to the format specified in guidelines (e.g., feat: add admin login endpoint)
  • Description has been added
  • Related changes have been added (optional)
  • Screenshots have been added (optional)
  • Query request and response examples have been added (as applicable, in case added or updated)
  • Documentation changes have been listed (as applicable)
  • Test suite output is added (as applicable)
  • Pending actions have been added (optional)
  • Any other additional notes have been added (optional)

Additional Information

  • Appropriate label(s) have been added (ready for review should be added if the PR is ready to be reviewed)
  • Assignee(s) and reviewer(s) have been added (optional)

Description:

Add postman environment

Documentation changes:

Update usage guide with clearer steps to extract auth token

Summary by CodeRabbit

  • Chores

    • Updated API request URLs in the Postman collection to use a configurable base URL variable instead of a hardcoded localhost address.
    • Added a new Postman environment file with placeholders for authentication token and base URL variables.
  • Documentation

    • Improved and clarified instructions for obtaining and using the Microsoft authentication token.
    • Added a link to the new Postman Environment file in the usage guide.

@kshitij-k-osmosys kshitij-k-osmosys self-assigned this Jun 17, 2025
@kshitij-k-osmosys kshitij-k-osmosys added documentation Improvements or additions to documentation Ready for review Ready for review labels Jun 17, 2025
Copy link
Contributor

coderabbitai bot commented Jun 17, 2025

Walkthrough

The Postman collection was updated to use a configurable {{base_url}} variable instead of hardcoded localhost URLs. A new Postman environment file was added to define base_url and auth-token variables. The usage guide documentation was revised for clarity, especially on extracting authentication tokens, and now includes a link to the new environment file.

Changes

File(s) Change Summary
apps/api/Transcript Summarization.postman_collection.json Replaced hardcoded "localhost:3000" URLs with templated {{base_url}}/graphql in all requests.
apps/api/Transcript Summarization.postman_environment.json Added new Postman environment file defining base_url and auth-token variables.
apps/api/docs/usage-guide.md Clarified token extraction instructions and added a link to the new Postman environment file.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Postman
    participant API

    User->>Postman: Selects "Transcript Summarization" environment
    User->>Postman: Sends API request (uses {{base_url}} and auth-token)
    Postman->>API: Makes request to {{base_url}}/graphql with Bearer token
    API-->>Postman: Returns response
    Postman-->>User: Displays API response
Loading

Possibly related PRs

  • #52: Refines and builds upon the usage guide introduced in this PR.
  • #38: Also modifies the Postman collection, focusing on Authorization headers and URL paths.
  • #50: Enhances the Postman collection with improved request structure and placeholder tokens.

Suggested reviewers

  • xixas

Poem

In burrows deep, a rabbit peers,
At Postman files, it hops and cheers!
No more localhost, URLs set free,
With tokens and guides, as clear as can be.
Hop, hop, hooray—
API tests made easy today!
🐇✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (3)
apps/api/Transcript Summarization.postman_environment.json (2)

6-10: Add variable descriptions for clarity.
Consider adding a "description" field to the auth-token entry (e.g., “Replace with your Microsoft access_token from the Portal login response”) to guide users when replacing the placeholder.


12-15: Add variable descriptions and examples.
For base_url, include a "description" (e.g., “Base URL of the Transcript Summarization API, e.g., https://api.example.com”) so users know what value to supply.

apps/api/docs/usage-guide.md (1)

86-89: Include Postman Environment link and refine its path.
Great addition of the environment file link. For consistency with the collection link, simplify the relative path:

- - [Postman Environment](./../Transcript%20Summarization.postman_environment.json)
+ - [Postman Environment](../Transcript%20Summarization.postman_environment.json)
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 20c4b8b and 28b74c6.

📒 Files selected for processing (3)
  • apps/api/Transcript Summarization.postman_collection.json (5 hunks)
  • apps/api/Transcript Summarization.postman_environment.json (1 hunks)
  • apps/api/docs/usage-guide.md (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Build
  • GitHub Check: build
🔇 Additional comments (8)
apps/api/Transcript Summarization.postman_environment.json (2)

1-4: Environment file structure is valid.
The JSON schema, id, name, and scope fields align with Postman's export format.


18-21: Export metadata is correct.
The _postman_exported_at timestamp and Postman version reflect a recent export.

apps/api/Transcript Summarization.postman_collection.json (5)

95-98: Templatized base_url in File Upload — Success.
The hardcoded endpoint is correctly replaced with {{base_url}}/graphql in both raw and host.


187-190: Templatized base_url in File Upload — No Attachments.
Consistent use of the environment variable ensures users can configure their API endpoint dynamically.


267-270: Templatized base_url in Fetch All Summaries — Success.
Both raw and host now correctly reference {{base_url}}/graphql.


334-337: Templatized base_url in Fetch All Summaries — Unauthorized.
The change aligns with the new Postman environment variables.


401-404: Templatized base_url in Fetch All Summaries — Bad Request.
All instances of the fixed URL have been replaced, ensuring full collection consistency.

apps/api/docs/usage-guide.md (1)

76-79: Clarified DevTools instructions for token retrieval.
The added steps to open browser developer tools and navigate to the Network tab will help users locate and extract the access_token more reliably.

@osm-vishnukyatannawar osm-vishnukyatannawar merged commit e261d97 into main Jun 23, 2025
6 checks passed
@osm-vishnukyatannawar osm-vishnukyatannawar deleted the docs/postman-collection branch June 23, 2025 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Ready for review Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants