{"id":41178,"date":"2026-10-22T20:42:29","date_gmt":"2026-10-22T17:42:29","guid":{"rendered":"https:\/\/lokys.lt\/?page_id=41178"},"modified":"2026-10-22T20:42:57","modified_gmt":"2026-10-22T17:42:57","slug":"reservation-api","status":"publish","type":"page","link":"https:\/\/lokys.lt\/en\/reservation-api\/","title":{"rendered":"Lokys Reservation API"},"content":{"rendered":"<p><strong>Base:<\/strong> <code>https:\/\/lokys.lt\/wp-json\/lokys\/v1<\/code><\/p>\n<p>Send POST bodies as JSON with <code>Content-Type: application\/json<\/code>.<\/p>\n<table>\n<thead>\n<tr>\n<th>Function<\/th>\n<th>Request<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Restaurant details and rules<\/td>\n<td><code>GET \/info<\/code><\/td>\n<\/tr>\n<tr>\n<td>Menu<\/td>\n<td><code>GET \/menu?lang=en<\/code> (en or lt)<\/td>\n<\/tr>\n<tr>\n<td>Available times<\/td>\n<td><code>GET \/availability?date=YYYY-MM-DD&amp;party_size=N<\/code><\/td>\n<\/tr>\n<tr>\n<td>Book<\/td>\n<td><code>POST \/reservations<\/code> \u2014 required: date, time (HH:MM), party_size (1\u2013100), name, email, phone; optional: message<\/td>\n<\/tr>\n<tr>\n<td>Cancel<\/td>\n<td><code>POST \/reservations\/cancel<\/code> \u2014 booking_id, matching email<\/td>\n<\/tr>\n<tr>\n<td>Full specification<\/td>\n<td><a href=\"https:\/\/lokys.lt\/wp-json\/lokys\/v1\/openapi.json\"><code>GET \/openapi.json<\/code><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Workflow:<\/strong> check availability \u2192 select an available_slots time \u2192 collect guest details and consent \u2192 book. Save booking_id; report returned status accurately: pending requires restaurant confirmation. Handle failures using the returned message.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Base: https:\/\/lokys.lt\/wp-json\/lokys\/v1 Send POST bodies as JSON with Content-Type: application\/json. Function Request Restaurant details and rules GET \/info Menu GET \/menu?lang=en (en or lt) Available times GET \/availability?date=YYYY-MM-DD&amp;party_size=N Book POST \/reservations \u2014 required: date, time (HH:MM), party_size (1\u2013100), name, email, phone; optional: message Cancel POST \/reservations\/cancel \u2014 booking_id, matching email Full specification GET \/openapi.json Workflow: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-41178","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/lokys.lt\/en\/wp-json\/wp\/v2\/pages\/41178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lokys.lt\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lokys.lt\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lokys.lt\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lokys.lt\/en\/wp-json\/wp\/v2\/comments?post=41178"}],"version-history":[{"count":2,"href":"https:\/\/lokys.lt\/en\/wp-json\/wp\/v2\/pages\/41178\/revisions"}],"predecessor-version":[{"id":41180,"href":"https:\/\/lokys.lt\/en\/wp-json\/wp\/v2\/pages\/41178\/revisions\/41180"}],"wp:attachment":[{"href":"https:\/\/lokys.lt\/en\/wp-json\/wp\/v2\/media?parent=41178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}