Step-by-Step Guide to Authorize Swagger with Super Admin Details

Created by Lakshmi Bhavani, Modified on Mon, 5 Aug at 1:37 PM by Lakshmi Bhavani

Step 1: Navigate to Swagger URL

  1. Open your web browser.
  2. Enter the Swagger URL for your Time Champ Admin Portal:
    https://[your-timechamp-admin-portal-address]/swagger/swagger/index.html
  3. Replace [your-timechamp-admin-portal-address] with your actual Time Champ Admin Portal address.

Step 2: Log in to Swagger

  1. Once on the Swagger page, log in with your credentials if prompted.



Step 3: Authorize Swagger with Super Admin Details

  1. Go to the Auth Section:

    • Locate and click on the "Auth" section in the Swagger UI.
    • Find the endpoint /api/login.
  2. Try It Out:

    • Click on the "Try It Out" button next to /api/login.



Enter Admin Credentials:

  • In the input fields provided, enter your Super Admin Email ID and Password.
    • Admin Mail ID: your-admin-email@example.com
    • Password: your-admin-password



Execute:

  • After entering the credentials, click the "Execute" button.

Retrieve New Auth Token:

  • Once the execution is complete, a new AuthToken will be displayed in the response section.



Step 4: Update Auth Token

  1. Download New Token:

    • Copy the new AuthToken generated in the previous step.
  2. Remove Previous Token:

    • Navigate to the section where your previous token is stored.
    • Remove the old token.
  3. Add New Token:

    • Replace the old token with the newly copied AuthToken.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article