40 lines
2.4 KiB
Markdown
40 lines
2.4 KiB
Markdown
# Postman
|
|
|
|
Set `superadminPassword` in a private local Postman environment before using the
|
|
SuperAdmin login examples. Keep exported environments free of credentials and tokens.
|
|
|
|
For the Flutter migration review, start with `MOBILE-BACKEND-HANDOFF.md` and
|
|
`MOBILE-COMPATIBILITY-VALIDATION.md`. Both Mobile/Auth collections now include
|
|
**Mobile compatibility and three-stage signup**, with sanitized local response
|
|
captures in `mobile-compatibility-response-examples.json`. Public deployment
|
|
status and FCM sending are explicitly qualified in the handoff.
|
|
|
|
Import `Oudelaa-Local.postman_environment.json` and select **Oudelaa Local**.
|
|
All collections use `baseUrl = http://localhost:4000/api/v1`, including Marketplace Flutter.
|
|
Keep access tokens and credentials in your local environment; do not commit exported secrets.
|
|
|
|
- `Oudelaa-Mobile`: mobile API workflows.
|
|
- `Oudelaa-Auth-Users-Posts`: full API workflows, including administration.
|
|
- `Oudelaa-Dashboard`: dashboard workflows.
|
|
- `Oudelaa-Marketplace-Flutter`: marketplace requests with captured response examples; see `MARKETPLACE-FLUTTER.md`.
|
|
- `Oudelaa-Music-World-Flutter`: talent discovery, unified search, events, tickets, payments and courses; see `MUSIC-WORLD-FLUTTER.md`.
|
|
|
|
Run the relevant authentication request first. Existing scripts save tokens and resource IDs.
|
|
Some requests create, modify or delete data: use a dedicated test account and choose folders deliberately.
|
|
Negative tests intentionally expect errors.
|
|
|
|
## Direct video upload
|
|
|
|
In **Direct Upload & Video Processing**, set `uploadSize` to the exact local file size
|
|
and `uploadMimeType` to its MIME type. Run **Presign direct media upload**, select the
|
|
same file in the binary body of **Upload binary to S3**, then send it.
|
|
This requires configured S3 storage. The signed URL uses no bearer authentication.
|
|
Use the returned `videoStorageKey` in the existing create-post or create-reel request.
|
|
With asynchronous video processing enabled, poll the post for `processingStatus`.
|
|
Retry only failed jobs owned by your account using **Retry failed video processing**.
|
|
|
|
Regenerate maintained additions with `node scripts/sync-postman.js`.
|
|
Regenerate the captured-example collections with `node scripts/build-marketplace-postman.js` and `node scripts/build-music-world-postman.js`.
|
|
Run `npm run postman:sync` to regenerate the maintained collections and validate, or `npm run postman:validate`
|
|
to check collection structure, API prefixes and JavaScript syntax without changing files.
|