Skip to content

replace RapidAPI with hardcode data#48

Open
Natkuma01 wants to merge 2 commits intomainfrom
AI28/newLayout-role-metadata
Open

replace RapidAPI with hardcode data#48
Natkuma01 wants to merge 2 commits intomainfrom
AI28/newLayout-role-metadata

Conversation

@Natkuma01
Copy link
Contributor

Jira AI-28 Role Metadata: https://toniamontgomery41.atlassian.net/browse/AI-35

Role Mappings:

  • Frontend Developer → JavaScript questions
  • Backend Developer → REST APIs questions
  • DevOps Developer → Docker questions
  • Data Analyst → SQL questions
    (this is add inside the doc folder)

Added RapidApiService in lib/api/rapidApi.ts

  • Updated session store to fetch from API instead of data/flashcards.json
  • Added environment variable NEXT_PUBLIC_RAPIDAPI_KEY
  • Maintained existing flashcard UI/UX

Note: the Rapid API is a free plan, there are limited testing/fetching. If you see 429 error, need to renew another X-RapidAPI-Key and replace in the .env.local file.
Rapid API: https://rapidapi.com/bilgisamapi-bilgisamapi-default/api/generate-job-interview-questions-ai-quick-assess/playground/apiendpoint_7abfb41e-2912-4391-9ab2-254265d38ed8

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