-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/on edit functionality #54
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
Changes from 2 commits
2cd86cf
1483af6
04344cd
c23ff4b
d1c9d08
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,36 +1,36 @@ | ||
| meta { | ||
| name: UpdateFieldRuleBook | ||
| name: EditTimeRange | ||
| type: http | ||
| seq: 8 | ||
| seq: 1 | ||
| } | ||
|
|
||
| patch { | ||
| url: {{development}}/fields/{{fieldId}}/rule-books/{{ruleBookId}} | ||
| url: http://localhost:3000/fields/FIELD_ID/rule-books/RULE_BOOK_ID | ||
| body: json | ||
| auth: bearer | ||
| auth: none | ||
| } | ||
|
|
||
| headers { | ||
| Authorization: Bearer YOUR_TOKEN | ||
| Content-Type: application/json | ||
| ~Authorization: Bearer {{token}} | ||
| } | ||
|
|
||
| auth:bearer { | ||
| token: {{token}} | ||
| } | ||
|
|
||
| body:json { | ||
| { | ||
| "effectiveDate": "2026-06-01", | ||
| "ruleName": "Early Bird Morning Special", | ||
| "slotSelectionType": "timeRange", | ||
| "actionType": "fixedPrice", | ||
| "value": 1000, | ||
| "activeDays": [ | ||
| "sunday" | ||
| "monday", | ||
| "wednesday", | ||
| "friday" | ||
| ], | ||
| "timeRange": { | ||
| "startTime": "06:00", | ||
| "endTime": "11:00" | ||
| } | ||
| }, | ||
| "isActive": true | ||
| } | ||
| } | ||
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| vars { | ||
| development: http://localhost:3000 | ||
| fieldId: 1bdfdb6b-41d8-4e39-a38c-398bdca0ba39 | ||
| token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIzMDIyMWFkOS0zZjgyLTQzZDgtYjQ1OS1kZGYyMGY2YzgzOTAiLCJlbWFpbCI6bnVsbCwibW9iaWxlTnVtYmVyIjoiOTg2Nzc1NDczOCIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTc3ODMwMDMyOSwiZXhwIjoxNzc4Mzg2NzI5fQ.GHeUq7DIOmimuj6eBVFtFq6HiFXf9oSQP8RS0pW1sCU | ||
| fieldId: 80607ec4-9caf-4e38-a7d2-337e5c2343bb | ||
| token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxNzQ5MWQxMy1hMGEwLTRlNjctYTg1OC0yN2FlYWZmYTQxMTgiLCJlbWFpbCI6bnVsbCwibW9iaWxlTnVtYmVyIjoiOTg2Nzc1NDczOCIsInJvbGUiOiJhZG1pbiIsImlhdCI6MTc3ODQyNDYxOCwiZXhwIjoxNzc4NTExMDE4fQ.dhztQY8hLUCCXt_MRx4TcCp9O_7SBuw6tZqJONjVLis | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove committed bearer token and rotate it immediately. Line 4 contains a real credential in source control. This is a secret/PII exposure risk (and potentially privileged access). Revoke/rotate the token now, and keep only a placeholder in tracked env files while storing the real value in an untracked local secret source. Suggested tracked-file change- token: <hardcoded-jwt>
+ token: __SET_LOCALLY_DO_NOT_COMMIT__🤖 Prompt for AI Agents |
||
| ruleBookSpecificSlotId: 2e78fc78-08e4-423e-a8ef-5ff10c59f1a7 | ||
| ruleBookAllSlotId: 81e212b2-dd86-47db-bb96-8a163b615d61 | ||
| ruleBookTimeSlotId: 4aebf2ac-9651-4450-8968-812cd487261e | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.