Compare commits
3
Commits
80d734e7d6
...
c1fa08fed0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c1fa08fed0 | ||
|
|
ec41e2b02d | ||
|
|
bbc1b6c68a |
No files matched your search
@@ -0,0 +1,4 @@
|
|||||||
|
### list custom fields
|
||||||
|
GET {{clickup_baseurl}}/list/{{clickup_list_id}}/field?include_applied_objects=true
|
||||||
|
Authorization: {{clickup_api_token}}
|
||||||
|
|
||||||
Generated
+212
-206
File diff suppressed because it is too large.
Load diff
+15
-3
@@ -41,7 +41,11 @@
|
|||||||
"Scope": "api"
|
"Scope": "api"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"clickup_baseurl": "https://api.clickup.com/api/v2",
|
||||||
|
"clickup_api_token": "abcdef123456789",
|
||||||
|
"clickup_list_id": "12345",
|
||||||
|
"clickup_template_id": "t-12345"
|
||||||
},
|
},
|
||||||
"staging": {
|
"staging": {
|
||||||
"Security": {
|
"Security": {
|
||||||
@@ -85,7 +89,11 @@
|
|||||||
"Scope": "api"
|
"Scope": "api"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"clickup_baseurl": "https://api.clickup.com/api/v2",
|
||||||
|
"clickup_api_token": "abcdef123456789",
|
||||||
|
"clickup_list_id": "12345",
|
||||||
|
"clickup_template_id": "t-12345"
|
||||||
},
|
},
|
||||||
"prod": {
|
"prod": {
|
||||||
"Security": {
|
"Security": {
|
||||||
@@ -129,6 +137,10 @@
|
|||||||
"Scope": "api"
|
"Scope": "api"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"clickup_baseurl": "https://api.clickup.com/api/v2",
|
||||||
|
"clickup_api_token": "abcdef123456789",
|
||||||
|
"clickup_list_id": "12345",
|
||||||
|
"clickup_template_id": "t-12345"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -48,6 +48,7 @@ class IndexController extends AbstractController
|
|||||||
#[Route(
|
#[Route(
|
||||||
path: '/bookings/create',
|
path: '/bookings/create',
|
||||||
name: 'app_booking_create',
|
name: 'app_booking_create',
|
||||||
|
methods: ['GET'],
|
||||||
)]
|
)]
|
||||||
public function index(#[MapQueryString] ?BookingQueryParams $params): Response
|
public function index(#[MapQueryString] ?BookingQueryParams $params): Response
|
||||||
{
|
{
|
||||||
@@ -70,10 +71,16 @@ class IndexController extends AbstractController
|
|||||||
* Optionally accepts an agency code parameter. If provided and valid, the
|
* Optionally accepts an agency code parameter. If provided and valid, the
|
||||||
* corresponding agency ID is stored in the booking. If not provided or invalid,
|
* corresponding agency ID is stored in the booking. If not provided or invalid,
|
||||||
* defaults to agency code '0001'.
|
* defaults to agency code '0001'.
|
||||||
|
*
|
||||||
|
* POST-only on purpose: this endpoint is neither safe nor idempotent. It resets the
|
||||||
|
* caller's booking session and forces an uncached BusPro availability call plus a CMS
|
||||||
|
* roundtrip, so it must not be reachable by anything that speculatively fetches URLs
|
||||||
|
* (prefetchers, link unfurlers, mail scanners, crawlers). The loading page posts to it.
|
||||||
*/
|
*/
|
||||||
#[Route(
|
#[Route(
|
||||||
path: '/bookings/create/init',
|
path: '/bookings/create/init',
|
||||||
name: 'app_booking_create_init',
|
name: 'app_booking_create_init',
|
||||||
|
methods: ['POST'],
|
||||||
)]
|
)]
|
||||||
public function init(Request $request, #[MapQueryString] ?BookingQueryParams $params): Response
|
public function init(Request $request, #[MapQueryString] ?BookingQueryParams $params): Response
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="flex-1 flex items-center justify-center"
|
<div class="flex-1 flex items-center justify-center"
|
||||||
hx-get="{{ path('app_booking_create_init', {
|
hx-post="{{ path('app_booking_create_init', {
|
||||||
date_id: params.dateId,
|
date_id: params.dateId,
|
||||||
hotel_id: params.hotelId,
|
hotel_id: params.hotelId,
|
||||||
agency: params.agency,
|
agency: params.agency,
|
||||||
|
|||||||
Reference in new issue
Block a user