Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add API key endpoints [DEV-3793] (#510)
* Add base endpoints for Stripe integration * Add swagger docs and make it as separate swagger for admin and api * - Add Stripe webhook handling - Add subscription entity - Add chekout API guarding * Add auth routes to admin * Lint and format * swagger changes * Get rid of /admin/checkout and move it to /admin/subscriptions * Change endpoint in swagger * Fix swagger generation and add API routes * Fix swagger request body for subscription update * Fix stripeSync function * Get permissions from the M2M token * Sync updated and small clean-ups * Clean-ups * Add trial period days to subscription creation * Get also trilaing subsriptions * Get rd of Stripe naming * Small cleeanups and refactoring * Make swagger changes * Add encryption/decryption to API key * Change API logic a bit and introduce API key endpoints * MAkes linter happy * Merge remote-tracking branch 'origin/develop' into DEV-3793 * Get rid of apiKeyHash * Lint * Push swagger file * Fix required field in swagger * Fix swagger date-time * Fix name field in APIKeyCreateRequestBody * Get rid of env variables and make them constants * Move to bcrypt and HMAC API key generating * Add an ability to add several endpoints into CORS * npm run format * npm run build:swagger * Update .prettierignore * Rename API_SECRET_KEY_LENGTH to API_KEY_LENGTH * Update text * npm update * Move to UTC time comparing * npm run format --------- Co-authored-by: Ankur Banerjee <[email protected]>
- Loading branch information