{"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-11-15T20:25:51","modified_gmt":"2026-11-15T18:25:51","slug":"reservation-api","status":"publish","type":"page","link":"https:\/\/lokys.lt\/en\/reservation-api\/","title":{"rendered":"Lokys Reservation API"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"41178\" class=\"elementor elementor-41178\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3005c54a e-flex e-con-boxed e-con e-parent\" data-id=\"3005c54a\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5343ad78 elementor-widget elementor-widget-text-editor\" data-id=\"5343ad78\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>Base:<\/strong> <code>https:\/\/lokys.lt\/wp-json\/lokys\/v1<\/code><\/p>\r\n<p>Send POST bodies as JSON with <code>Content-Type: application\/json<\/code>.<\/p>\r\n<table><thead><tr><th>Function<\/th><th>Request<\/th><\/tr><\/thead><tbody>\r\n<tr><td>Restaurant details and rules<\/td><td><code>GET \/info<\/code><\/td><\/tr>\r\n<tr><td>Menu<\/td><td><code>GET \/menu?lang=en<\/code> (en or lt)<\/td><\/tr>\r\n<tr><td>Available times<\/td><td><code>GET \/availability?date=YYYY-MM-DD&amp;party_size=N<\/code><\/td><\/tr>\r\n<tr><td>Book<\/td><td><code>POST \/reservations<\/code> \u2014 required: date, time (HH:MM), party_size (1\u2013100), name, email, phone; optional: message<\/td><\/tr>\r\n<tr><td>Cancel<\/td><td><code>POST \/reservations\/cancel<\/code> \u2014 booking_id, matching email<\/td><\/tr>\r\n<tr><td>Full specification<\/td><td><a href=\"https:\/\/lokys.lt\/wp-json\/lokys\/v1\/openapi.json\"><code>GET \/openapi.json<\/code><\/a><\/td><\/tr>\r\n<\/tbody><\/table>\r\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>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","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":5,"href":"https:\/\/lokys.lt\/en\/wp-json\/wp\/v2\/pages\/41178\/revisions"}],"predecessor-version":[{"id":41968,"href":"https:\/\/lokys.lt\/en\/wp-json\/wp\/v2\/pages\/41178\/revisions\/41968"}],"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}]}}