├── CODE_OF_CONDUCT.md ├── LICENSE ├── LICENSE-CODE ├── README.md ├── SECURITY.md ├── contoso-real-estate-incomplete ├── .gitignore ├── README.md ├── get-listings.js ├── listings.json ├── logo.png ├── package-lock.json ├── package.json └── server.js └── contoso-real-estate ├── .gitignore ├── .vscode └── launch.json ├── README.md ├── ai-plugin.json ├── get-listings.js ├── listings.json ├── logo.png ├── openapi.yaml ├── package-lock.json ├── package.json └── server.js /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Microsoft Open Source Code of Conduct 2 | 3 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). 4 | 5 | Resources: 6 | 7 | - [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/) 8 | - [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) 9 | - Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns 10 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Attribution 4.0 International 2 | 3 | ======================================================================= 4 | 5 | Creative Commons Corporation ("Creative Commons") is not a law firm and 6 | does not provide legal services or legal advice. Distribution of 7 | Creative Commons public licenses does not create a lawyer-client or 8 | other relationship. Creative Commons makes its licenses and related 9 | information available on an "as-is" basis. Creative Commons gives no 10 | warranties regarding its licenses, any material licensed under their 11 | terms and conditions, or any related information. Creative Commons 12 | disclaims all liability for damages resulting from their use to the 13 | fullest extent possible. 14 | 15 | Using Creative Commons Public Licenses 16 | 17 | Creative Commons public licenses provide a standard set of terms and 18 | conditions that creators and other rights holders may use to share 19 | original works of authorship and other material subject to copyright 20 | and certain other rights specified in the public license below. The 21 | following considerations are for informational purposes only, are not 22 | exhaustive, and do not form part of our licenses. 23 | 24 | Considerations for licensors: Our public licenses are 25 | intended for use by those authorized to give the public 26 | permission to use material in ways otherwise restricted by 27 | copyright and certain other rights. Our licenses are 28 | irrevocable. Licensors should read and understand the terms 29 | and conditions of the license they choose before applying it. 30 | Licensors should also secure all rights necessary before 31 | applying our licenses so that the public can reuse the 32 | material as expected. Licensors should clearly mark any 33 | material not subject to the license. This includes other CC- 34 | licensed material, or material used under an exception or 35 | limitation to copyright. More considerations for licensors: 36 | wiki.creativecommons.org/Considerations_for_licensors 37 | 38 | Considerations for the public: By using one of our public 39 | licenses, a licensor grants the public permission to use the 40 | licensed material under specified terms and conditions. If 41 | the licensor's permission is not necessary for any reason--for 42 | example, because of any applicable exception or limitation to 43 | copyright--then that use is not regulated by the license. Our 44 | licenses grant only permissions under copyright and certain 45 | other rights that a licensor has authority to grant. Use of 46 | the licensed material may still be restricted for other 47 | reasons, including because others have copyright or other 48 | rights in the material. A licensor may make special requests, 49 | such as asking that all changes be marked or described. 50 | Although not required by our licenses, you are encouraged to 51 | respect those requests where reasonable. More_considerations 52 | for the public: 53 | wiki.creativecommons.org/Considerations_for_licensees 54 | 55 | ======================================================================= 56 | 57 | Creative Commons Attribution 4.0 International Public License 58 | 59 | By exercising the Licensed Rights (defined below), You accept and agree 60 | to be bound by the terms and conditions of this Creative Commons 61 | Attribution 4.0 International Public License ("Public License"). To the 62 | extent this Public License may be interpreted as a contract, You are 63 | granted the Licensed Rights in consideration of Your acceptance of 64 | these terms and conditions, and the Licensor grants You such rights in 65 | consideration of benefits the Licensor receives from making the 66 | Licensed Material available under these terms and conditions. 67 | 68 | 69 | Section 1 -- Definitions. 70 | 71 | a. Adapted Material means material subject to Copyright and Similar 72 | Rights that is derived from or based upon the Licensed Material 73 | and in which the Licensed Material is translated, altered, 74 | arranged, transformed, or otherwise modified in a manner requiring 75 | permission under the Copyright and Similar Rights held by the 76 | Licensor. For purposes of this Public License, where the Licensed 77 | Material is a musical work, performance, or sound recording, 78 | Adapted Material is always produced where the Licensed Material is 79 | synched in timed relation with a moving image. 80 | 81 | b. Adapter's License means the license You apply to Your Copyright 82 | and Similar Rights in Your contributions to Adapted Material in 83 | accordance with the terms and conditions of this Public License. 84 | 85 | c. Copyright and Similar Rights means copyright and/or similar rights 86 | closely related to copyright including, without limitation, 87 | performance, broadcast, sound recording, and Sui Generis Database 88 | Rights, without regard to how the rights are labeled or 89 | categorized. For purposes of this Public License, the rights 90 | specified in Section 2(b)(1)-(2) are not Copyright and Similar 91 | Rights. 92 | 93 | d. Effective Technological Measures means those measures that, in the 94 | absence of proper authority, may not be circumvented under laws 95 | fulfilling obligations under Article 11 of the WIPO Copyright 96 | Treaty adopted on December 20, 1996, and/or similar international 97 | agreements. 98 | 99 | e. Exceptions and Limitations means fair use, fair dealing, and/or 100 | any other exception or limitation to Copyright and Similar Rights 101 | that applies to Your use of the Licensed Material. 102 | 103 | f. Licensed Material means the artistic or literary work, database, 104 | or other material to which the Licensor applied this Public 105 | License. 106 | 107 | g. Licensed Rights means the rights granted to You subject to the 108 | terms and conditions of this Public License, which are limited to 109 | all Copyright and Similar Rights that apply to Your use of the 110 | Licensed Material and that the Licensor has authority to license. 111 | 112 | h. Licensor means the individual(s) or entity(ies) granting rights 113 | under this Public License. 114 | 115 | i. Share means to provide material to the public by any means or 116 | process that requires permission under the Licensed Rights, such 117 | as reproduction, public display, public performance, distribution, 118 | dissemination, communication, or importation, and to make material 119 | available to the public including in ways that members of the 120 | public may access the material from a place and at a time 121 | individually chosen by them. 122 | 123 | j. Sui Generis Database Rights means rights other than copyright 124 | resulting from Directive 96/9/EC of the European Parliament and of 125 | the Council of 11 March 1996 on the legal protection of databases, 126 | as amended and/or succeeded, as well as other essentially 127 | equivalent rights anywhere in the world. 128 | 129 | k. You means the individual or entity exercising the Licensed Rights 130 | under this Public License. Your has a corresponding meaning. 131 | 132 | 133 | Section 2 -- Scope. 134 | 135 | a. License grant. 136 | 137 | 1. Subject to the terms and conditions of this Public License, 138 | the Licensor hereby grants You a worldwide, royalty-free, 139 | non-sublicensable, non-exclusive, irrevocable license to 140 | exercise the Licensed Rights in the Licensed Material to: 141 | 142 | a. reproduce and Share the Licensed Material, in whole or 143 | in part; and 144 | 145 | b. produce, reproduce, and Share Adapted Material. 146 | 147 | 2. Exceptions and Limitations. For the avoidance of doubt, where 148 | Exceptions and Limitations apply to Your use, this Public 149 | License does not apply, and You do not need to comply with 150 | its terms and conditions. 151 | 152 | 3. Term. The term of this Public License is specified in Section 153 | 6(a). 154 | 155 | 4. Media and formats; technical modifications allowed. The 156 | Licensor authorizes You to exercise the Licensed Rights in 157 | all media and formats whether now known or hereafter created, 158 | and to make technical modifications necessary to do so. The 159 | Licensor waives and/or agrees not to assert any right or 160 | authority to forbid You from making technical modifications 161 | necessary to exercise the Licensed Rights, including 162 | technical modifications necessary to circumvent Effective 163 | Technological Measures. For purposes of this Public License, 164 | simply making modifications authorized by this Section 2(a) 165 | (4) never produces Adapted Material. 166 | 167 | 5. Downstream recipients. 168 | 169 | a. Offer from the Licensor -- Licensed Material. Every 170 | recipient of the Licensed Material automatically 171 | receives an offer from the Licensor to exercise the 172 | Licensed Rights under the terms and conditions of this 173 | Public License. 174 | 175 | b. No downstream restrictions. You may not offer or impose 176 | any additional or different terms or conditions on, or 177 | apply any Effective Technological Measures to, the 178 | Licensed Material if doing so restricts exercise of the 179 | Licensed Rights by any recipient of the Licensed 180 | Material. 181 | 182 | 6. No endorsement. Nothing in this Public License constitutes or 183 | may be construed as permission to assert or imply that You 184 | are, or that Your use of the Licensed Material is, connected 185 | with, or sponsored, endorsed, or granted official status by, 186 | the Licensor or others designated to receive attribution as 187 | provided in Section 3(a)(1)(A)(i). 188 | 189 | b. Other rights. 190 | 191 | 1. Moral rights, such as the right of integrity, are not 192 | licensed under this Public License, nor are publicity, 193 | privacy, and/or other similar personality rights; however, to 194 | the extent possible, the Licensor waives and/or agrees not to 195 | assert any such rights held by the Licensor to the limited 196 | extent necessary to allow You to exercise the Licensed 197 | Rights, but not otherwise. 198 | 199 | 2. Patent and trademark rights are not licensed under this 200 | Public License. 201 | 202 | 3. To the extent possible, the Licensor waives any right to 203 | collect royalties from You for the exercise of the Licensed 204 | Rights, whether directly or through a collecting society 205 | under any voluntary or waivable statutory or compulsory 206 | licensing scheme. In all other cases the Licensor expressly 207 | reserves any right to collect such royalties. 208 | 209 | 210 | Section 3 -- License Conditions. 211 | 212 | Your exercise of the Licensed Rights is expressly made subject to the 213 | following conditions. 214 | 215 | a. Attribution. 216 | 217 | 1. If You Share the Licensed Material (including in modified 218 | form), You must: 219 | 220 | a. retain the following if it is supplied by the Licensor 221 | with the Licensed Material: 222 | 223 | i. identification of the creator(s) of the Licensed 224 | Material and any others designated to receive 225 | attribution, in any reasonable manner requested by 226 | the Licensor (including by pseudonym if 227 | designated); 228 | 229 | ii. a copyright notice; 230 | 231 | iii. a notice that refers to this Public License; 232 | 233 | iv. a notice that refers to the disclaimer of 234 | warranties; 235 | 236 | v. a URI or hyperlink to the Licensed Material to the 237 | extent reasonably practicable; 238 | 239 | b. indicate if You modified the Licensed Material and 240 | retain an indication of any previous modifications; and 241 | 242 | c. indicate the Licensed Material is licensed under this 243 | Public License, and include the text of, or the URI or 244 | hyperlink to, this Public License. 245 | 246 | 2. You may satisfy the conditions in Section 3(a)(1) in any 247 | reasonable manner based on the medium, means, and context in 248 | which You Share the Licensed Material. For example, it may be 249 | reasonable to satisfy the conditions by providing a URI or 250 | hyperlink to a resource that includes the required 251 | information. 252 | 253 | 3. If requested by the Licensor, You must remove any of the 254 | information required by Section 3(a)(1)(A) to the extent 255 | reasonably practicable. 256 | 257 | 4. If You Share Adapted Material You produce, the Adapter's 258 | License You apply must not prevent recipients of the Adapted 259 | Material from complying with this Public License. 260 | 261 | 262 | Section 4 -- Sui Generis Database Rights. 263 | 264 | Where the Licensed Rights include Sui Generis Database Rights that 265 | apply to Your use of the Licensed Material: 266 | 267 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right 268 | to extract, reuse, reproduce, and Share all or a substantial 269 | portion of the contents of the database; 270 | 271 | b. if You include all or a substantial portion of the database 272 | contents in a database in which You have Sui Generis Database 273 | Rights, then the database in which You have Sui Generis Database 274 | Rights (but not its individual contents) is Adapted Material; and 275 | 276 | c. You must comply with the conditions in Section 3(a) if You Share 277 | all or a substantial portion of the contents of the database. 278 | 279 | For the avoidance of doubt, this Section 4 supplements and does not 280 | replace Your obligations under this Public License where the Licensed 281 | Rights include other Copyright and Similar Rights. 282 | 283 | 284 | Section 5 -- Disclaimer of Warranties and Limitation of Liability. 285 | 286 | a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE 287 | EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS 288 | AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF 289 | ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, 290 | IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, 291 | WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR 292 | PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, 293 | ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT 294 | KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT 295 | ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. 296 | 297 | b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE 298 | TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, 299 | NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, 300 | INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, 301 | COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR 302 | USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN 303 | ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR 304 | DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR 305 | IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. 306 | 307 | c. The disclaimer of warranties and limitation of liability provided 308 | above shall be interpreted in a manner that, to the extent 309 | possible, most closely approximates an absolute disclaimer and 310 | waiver of all liability. 311 | 312 | 313 | Section 6 -- Term and Termination. 314 | 315 | a. This Public License applies for the term of the Copyright and 316 | Similar Rights licensed here. However, if You fail to comply with 317 | this Public License, then Your rights under this Public License 318 | terminate automatically. 319 | 320 | b. Where Your right to use the Licensed Material has terminated under 321 | Section 6(a), it reinstates: 322 | 323 | 1. automatically as of the date the violation is cured, provided 324 | it is cured within 30 days of Your discovery of the 325 | violation; or 326 | 327 | 2. upon express reinstatement by the Licensor. 328 | 329 | For the avoidance of doubt, this Section 6(b) does not affect any 330 | right the Licensor may have to seek remedies for Your violations 331 | of this Public License. 332 | 333 | c. For the avoidance of doubt, the Licensor may also offer the 334 | Licensed Material under separate terms or conditions or stop 335 | distributing the Licensed Material at any time; however, doing so 336 | will not terminate this Public License. 337 | 338 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public 339 | License. 340 | 341 | 342 | Section 7 -- Other Terms and Conditions. 343 | 344 | a. The Licensor shall not be bound by any additional or different 345 | terms or conditions communicated by You unless expressly agreed. 346 | 347 | b. Any arrangements, understandings, or agreements regarding the 348 | Licensed Material not stated herein are separate from and 349 | independent of the terms and conditions of this Public License. 350 | 351 | 352 | Section 8 -- Interpretation. 353 | 354 | a. For the avoidance of doubt, this Public License does not, and 355 | shall not be interpreted to, reduce, limit, restrict, or impose 356 | conditions on any use of the Licensed Material that could lawfully 357 | be made without permission under this Public License. 358 | 359 | b. To the extent possible, if any provision of this Public License is 360 | deemed unenforceable, it shall be automatically reformed to the 361 | minimum extent necessary to make it enforceable. If the provision 362 | cannot be reformed, it shall be severed from this Public License 363 | without affecting the enforceability of the remaining terms and 364 | conditions. 365 | 366 | c. No term or condition of this Public License will be waived and no 367 | failure to comply consented to unless expressly agreed to by the 368 | Licensor. 369 | 370 | d. Nothing in this Public License constitutes or may be interpreted 371 | as a limitation upon, or waiver of, any privileges and immunities 372 | that apply to the Licensor or You, including from the legal 373 | processes of any jurisdiction or authority. 374 | 375 | 376 | ======================================================================= 377 | 378 | Creative Commons is not a party to its public 379 | licenses. Notwithstanding, Creative Commons may elect to apply one of 380 | its public licenses to material it publishes and in those instances 381 | will be considered the “Licensor.” The text of the Creative Commons 382 | public licenses is dedicated to the public domain under the CC0 Public 383 | Domain Dedication. Except for the limited purpose of indicating that 384 | material is shared under a Creative Commons public license or as 385 | otherwise permitted by the Creative Commons policies published at 386 | creativecommons.org/policies, Creative Commons does not authorize the 387 | use of the trademark "Creative Commons" or any other trademark or logo 388 | of Creative Commons without its prior written consent including, 389 | without limitation, in connection with any unauthorized modifications 390 | to any of its public licenses or any other arrangements, 391 | understandings, or agreements concerning use of licensed material. For 392 | the avoidance of doubt, this paragraph does not form part of the 393 | public licenses. 394 | 395 | Creative Commons may be contacted at creativecommons.org. -------------------------------------------------------------------------------- /LICENSE-CODE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Microsoft Corporation. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Sample plugins that use OpenAI schema for Microsoft Copilot 2 | 3 | This repository contains sample plugins that use OpenAI schema for Microsoft Copilot. The plugins in this repository are used in the [Plugins for Microsoft Copilot documentation](https://learn.microsoft.com/copilot-plugins/). 4 | 5 | Each folder in this repository contains a sample plugin. 6 | 7 | # Contributing 8 | 9 | This project welcomes contributions and suggestions. Most contributions require you to agree to a 10 | Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us 11 | the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com. 12 | 13 | When you submit a pull request, a CLA bot will automatically determine whether you need to provide 14 | a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions 15 | provided by the bot. You will only need to do this once across all repos using our CLA. 16 | 17 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). 18 | For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or 19 | contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. 20 | 21 | # Legal Notices 22 | 23 | Microsoft and any contributors grant you a license to the Microsoft documentation and other content 24 | in this repository under the [Creative Commons Attribution 4.0 International Public License](https://creativecommons.org/licenses/by/4.0/legalcode), 25 | see the [LICENSE](LICENSE) file, and grant you a license to any code in the repository under the [MIT License](https://opensource.org/licenses/MIT), see the 26 | [LICENSE-CODE](LICENSE-CODE) file. 27 | 28 | Microsoft, Windows, Microsoft Azure and/or other Microsoft products and services referenced in the documentation 29 | may be either trademarks or registered trademarks of Microsoft in the United States and/or other countries. 30 | The licenses for this project do not grant you rights to use any Microsoft names, logos, or trademarks. 31 | Microsoft's general trademark guidelines can be found at http://go.microsoft.com/fwlink/?LinkID=254653. 32 | 33 | Privacy information can be found at https://privacy.microsoft.com/en-us/ 34 | 35 | Microsoft and any contributors reserve all other rights, whether under their respective copyrights, patents, 36 | or trademarks, whether by implication, estoppel or otherwise. 37 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Security 4 | 5 | Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin). 6 | 7 | If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below. 8 | 9 | ## Reporting Security Issues 10 | 11 | **Please do not report security vulnerabilities through public GitHub issues.** 12 | 13 | Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report). 14 | 15 | If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/security.md/msrc/pgp). 16 | 17 | You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc). 18 | 19 | Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: 20 | 21 | * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) 22 | * Full paths of source file(s) related to the manifestation of the issue 23 | * The location of the affected source code (tag/branch/commit or direct URL) 24 | * Any special configuration required to reproduce the issue 25 | * Step-by-step instructions to reproduce the issue 26 | * Proof-of-concept or exploit code (if possible) 27 | * Impact of the issue, including how an attacker might exploit the issue 28 | 29 | This information will help us triage your report more quickly. 30 | 31 | If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/security.md/msrc/bounty) page for more details about our active programs. 32 | 33 | ## Preferred Languages 34 | 35 | We prefer all communications to be in English. 36 | 37 | ## Policy 38 | 39 | Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd). 40 | 41 | 42 | -------------------------------------------------------------------------------- /contoso-real-estate-incomplete/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /contoso-real-estate-incomplete/README.md: -------------------------------------------------------------------------------- 1 | # Learn to build an API plugin for Microsoft Copilot - INCOMPLETE Contoso real estate plugin 2 | 3 | This directory contains an incomplete sample API plugin for Microsoft Copilot. The complete sample can be found in the `contoso-real-estate` directory instead. 4 | 5 | Use this sample as a starting point to build your own API plugin for Microsoft Copilot. 6 | 7 | To learn to build a plugin from scratch, see [Get started building an API plugin for Microsoft Copilot](https://learn.microsoft.com/copilot-plugins/get-started). 8 | 9 | To learn to build a plugin by starting from this incomplete sample, follow the steps below. 10 | 11 | ## Set up the coding environment 12 | 13 | 1. Fork this repository. To learn how to fork a repository, see [Fork a repo](https://docs.github.com/en/get-started/quickstart/fork-a-repo). 14 | 15 | 1. In the forked repository page, on github.com, create a new branch to work on the plugin. 16 | 17 | Click the branch selector drop-down menu, which is set to **main**, and type a name for the new branch, for example **tutorial**. Then, click **Create branch: tutorial**. 18 | 19 | 1. Start a codespace to work on the project without having to clone it on your local device. 20 | 21 | Click the **Code** drop-menu menu, and then click **Create codespace on tutorial**. A new browser tab opens with the codespace. 22 | 23 | To learn more about codespace, see [Start coding instantly with Codespaces](https://github.com/features/codespaces). 24 | 25 | 1. In the **Terminal** panel, type `cd contoso-real-estate-incomplete` and press Enter. 26 | 27 | 1. To install the required project dependencies, type `npm install` and press Enter. 28 | 29 | ## Test the existing API 30 | 31 | You can now test the API code that's already in the project. The API endpoint is implemented in `server.js`, which is a JavaScript file that runs by using Node.js. The Express framework is used to run the web server where the API endpoint is exposed. 32 | 33 | To test the API: 34 | 35 | 1. In the **Terminal** panel, type `node server.js` and press Enter. 36 | 37 | The server now runs in the codespace, on port 8080, and a notification appears in the lower right corner of the codespace, informing you that your application is running on port 8080. 38 | 39 | 1. To make the port accessible to the internet, in the notification, click **Make Public**. 40 | 41 | 1. Open the **Ports** panel at the bottom of the codespace. The URL where your server is running is listed. Copy the URL. 42 | 43 | 1. Open a new browser tab, enter the URL you copied but add `get-listings?city=paris` at the end of the URL. Press Enter. The API response is displayed. 44 | 45 | Your API endpoint is ready. 46 | 47 | ## Write the API specification 48 | 49 | Building an API plugin for Microsoft Copilot requires three things: 50 | 51 | * An API, which you now have. 52 | * An API specification file. 53 | * A plugin manifest file. 54 | 55 | Let's create the API specification file. 56 | 57 | The goal of the API specification file is to document your API. Microsoft Copilot needs to know where the API is, and what requests your API can handle. It needs to know how to send request parameters, and how to read responses. The API spec is a way for the LLM that powers Microsoft Copilot to know how to use your API. 58 | 59 | To document your API, write a specification that follows the OpenAPI schema. Most APIs use the OpenAPI schema. It's a standard way to document APIs for people and computers to know how to access APIs. 60 | 61 | Use Microsoft Copilot to help you generate the text content for your OpenAPI specification: 62 | 63 | 1. In a new browser tab, go to [Microsoft Copilot](https://copilot.microsoft.com). 64 | 65 | 1. Ask Microsoft Copilot to generate the OpenAPI spec by entering the following question in the text box at the bottom: 66 | 67 | Generate an OpenAPI YAML specification for my API. My API is implemented with Express, in NodeJS. Here is the endpoint implementation: 68 | 69 | app.get("/get-listings", (req, res) => { 70 | const city = req.query.city; 71 | const bedrooms = parseInt(req.query.bedrooms); 72 | const bathrooms = parseInt(req.query.bathrooms); 73 | const amenities = req.query.amenities; 74 | 75 | try { 76 | const listings = getListings(city, bedrooms, bathrooms, amenities); 77 | res.send(listings); 78 | } catch (e) { 79 | res.status(400).send({ error: e.message }); 80 | } 81 | }); 82 | 83 | 1. Click **Submit**. Microsoft Copilot generates some OpenAPI YAML content for you. 84 | 85 | 1. Copy the generated content and, in your codespace, paste it in a new file named `openapi.yaml`. 86 | 87 | 1. Edit and add the following content in the `openapi.yaml` file: 88 | 89 | * Make sure the `title` and `description` fiels describe your API well. Microsoft Copilot uses these fields to know when and how to use your plugin. 90 | * Change the `servers.url` field to match the URL you copied from the **Ports** panel. 91 | * Add an `operationId` field to the `get-listings` operation. The value of the `operationId` field should be a string, for example `getListings`. 92 | * Make all parameters optional by setting their `required` property to `false`, and check their descriptions are detailed enough for Microsoft Copilot to know how to use them. 93 | * Change the `responses` field to match what your API returns. 94 | 95 | The `openapi.yaml` file should look like this: 96 | 97 | ```yaml 98 | openapi: "3.0.0" 99 | info: 100 | version: "1.0.0" 101 | title: "Contoso Real Estate API" 102 | description: "Find up to date and detailed real estate properties for sale on the market" 103 | servers: 104 | - url: https://abcde-fghijk-abc123def456-8080.app.github.dev/ 105 | paths: 106 | /get-listings: 107 | get: 108 | operationId: getListings 109 | summary: "Get a list of properties for sale that match the specified criteria" 110 | description: "Returns a list of properties, optionally filtered by providing the city, number of bedrooms, number of bathrooms and a list of amenities as query parameters." 111 | parameters: 112 | - name: "city" 113 | in: "query" 114 | description: "City of the listing" 115 | required: false 116 | schema: 117 | type: "string" 118 | - name: "bedrooms" 119 | in: "query" 120 | description: "Number of bedrooms in the listing" 121 | required: false 122 | schema: 123 | type: "integer" 124 | - name: "bathrooms" 125 | in: "query" 126 | description: "Number of bathrooms in the listing" 127 | required: false 128 | schema: 129 | type: "integer" 130 | responses: 131 | '200': 132 | description: "Successful operation" 133 | content: 134 | application/json: 135 | schema: 136 | type: "array" 137 | items: 138 | type: object 139 | properties: 140 | title: 141 | type: string 142 | description: The title of the property listing 143 | city: 144 | type: string 145 | description: The city of the property 146 | bedrooms: 147 | type: integer 148 | description: The number of bedrooms 149 | bathrooms: 150 | type: integer 151 | description: The number of bathrooms 152 | description: 153 | type: string 154 | description: The description of the property 155 | ``` 156 | 157 | ## Make the API spec available on your server 158 | 159 | Microsoft Copilot needs to have access to the OpenAPI spec file for your API. To make the file available: 160 | 161 | 1. In your codespace, open the `server.js` file. 162 | 163 | 1. Import the Node.js built-in `path` module by adding the following `import` statement at the top: 164 | 165 | ```js 166 | import path from "path"; 167 | ``` 168 | 169 | 1. Add the following Express request handler before the `app.listen(8080);` line: 170 | 171 | ```js 172 | app.get("/openapi.yaml", (req, res) => { 173 | res.sendFile(path.resolve() + "/openapi.yaml"); 174 | }); 175 | ``` 176 | 177 | 1. Save the file. 178 | 179 | 1. Restart your server. To do this, in the **Terminal** panel, press Ctrl+C, type `node server.js`, and then press Enter. 180 | 181 | 1. In a new tab, open the URL where your server is running, and add `openapi.yaml` at the end of the URL. Press Enter. The OpenAPI spec file is displayed. 182 | 183 | ## Write the plugin manifest 184 | 185 | The third, and final, part of your plugin is the plugin manifest. 186 | 187 | The manifest is a natural language description of the plugin. You don't need to write more code for the plugin to work. Instead, write a natural language description of the what the plugin does in the manifest. The LLM that powers Microsoft Copilot will know when and how to use your plugin based on the description in the manifest. 188 | 189 | To create a manifest file: 190 | 191 | 1. Create a new file named `ai-plugin.json` in your codespace. 192 | 193 | 1. Paste the following content in the file and then save the file: 194 | 195 | ```json 196 | { 197 | "schema_version": "v1", 198 | "name_for_model": "contosorealestate", 199 | "description_for_model": "Plugin for finding properties for sale. Use it whenever a user asks about real estate properties for sale on the market. It can be used to search for properties in a particular city, and with a given number of bedrooms or bathrooms.", 200 | "name_for_human": "Contoso Real Estate", 201 | "description_for_human": "Find up to date and detailed real estate properties for sale on the market", 202 | "api": { 203 | "type": "openapi", 204 | "url": "http://abcde-fghijk-abc123def456-8080.app.github.dev/openapi.yaml", 205 | "is_user_authenticated": false 206 | }, 207 | "auth": { 208 | "type": "none" 209 | }, 210 | "logo_url": "http://abcde-fghijk-abc123def456-8080.app.github.dev/logo.png", 211 | "contact_email": "contact@contoso.com", 212 | "legal_info_url": "https://contoso.com/legal/" 213 | } 214 | ``` 215 | 216 | Replace `http://abcde-fghijk-abc123def456-8080.app.github.dev/` with the URL you copied from the **Ports** panel. 217 | 218 | The properties that are used in the above manifest code are documented in [Plugin manifest fields](https://learn.microsoft.com/copilot/plugins/overview#plugin-manifest-fields) in _Overview of API plugins for Microsoft Copilot_. 219 | 220 | ## Make the plugin manifest available on your server 221 | 222 | Microsoft Copilot needs to have access to the plugin manifest file for your plugin. To make the file available: 223 | 224 | 1. In your codespace, open the `server.js` file. 225 | 226 | 1. Add the following Express request handler before the `app.listen(8080);` line: 227 | 228 | ```js 229 | app.get("/.well-known/ai-plugin.json", (req, res) => { 230 | res.sendFile(path.resolve() + "/ai-plugin.json"); 231 | }); 232 | 233 | app.get("/logo.png", (req, res) => { 234 | res.sendFile(path.resolve() + "/logo.png"); 235 | }); 236 | ``` 237 | 238 | The `ai-plugin.json` file must be located at the `/.well-known/ai-plugin.json` path on your server. The above code snippet also makes the `logo.png` file available to download, since your manifest file references it. 239 | 240 | 1. Save the file. 241 | 242 | 1. Restart your server. To do this, in the **Terminal** panel, press Ctrl+C, type `node server.js`, and then press Enter. 243 | 244 | 1. In a new tab, open the URL where your server is running, and add `.well-known/ai-plugin.json` at the end of the URL. Press Enter. The plugin manifest file is displayed. 245 | 246 | Your plugin is ready and you can now sideload it in Microsoft Copilot. 247 | 248 | ## Allow Bing to access your API 249 | 250 | To test your plugin, you sideload it in Bing. But, for Bing to be able to access your API, you need to allow it to do so. To grand Bing access to your plugin, use CORS: 251 | 252 | 1. In your codespace, stop the server by pressing Ctrl+C in the **Terminal** panel. 253 | 254 | 1. Add the CORS middleware to your server by typing `npm install cors` in the **Terminal** panel and pressing Enter. 255 | 256 | 1. Open the `server.js` file and import the CORS middleware by adding the following line at the top of the file: 257 | 258 | ```js 259 | import cors from "cors"; 260 | ``` 261 | 262 | 1. Add the following line after the `const app = express();` line: 263 | 264 | ```js 265 | app.use(cors({ origin: "https://www.bing.com" })); 266 | ``` 267 | 268 | 1. Save the file and restart the server. 269 | 270 | ## Sideload your plugin in Bing 271 | 272 | **Sideloading plugins in Copilot in Bing is in private preview and is not broadly available yet. The user interface and the steps in this guide may change during the preview period.** 273 | 274 | To use and test your plugin, see [Sideload your API plugin in Copilot in Bing](https://learn.microsoft.com/copilot/plugins/test-debug/sideload-test-plugins#sideload-your-api-plugin-in-copilot-in-bing) in _Test and debug an API plugin_. 275 | -------------------------------------------------------------------------------- /contoso-real-estate-incomplete/get-listings.js: -------------------------------------------------------------------------------- 1 | import listings from "./listings.json" assert { type: "json" }; 2 | 3 | // Return only the first 5 results. 4 | const RESULT_LIMIT = 5; 5 | 6 | export default function getListings(city, bedrooms, bathrooms) { 7 | return listings.filter(listing => { 8 | const cityMatch = city 9 | ? listing.city.toLowerCase() === city.toLowerCase() 10 | : true; 11 | 12 | const bedroomsMatch = bedrooms 13 | ? listing.bedrooms === bedrooms 14 | : true; 15 | 16 | const bathroomsMatch = bathrooms 17 | ? listing.bathrooms === bathrooms 18 | : true; 19 | 20 | return cityMatch && bedroomsMatch && bathroomsMatch; 21 | }).slice(0, RESULT_LIMIT); 22 | } 23 | -------------------------------------------------------------------------------- /contoso-real-estate-incomplete/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/mslearn-copilot-plugins/bd2aee55f2e2d1b034940144815d1554830488bd/contoso-real-estate-incomplete/logo.png -------------------------------------------------------------------------------- /contoso-real-estate-incomplete/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "contoso-real-estate-api", 3 | "lockfileVersion": 3, 4 | "requires": true, 5 | "packages": { 6 | "": { 7 | "name": "contoso-real-estate-api", 8 | "dependencies": { 9 | "express": "^4.19.2" 10 | } 11 | }, 12 | "node_modules/accepts": { 13 | "version": "1.3.8", 14 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", 15 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", 16 | "dependencies": { 17 | "mime-types": "~2.1.34", 18 | "negotiator": "0.6.3" 19 | }, 20 | "engines": { 21 | "node": ">= 0.6" 22 | } 23 | }, 24 | "node_modules/array-flatten": { 25 | "version": "1.1.1", 26 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 27 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" 28 | }, 29 | "node_modules/body-parser": { 30 | "version": "1.20.2", 31 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", 32 | "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", 33 | "dependencies": { 34 | "bytes": "3.1.2", 35 | "content-type": "~1.0.5", 36 | "debug": "2.6.9", 37 | "depd": "2.0.0", 38 | "destroy": "1.2.0", 39 | "http-errors": "2.0.0", 40 | "iconv-lite": "0.4.24", 41 | "on-finished": "2.4.1", 42 | "qs": "6.11.0", 43 | "raw-body": "2.5.2", 44 | "type-is": "~1.6.18", 45 | "unpipe": "1.0.0" 46 | }, 47 | "engines": { 48 | "node": ">= 0.8", 49 | "npm": "1.2.8000 || >= 1.4.16" 50 | } 51 | }, 52 | "node_modules/bytes": { 53 | "version": "3.1.2", 54 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 55 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", 56 | "engines": { 57 | "node": ">= 0.8" 58 | } 59 | }, 60 | "node_modules/call-bind": { 61 | "version": "1.0.7", 62 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", 63 | "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", 64 | "dependencies": { 65 | "es-define-property": "^1.0.0", 66 | "es-errors": "^1.3.0", 67 | "function-bind": "^1.1.2", 68 | "get-intrinsic": "^1.2.4", 69 | "set-function-length": "^1.2.1" 70 | }, 71 | "engines": { 72 | "node": ">= 0.4" 73 | }, 74 | "funding": { 75 | "url": "https://github.com/sponsors/ljharb" 76 | } 77 | }, 78 | "node_modules/content-disposition": { 79 | "version": "0.5.4", 80 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", 81 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", 82 | "dependencies": { 83 | "safe-buffer": "5.2.1" 84 | }, 85 | "engines": { 86 | "node": ">= 0.6" 87 | } 88 | }, 89 | "node_modules/content-type": { 90 | "version": "1.0.5", 91 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", 92 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", 93 | "engines": { 94 | "node": ">= 0.6" 95 | } 96 | }, 97 | "node_modules/cookie": { 98 | "version": "0.6.0", 99 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", 100 | "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==", 101 | "engines": { 102 | "node": ">= 0.6" 103 | } 104 | }, 105 | "node_modules/cookie-signature": { 106 | "version": "1.0.6", 107 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 108 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" 109 | }, 110 | "node_modules/debug": { 111 | "version": "2.6.9", 112 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 113 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 114 | "dependencies": { 115 | "ms": "2.0.0" 116 | } 117 | }, 118 | "node_modules/define-data-property": { 119 | "version": "1.1.4", 120 | "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", 121 | "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", 122 | "dependencies": { 123 | "es-define-property": "^1.0.0", 124 | "es-errors": "^1.3.0", 125 | "gopd": "^1.0.1" 126 | }, 127 | "engines": { 128 | "node": ">= 0.4" 129 | }, 130 | "funding": { 131 | "url": "https://github.com/sponsors/ljharb" 132 | } 133 | }, 134 | "node_modules/depd": { 135 | "version": "2.0.0", 136 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 137 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 138 | "engines": { 139 | "node": ">= 0.8" 140 | } 141 | }, 142 | "node_modules/destroy": { 143 | "version": "1.2.0", 144 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 145 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", 146 | "engines": { 147 | "node": ">= 0.8", 148 | "npm": "1.2.8000 || >= 1.4.16" 149 | } 150 | }, 151 | "node_modules/ee-first": { 152 | "version": "1.1.1", 153 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 154 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" 155 | }, 156 | "node_modules/encodeurl": { 157 | "version": "1.0.2", 158 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 159 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", 160 | "engines": { 161 | "node": ">= 0.8" 162 | } 163 | }, 164 | "node_modules/es-define-property": { 165 | "version": "1.0.0", 166 | "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", 167 | "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", 168 | "dependencies": { 169 | "get-intrinsic": "^1.2.4" 170 | }, 171 | "engines": { 172 | "node": ">= 0.4" 173 | } 174 | }, 175 | "node_modules/es-errors": { 176 | "version": "1.3.0", 177 | "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", 178 | "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", 179 | "engines": { 180 | "node": ">= 0.4" 181 | } 182 | }, 183 | "node_modules/escape-html": { 184 | "version": "1.0.3", 185 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 186 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" 187 | }, 188 | "node_modules/etag": { 189 | "version": "1.8.1", 190 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 191 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", 192 | "engines": { 193 | "node": ">= 0.6" 194 | } 195 | }, 196 | "node_modules/express": { 197 | "version": "4.19.2", 198 | "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz", 199 | "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==", 200 | "dependencies": { 201 | "accepts": "~1.3.8", 202 | "array-flatten": "1.1.1", 203 | "body-parser": "1.20.2", 204 | "content-disposition": "0.5.4", 205 | "content-type": "~1.0.4", 206 | "cookie": "0.6.0", 207 | "cookie-signature": "1.0.6", 208 | "debug": "2.6.9", 209 | "depd": "2.0.0", 210 | "encodeurl": "~1.0.2", 211 | "escape-html": "~1.0.3", 212 | "etag": "~1.8.1", 213 | "finalhandler": "1.2.0", 214 | "fresh": "0.5.2", 215 | "http-errors": "2.0.0", 216 | "merge-descriptors": "1.0.1", 217 | "methods": "~1.1.2", 218 | "on-finished": "2.4.1", 219 | "parseurl": "~1.3.3", 220 | "path-to-regexp": "0.1.7", 221 | "proxy-addr": "~2.0.7", 222 | "qs": "6.11.0", 223 | "range-parser": "~1.2.1", 224 | "safe-buffer": "5.2.1", 225 | "send": "0.18.0", 226 | "serve-static": "1.15.0", 227 | "setprototypeof": "1.2.0", 228 | "statuses": "2.0.1", 229 | "type-is": "~1.6.18", 230 | "utils-merge": "1.0.1", 231 | "vary": "~1.1.2" 232 | }, 233 | "engines": { 234 | "node": ">= 0.10.0" 235 | } 236 | }, 237 | "node_modules/finalhandler": { 238 | "version": "1.2.0", 239 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", 240 | "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", 241 | "dependencies": { 242 | "debug": "2.6.9", 243 | "encodeurl": "~1.0.2", 244 | "escape-html": "~1.0.3", 245 | "on-finished": "2.4.1", 246 | "parseurl": "~1.3.3", 247 | "statuses": "2.0.1", 248 | "unpipe": "~1.0.0" 249 | }, 250 | "engines": { 251 | "node": ">= 0.8" 252 | } 253 | }, 254 | "node_modules/forwarded": { 255 | "version": "0.2.0", 256 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 257 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", 258 | "engines": { 259 | "node": ">= 0.6" 260 | } 261 | }, 262 | "node_modules/fresh": { 263 | "version": "0.5.2", 264 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 265 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", 266 | "engines": { 267 | "node": ">= 0.6" 268 | } 269 | }, 270 | "node_modules/function-bind": { 271 | "version": "1.1.2", 272 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 273 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 274 | "funding": { 275 | "url": "https://github.com/sponsors/ljharb" 276 | } 277 | }, 278 | "node_modules/get-intrinsic": { 279 | "version": "1.2.4", 280 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", 281 | "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", 282 | "dependencies": { 283 | "es-errors": "^1.3.0", 284 | "function-bind": "^1.1.2", 285 | "has-proto": "^1.0.1", 286 | "has-symbols": "^1.0.3", 287 | "hasown": "^2.0.0" 288 | }, 289 | "engines": { 290 | "node": ">= 0.4" 291 | }, 292 | "funding": { 293 | "url": "https://github.com/sponsors/ljharb" 294 | } 295 | }, 296 | "node_modules/gopd": { 297 | "version": "1.0.1", 298 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", 299 | "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", 300 | "dependencies": { 301 | "get-intrinsic": "^1.1.3" 302 | }, 303 | "funding": { 304 | "url": "https://github.com/sponsors/ljharb" 305 | } 306 | }, 307 | "node_modules/has-property-descriptors": { 308 | "version": "1.0.2", 309 | "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", 310 | "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", 311 | "dependencies": { 312 | "es-define-property": "^1.0.0" 313 | }, 314 | "funding": { 315 | "url": "https://github.com/sponsors/ljharb" 316 | } 317 | }, 318 | "node_modules/has-proto": { 319 | "version": "1.0.3", 320 | "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", 321 | "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", 322 | "engines": { 323 | "node": ">= 0.4" 324 | }, 325 | "funding": { 326 | "url": "https://github.com/sponsors/ljharb" 327 | } 328 | }, 329 | "node_modules/has-symbols": { 330 | "version": "1.0.3", 331 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", 332 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", 333 | "engines": { 334 | "node": ">= 0.4" 335 | }, 336 | "funding": { 337 | "url": "https://github.com/sponsors/ljharb" 338 | } 339 | }, 340 | "node_modules/hasown": { 341 | "version": "2.0.2", 342 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 343 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 344 | "dependencies": { 345 | "function-bind": "^1.1.2" 346 | }, 347 | "engines": { 348 | "node": ">= 0.4" 349 | } 350 | }, 351 | "node_modules/http-errors": { 352 | "version": "2.0.0", 353 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 354 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 355 | "dependencies": { 356 | "depd": "2.0.0", 357 | "inherits": "2.0.4", 358 | "setprototypeof": "1.2.0", 359 | "statuses": "2.0.1", 360 | "toidentifier": "1.0.1" 361 | }, 362 | "engines": { 363 | "node": ">= 0.8" 364 | } 365 | }, 366 | "node_modules/iconv-lite": { 367 | "version": "0.4.24", 368 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 369 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 370 | "dependencies": { 371 | "safer-buffer": ">= 2.1.2 < 3" 372 | }, 373 | "engines": { 374 | "node": ">=0.10.0" 375 | } 376 | }, 377 | "node_modules/inherits": { 378 | "version": "2.0.4", 379 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 380 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 381 | }, 382 | "node_modules/ipaddr.js": { 383 | "version": "1.9.1", 384 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 385 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", 386 | "engines": { 387 | "node": ">= 0.10" 388 | } 389 | }, 390 | "node_modules/media-typer": { 391 | "version": "0.3.0", 392 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 393 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", 394 | "engines": { 395 | "node": ">= 0.6" 396 | } 397 | }, 398 | "node_modules/merge-descriptors": { 399 | "version": "1.0.1", 400 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 401 | "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" 402 | }, 403 | "node_modules/methods": { 404 | "version": "1.1.2", 405 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 406 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", 407 | "engines": { 408 | "node": ">= 0.6" 409 | } 410 | }, 411 | "node_modules/mime": { 412 | "version": "1.6.0", 413 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 414 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 415 | "bin": { 416 | "mime": "cli.js" 417 | }, 418 | "engines": { 419 | "node": ">=4" 420 | } 421 | }, 422 | "node_modules/mime-db": { 423 | "version": "1.52.0", 424 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 425 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 426 | "engines": { 427 | "node": ">= 0.6" 428 | } 429 | }, 430 | "node_modules/mime-types": { 431 | "version": "2.1.35", 432 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 433 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 434 | "dependencies": { 435 | "mime-db": "1.52.0" 436 | }, 437 | "engines": { 438 | "node": ">= 0.6" 439 | } 440 | }, 441 | "node_modules/ms": { 442 | "version": "2.0.0", 443 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 444 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" 445 | }, 446 | "node_modules/negotiator": { 447 | "version": "0.6.3", 448 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", 449 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", 450 | "engines": { 451 | "node": ">= 0.6" 452 | } 453 | }, 454 | "node_modules/object-inspect": { 455 | "version": "1.13.1", 456 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", 457 | "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", 458 | "funding": { 459 | "url": "https://github.com/sponsors/ljharb" 460 | } 461 | }, 462 | "node_modules/on-finished": { 463 | "version": "2.4.1", 464 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 465 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 466 | "dependencies": { 467 | "ee-first": "1.1.1" 468 | }, 469 | "engines": { 470 | "node": ">= 0.8" 471 | } 472 | }, 473 | "node_modules/parseurl": { 474 | "version": "1.3.3", 475 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 476 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 477 | "engines": { 478 | "node": ">= 0.8" 479 | } 480 | }, 481 | "node_modules/path-to-regexp": { 482 | "version": "0.1.7", 483 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 484 | "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" 485 | }, 486 | "node_modules/proxy-addr": { 487 | "version": "2.0.7", 488 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 489 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 490 | "dependencies": { 491 | "forwarded": "0.2.0", 492 | "ipaddr.js": "1.9.1" 493 | }, 494 | "engines": { 495 | "node": ">= 0.10" 496 | } 497 | }, 498 | "node_modules/qs": { 499 | "version": "6.11.0", 500 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", 501 | "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", 502 | "dependencies": { 503 | "side-channel": "^1.0.4" 504 | }, 505 | "engines": { 506 | "node": ">=0.6" 507 | }, 508 | "funding": { 509 | "url": "https://github.com/sponsors/ljharb" 510 | } 511 | }, 512 | "node_modules/range-parser": { 513 | "version": "1.2.1", 514 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 515 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 516 | "engines": { 517 | "node": ">= 0.6" 518 | } 519 | }, 520 | "node_modules/raw-body": { 521 | "version": "2.5.2", 522 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", 523 | "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", 524 | "dependencies": { 525 | "bytes": "3.1.2", 526 | "http-errors": "2.0.0", 527 | "iconv-lite": "0.4.24", 528 | "unpipe": "1.0.0" 529 | }, 530 | "engines": { 531 | "node": ">= 0.8" 532 | } 533 | }, 534 | "node_modules/safe-buffer": { 535 | "version": "5.2.1", 536 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 537 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 538 | "funding": [ 539 | { 540 | "type": "github", 541 | "url": "https://github.com/sponsors/feross" 542 | }, 543 | { 544 | "type": "patreon", 545 | "url": "https://www.patreon.com/feross" 546 | }, 547 | { 548 | "type": "consulting", 549 | "url": "https://feross.org/support" 550 | } 551 | ] 552 | }, 553 | "node_modules/safer-buffer": { 554 | "version": "2.1.2", 555 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 556 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 557 | }, 558 | "node_modules/send": { 559 | "version": "0.18.0", 560 | "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", 561 | "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", 562 | "dependencies": { 563 | "debug": "2.6.9", 564 | "depd": "2.0.0", 565 | "destroy": "1.2.0", 566 | "encodeurl": "~1.0.2", 567 | "escape-html": "~1.0.3", 568 | "etag": "~1.8.1", 569 | "fresh": "0.5.2", 570 | "http-errors": "2.0.0", 571 | "mime": "1.6.0", 572 | "ms": "2.1.3", 573 | "on-finished": "2.4.1", 574 | "range-parser": "~1.2.1", 575 | "statuses": "2.0.1" 576 | }, 577 | "engines": { 578 | "node": ">= 0.8.0" 579 | } 580 | }, 581 | "node_modules/send/node_modules/ms": { 582 | "version": "2.1.3", 583 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 584 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 585 | }, 586 | "node_modules/serve-static": { 587 | "version": "1.15.0", 588 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", 589 | "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", 590 | "dependencies": { 591 | "encodeurl": "~1.0.2", 592 | "escape-html": "~1.0.3", 593 | "parseurl": "~1.3.3", 594 | "send": "0.18.0" 595 | }, 596 | "engines": { 597 | "node": ">= 0.8.0" 598 | } 599 | }, 600 | "node_modules/set-function-length": { 601 | "version": "1.2.2", 602 | "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", 603 | "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", 604 | "dependencies": { 605 | "define-data-property": "^1.1.4", 606 | "es-errors": "^1.3.0", 607 | "function-bind": "^1.1.2", 608 | "get-intrinsic": "^1.2.4", 609 | "gopd": "^1.0.1", 610 | "has-property-descriptors": "^1.0.2" 611 | }, 612 | "engines": { 613 | "node": ">= 0.4" 614 | } 615 | }, 616 | "node_modules/setprototypeof": { 617 | "version": "1.2.0", 618 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 619 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" 620 | }, 621 | "node_modules/side-channel": { 622 | "version": "1.0.6", 623 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", 624 | "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", 625 | "dependencies": { 626 | "call-bind": "^1.0.7", 627 | "es-errors": "^1.3.0", 628 | "get-intrinsic": "^1.2.4", 629 | "object-inspect": "^1.13.1" 630 | }, 631 | "engines": { 632 | "node": ">= 0.4" 633 | }, 634 | "funding": { 635 | "url": "https://github.com/sponsors/ljharb" 636 | } 637 | }, 638 | "node_modules/statuses": { 639 | "version": "2.0.1", 640 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 641 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 642 | "engines": { 643 | "node": ">= 0.8" 644 | } 645 | }, 646 | "node_modules/toidentifier": { 647 | "version": "1.0.1", 648 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 649 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 650 | "engines": { 651 | "node": ">=0.6" 652 | } 653 | }, 654 | "node_modules/type-is": { 655 | "version": "1.6.18", 656 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 657 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 658 | "dependencies": { 659 | "media-typer": "0.3.0", 660 | "mime-types": "~2.1.24" 661 | }, 662 | "engines": { 663 | "node": ">= 0.6" 664 | } 665 | }, 666 | "node_modules/unpipe": { 667 | "version": "1.0.0", 668 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 669 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", 670 | "engines": { 671 | "node": ">= 0.8" 672 | } 673 | }, 674 | "node_modules/utils-merge": { 675 | "version": "1.0.1", 676 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 677 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", 678 | "engines": { 679 | "node": ">= 0.4.0" 680 | } 681 | }, 682 | "node_modules/vary": { 683 | "version": "1.1.2", 684 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 685 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", 686 | "engines": { 687 | "node": ">= 0.8" 688 | } 689 | } 690 | } 691 | } 692 | -------------------------------------------------------------------------------- /contoso-real-estate-incomplete/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "contoso-real-estate-api", 3 | "type": "module", 4 | "dependencies": { 5 | "express": "^4.19.2" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /contoso-real-estate-incomplete/server.js: -------------------------------------------------------------------------------- 1 | import express from "express"; 2 | import getListings from "./get-listings.js" 3 | 4 | const app = express(); 5 | 6 | app.get("/get-listings", (req, res) => { 7 | const city = req.query.city; 8 | const bedrooms = parseInt(req.query.bedrooms); 9 | const bathrooms = parseInt(req.query.bathrooms); 10 | 11 | try { 12 | const listings = getListings(city, bedrooms, bathrooms); 13 | res.send(listings); 14 | } catch (e) { 15 | res.status(400).send({ error: e.message }); 16 | } 17 | }); 18 | 19 | app.listen(8080); 20 | -------------------------------------------------------------------------------- /contoso-real-estate/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /contoso-real-estate/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | "version": "0.2.0", 6 | "configurations": [ 7 | { 8 | "type": "node", 9 | "request": "launch", 10 | "name": "Launch Program", 11 | "skipFiles": [ 12 | "/**" 13 | ], 14 | "program": "${workspaceFolder}\\server.js" 15 | } 16 | ] 17 | } -------------------------------------------------------------------------------- /contoso-real-estate/README.md: -------------------------------------------------------------------------------- 1 | --- 2 | page_type: sample 3 | languages: 4 | - yaml 5 | - json 6 | - js 7 | products: 8 | - copilot 9 | - ms-copilot 10 | name: "Contoso real estate plugin for Microsoft Copilot" 11 | description: "A tutorial to learn how to build an API plugin for Microsoft Copilot" 12 | urlFragment: "contoso-real-estate-plugin-for-microsoft-copilot" 13 | --- 14 | # Learn to build an API plugin for Microsoft Copilot - Contoso real estate 15 | 16 | A tutorial to learn how to build this sample API plugin can be found at [Get started building an API plugin for Microsoft Copilot](https://learn.microsoft.com/copilot-plugins/get-started). 17 | 18 | This API plugin finds real estate properties that are for sale on the market. When the user asks a question about real estate properties, Microsoft Copilot can use this plugin to find real estate properties that have matching criteria. The plugin uses hard-coded data to return results. 19 | 20 | ## Local development 21 | 22 | 1. Clone this repository. 23 | 1. At a command prompt, enter `cd contoso-real-estate` to change to this sample's directory. 24 | 1. Enter `npm install` to install dependencies. 25 | 1. Enter `node server.js` to start the server. The server starts on port `8080`. 26 | 1. Test the API, such as by sending a request to `http://localhost:8080/get-listings?city=Paris&bedrooms=3`. 27 | 28 | ## Testing the plugin 29 | 30 | To use and test this API plugin in Copilot in Bing, see [Test and debug an API plugin](https://learn.microsoft.com/copilot-plugins/test-debug/sideload-test-plugins). 31 | -------------------------------------------------------------------------------- /contoso-real-estate/ai-plugin.json: -------------------------------------------------------------------------------- 1 | { 2 | "schema_version": "v1", 3 | "name_for_model": "contosorealestate", 4 | "description_for_model": "Plugin for finding properties for sale. Use it whenever a user asks about real estate properties for sale on the market. It can be used to search for properties in a particular city, and with a given number of bedrooms, bathrooms, and amenities.", 5 | "name_for_human": "Contoso Real Estate", 6 | "description_for_human": "Find up to date and detailed real estate properties for sale on the market", 7 | "api": { 8 | "type": "openapi", 9 | "url": "http://localhost:8080/openapi.yaml", 10 | "is_user_authenticated": false 11 | }, 12 | "auth": { 13 | "type": "none" 14 | }, 15 | "logo_url": "http://localhost:8080/logo.png", 16 | "contact_email": "contact@contoso.com", 17 | "legal_info_url": "https://contoso.com/legal/" 18 | } -------------------------------------------------------------------------------- /contoso-real-estate/get-listings.js: -------------------------------------------------------------------------------- 1 | import listings from "./listings.json" assert { type: "json" }; 2 | 3 | // Return only the first 5 results. 4 | const RESULT_LIMIT = 5; 5 | 6 | export default function getListings(city, bedrooms, bathrooms, amenities) { 7 | return listings.filter(listing => { 8 | const cityMatch = city 9 | ? listing.city.toLowerCase() === city.toLowerCase() 10 | : true; 11 | 12 | const bedroomsMatch = bedrooms 13 | ? listing.bedrooms === bedrooms 14 | : true; 15 | 16 | const bathroomsMatch = bathrooms 17 | ? listing.bathrooms === bathrooms 18 | : true; 19 | 20 | const amenitiesMatch = amenities && amenities.length 21 | ? amenities.every(amenity => listing.amenities.includes(amenity)) 22 | : true; 23 | 24 | return cityMatch && bedroomsMatch && bathroomsMatch && amenitiesMatch; 25 | }).slice(0, RESULT_LIMIT); 26 | } 27 | -------------------------------------------------------------------------------- /contoso-real-estate/listings.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "title": "Bright apartment close to the park", 4 | "city": "Edinburgh", 5 | "bedrooms": 3, 6 | "bathrooms": 3, 7 | "amenities": [ 8 | "no furniture", 9 | "fireplace", 10 | "garden" 11 | ], 12 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 13 | }, 14 | { 15 | "title": "Luxurious house in the suburbs", 16 | "city": "Guangzhou", 17 | "bedrooms": 5, 18 | "bathrooms": 1, 19 | "amenities": [ 20 | "laundry room", 21 | "furniture", 22 | "gym" 23 | ], 24 | "description": "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 25 | }, 26 | { 27 | "title": "Luxurious house in the suburbs", 28 | "city": "Milan", 29 | "bedrooms": 3, 30 | "bathrooms": 1, 31 | "amenities": [ 32 | "balcony", 33 | "sauna", 34 | "fireplace" 35 | ], 36 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 37 | }, 38 | { 39 | "title": "Art-deco loft close to the metro station", 40 | "city": "Tel Aviv", 41 | "bedrooms": 1, 42 | "bathrooms": 2, 43 | "amenities": [ 44 | "furniture", 45 | "patio", 46 | "terrace" 47 | ], 48 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 49 | }, 50 | { 51 | "title": "Beautiful house in the countryside", 52 | "city": "New York", 53 | "bedrooms": 5, 54 | "bathrooms": 1, 55 | "amenities": [ 56 | "wi-fi", 57 | "jacuzzi", 58 | "terrace" 59 | ], 60 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 61 | }, 62 | { 63 | "title": "Luxurious house in the suburbs", 64 | "city": "Paris", 65 | "bedrooms": 4, 66 | "bathrooms": 2, 67 | "amenities": [ 68 | "no furniture", 69 | "furniture", 70 | "balcony" 71 | ], 72 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 73 | }, 74 | { 75 | "title": "Spacious apartment for a young family", 76 | "city": "Johannesburg", 77 | "bedrooms": 2, 78 | "bathrooms": 1, 79 | "amenities": [ 80 | "parking", 81 | "microwave", 82 | "air conditioning" 83 | ], 84 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 85 | }, 86 | { 87 | "title": "Modern apartment close to the metro station", 88 | "city": "Beijing", 89 | "bedrooms": 2, 90 | "bathrooms": 3, 91 | "amenities": [ 92 | "gym", 93 | "air conditioning", 94 | "swimming pool" 95 | ], 96 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 97 | }, 98 | { 99 | "title": "Charming apartment close to the train station", 100 | "city": "Beijing", 101 | "bedrooms": 4, 102 | "bathrooms": 2, 103 | "amenities": [ 104 | "laundry room", 105 | "microwave", 106 | "fireplace" 107 | ], 108 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 109 | }, 110 | { 111 | "title": "Spacious apartment for a young family", 112 | "city": "San Francisco", 113 | "bedrooms": 2, 114 | "bathrooms": 2, 115 | "amenities": [ 116 | "swimming pool", 117 | "sauna", 118 | "wi-fi" 119 | ], 120 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 121 | }, 122 | { 123 | "title": "Beautiful house in the countryside", 124 | "city": "Tokyo", 125 | "bedrooms": 1, 126 | "bathrooms": 2, 127 | "amenities": [ 128 | "fireplace", 129 | "jacuzzi", 130 | "balcony" 131 | ], 132 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 133 | }, 134 | { 135 | "title": "Luminous apartment in the heart of the city", 136 | "city": "New York", 137 | "bedrooms": 4, 138 | "bathrooms": 1, 139 | "amenities": [ 140 | "parking", 141 | "fireplace", 142 | "furniture" 143 | ], 144 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 145 | }, 146 | { 147 | "title": "Beautiful house in the countryside", 148 | "city": "Mumbai", 149 | "bedrooms": 4, 150 | "bathrooms": 1, 151 | "amenities": [ 152 | "garden", 153 | "gym", 154 | "fireplace" 155 | ], 156 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 157 | }, 158 | { 159 | "title": "Charming apartment close to the mall", 160 | "city": "Montral", 161 | "bedrooms": 4, 162 | "bathrooms": 3, 163 | "amenities": [ 164 | "terrace", 165 | "furniture", 166 | "microwave" 167 | ], 168 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 169 | }, 170 | { 171 | "title": "Luminous apartment in the heart of the city", 172 | "city": "Bangalore", 173 | "bedrooms": 2, 174 | "bathrooms": 1, 175 | "amenities": [ 176 | "wi-fi", 177 | "jacuzzi", 178 | "terrace" 179 | ], 180 | "description": "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 181 | }, 182 | { 183 | "title": "Practical loft downtown", 184 | "city": "Houston", 185 | "bedrooms": 1, 186 | "bathrooms": 2, 187 | "amenities": [ 188 | "air conditioning", 189 | "heating", 190 | "dishwasher" 191 | ], 192 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 193 | }, 194 | { 195 | "title": "Practical loft downtown", 196 | "city": "Paris", 197 | "bedrooms": 2, 198 | "bathrooms": 3, 199 | "amenities": [ 200 | "elevator", 201 | "garden", 202 | "microwave" 203 | ], 204 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 205 | }, 206 | { 207 | "title": "Beautiful house in the countryside", 208 | "city": "Philiadeplhia", 209 | "bedrooms": 3, 210 | "bathrooms": 2, 211 | "amenities": [ 212 | "parking", 213 | "sauna", 214 | "gym" 215 | ], 216 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 217 | }, 218 | { 219 | "title": "Beautiful house in the countryside", 220 | "city": "Atlanta", 221 | "bedrooms": 3, 222 | "bathrooms": 3, 223 | "amenities": [ 224 | "balcony", 225 | "laundry room", 226 | "sauna" 227 | ], 228 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 229 | }, 230 | { 231 | "title": "Practical loft downtown", 232 | "city": "Paris", 233 | "bedrooms": 1, 234 | "bathrooms": 2, 235 | "amenities": [ 236 | "swimming pool", 237 | "terrace", 238 | "no furniture" 239 | ], 240 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 241 | }, 242 | { 243 | "title": "Charming house close to the train station", 244 | "city": "Tokyo", 245 | "bedrooms": 3, 246 | "bathrooms": 2, 247 | "amenities": [ 248 | "garden", 249 | "balcony", 250 | "gym" 251 | ], 252 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 253 | }, 254 | { 255 | "title": "Art-deco loft close to the metro station", 256 | "city": "Milan", 257 | "bedrooms": 3, 258 | "bathrooms": 3, 259 | "amenities": [ 260 | "laundry room", 261 | "air conditioning", 262 | "jacuzzi" 263 | ], 264 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 265 | }, 266 | { 267 | "title": "Beautiful house in the countryside", 268 | "city": "Boston", 269 | "bedrooms": 3, 270 | "bathrooms": 2, 271 | "amenities": [ 272 | "gym", 273 | "wi-fi", 274 | "fireplace" 275 | ], 276 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 277 | }, 278 | { 279 | "title": "Bright apartment close to the park", 280 | "city": "Boston", 281 | "bedrooms": 3, 282 | "bathrooms": 1, 283 | "amenities": [ 284 | "dishwasher", 285 | "microwave", 286 | "fireplace" 287 | ], 288 | "description": "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 289 | }, 290 | { 291 | "title": "Charming apartment close to the train station", 292 | "city": "San Francisco", 293 | "bedrooms": 2, 294 | "bathrooms": 2, 295 | "amenities": [ 296 | "microwave", 297 | "laundry room", 298 | "gym" 299 | ], 300 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 301 | }, 302 | { 303 | "title": "Bright apartment close to the park", 304 | "city": "San Francisco", 305 | "bedrooms": 1, 306 | "bathrooms": 2, 307 | "amenities": [ 308 | "sauna", 309 | "patio", 310 | "air conditioning" 311 | ], 312 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 313 | }, 314 | { 315 | "title": "Wonderful chalet close to the train station", 316 | "city": "Edinburgh", 317 | "bedrooms": 3, 318 | "bathrooms": 2, 319 | "amenities": [ 320 | "microwave", 321 | "gym", 322 | "swimming pool" 323 | ], 324 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 325 | }, 326 | { 327 | "title": "Beautiful house in the countryside", 328 | "city": "Sidney", 329 | "bedrooms": 4, 330 | "bathrooms": 2, 331 | "amenities": [ 332 | "patio", 333 | "air conditioning", 334 | "sauna" 335 | ], 336 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 337 | }, 338 | { 339 | "title": "Beautiful house in the countryside", 340 | "city": "Taipei", 341 | "bedrooms": 3, 342 | "bathrooms": 2, 343 | "amenities": [ 344 | "microwave", 345 | "furniture", 346 | "garden" 347 | ], 348 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 349 | }, 350 | { 351 | "title": "Spacious apartment for a young family", 352 | "city": "Johannesburg", 353 | "bedrooms": 4, 354 | "bathrooms": 2, 355 | "amenities": [ 356 | "terrace", 357 | "laundry room", 358 | "sauna" 359 | ], 360 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 361 | }, 362 | { 363 | "title": "Wonderful chalet close to the train station", 364 | "city": "Milan", 365 | "bedrooms": 5, 366 | "bathrooms": 1, 367 | "amenities": [ 368 | "heating", 369 | "elevator", 370 | "garden" 371 | ], 372 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 373 | }, 374 | { 375 | "title": "Charming apartment close to the train station", 376 | "city": "Milan", 377 | "bedrooms": 1, 378 | "bathrooms": 3, 379 | "amenities": [ 380 | "parking", 381 | "wi-fi", 382 | "patio" 383 | ], 384 | "description": "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 385 | }, 386 | { 387 | "title": "Beautiful house in the countryside", 388 | "city": "Houston", 389 | "bedrooms": 4, 390 | "bathrooms": 3, 391 | "amenities": [ 392 | "microwave", 393 | "garden", 394 | "wi-fi" 395 | ], 396 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 397 | }, 398 | { 399 | "title": "Luxurious apartment by the park", 400 | "city": "London", 401 | "bedrooms": 4, 402 | "bathrooms": 3, 403 | "amenities": [ 404 | "no furniture", 405 | "laundry room", 406 | "balcony" 407 | ], 408 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 409 | }, 410 | { 411 | "title": "Charming house close to the train station", 412 | "city": "Mumbai", 413 | "bedrooms": 5, 414 | "bathrooms": 2, 415 | "amenities": [ 416 | "elevator", 417 | "microwave", 418 | "parking" 419 | ], 420 | "description": "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 421 | }, 422 | { 423 | "title": "Bright apartment close to the park", 424 | "city": "Cologne", 425 | "bedrooms": 4, 426 | "bathrooms": 1, 427 | "amenities": [ 428 | "air conditioning", 429 | "swimming pool", 430 | "balcony" 431 | ], 432 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 433 | }, 434 | { 435 | "title": "Spacious house in the suburbs", 436 | "city": "Dubai", 437 | "bedrooms": 3, 438 | "bathrooms": 3, 439 | "amenities": [ 440 | "laundry room", 441 | "elevator", 442 | "microwave" 443 | ], 444 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 445 | }, 446 | { 447 | "title": "Charming apartment close to the mall", 448 | "city": "Tel Aviv", 449 | "bedrooms": 1, 450 | "bathrooms": 3, 451 | "amenities": [ 452 | "microwave", 453 | "garden", 454 | "wi-fi" 455 | ], 456 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 457 | }, 458 | { 459 | "title": "Wonderful house close to the mall", 460 | "city": "Dallas", 461 | "bedrooms": 5, 462 | "bathrooms": 3, 463 | "amenities": [ 464 | "furniture", 465 | "gym", 466 | "fireplace" 467 | ], 468 | "description": "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 469 | }, 470 | { 471 | "title": "Beautiful house in the countryside", 472 | "city": "Paris", 473 | "bedrooms": 2, 474 | "bathrooms": 3, 475 | "amenities": [ 476 | "swimming pool", 477 | "furniture", 478 | "laundry room" 479 | ], 480 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 481 | }, 482 | { 483 | "title": "Cozy apartment in the heart of the city", 484 | "city": "Taipei", 485 | "bedrooms": 5, 486 | "bathrooms": 1, 487 | "amenities": [ 488 | "swimming pool", 489 | "dishwasher", 490 | "garden" 491 | ], 492 | "description": "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 493 | }, 494 | { 495 | "title": "Bright apartment close to the park", 496 | "city": "Sao Paulo", 497 | "bedrooms": 4, 498 | "bathrooms": 1, 499 | "amenities": [ 500 | "dishwasher", 501 | "no furniture", 502 | "wi-fi" 503 | ], 504 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 505 | }, 506 | { 507 | "title": "Bright apartment close to the park", 508 | "city": "Johannesburg", 509 | "bedrooms": 1, 510 | "bathrooms": 3, 511 | "amenities": [ 512 | "terrace", 513 | "balcony", 514 | "laundry room" 515 | ], 516 | "description": "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 517 | }, 518 | { 519 | "title": "Beautiful house in the countryside", 520 | "city": "Taipei", 521 | "bedrooms": 5, 522 | "bathrooms": 3, 523 | "amenities": [ 524 | "no furniture", 525 | "fireplace", 526 | "parking" 527 | ], 528 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 529 | }, 530 | { 531 | "title": "Modern apartment close to the metro station", 532 | "city": "Guangzhou", 533 | "bedrooms": 5, 534 | "bathrooms": 2, 535 | "amenities": [ 536 | "garden", 537 | "sauna", 538 | "terrace" 539 | ], 540 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 541 | }, 542 | { 543 | "title": "Luminous apartment in the heart of the city", 544 | "city": "Beijing", 545 | "bedrooms": 2, 546 | "bathrooms": 3, 547 | "amenities": [ 548 | "microwave", 549 | "sauna", 550 | "parking" 551 | ], 552 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 553 | }, 554 | { 555 | "title": "Luxurious house in the suburbs", 556 | "city": "New York", 557 | "bedrooms": 5, 558 | "bathrooms": 2, 559 | "amenities": [ 560 | "terrace", 561 | "wi-fi", 562 | "no furniture" 563 | ], 564 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 565 | }, 566 | { 567 | "title": "Spacious apartment for a young family", 568 | "city": "Philiadeplhia", 569 | "bedrooms": 5, 570 | "bathrooms": 1, 571 | "amenities": [ 572 | "balcony", 573 | "fireplace", 574 | "jacuzzi" 575 | ], 576 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 577 | }, 578 | { 579 | "title": "Spacious apartment for a young family", 580 | "city": "Houston", 581 | "bedrooms": 4, 582 | "bathrooms": 2, 583 | "amenities": [ 584 | "microwave", 585 | "furniture", 586 | "dishwasher" 587 | ], 588 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 589 | }, 590 | { 591 | "title": "Charming house close to the train station", 592 | "city": "Beijing", 593 | "bedrooms": 5, 594 | "bathrooms": 3, 595 | "amenities": [ 596 | "gym", 597 | "furniture", 598 | "parking" 599 | ], 600 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 601 | }, 602 | { 603 | "title": "Wonderful chalet close to the train station", 604 | "city": "Beijing", 605 | "bedrooms": 4, 606 | "bathrooms": 1, 607 | "amenities": [ 608 | "no furniture", 609 | "dishwasher", 610 | "elevator" 611 | ], 612 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 613 | }, 614 | { 615 | "title": "Art-deco loft close to the metro station", 616 | "city": "Houston", 617 | "bedrooms": 4, 618 | "bathrooms": 2, 619 | "amenities": [ 620 | "no furniture", 621 | "wi-fi", 622 | "laundry room" 623 | ], 624 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 625 | }, 626 | { 627 | "title": "Charming house close to the train station", 628 | "city": "Cologne", 629 | "bedrooms": 1, 630 | "bathrooms": 3, 631 | "amenities": [ 632 | "terrace", 633 | "swimming pool", 634 | "wi-fi" 635 | ], 636 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 637 | }, 638 | { 639 | "title": "Spacious apartment for a young family", 640 | "city": "Bangalore", 641 | "bedrooms": 1, 642 | "bathrooms": 2, 643 | "amenities": [ 644 | "patio", 645 | "gym", 646 | "swimming pool" 647 | ], 648 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 649 | }, 650 | { 651 | "title": "Charming apartment close to the mall", 652 | "city": "Tokyo", 653 | "bedrooms": 3, 654 | "bathrooms": 3, 655 | "amenities": [ 656 | "balcony", 657 | "dishwasher", 658 | "terrace" 659 | ], 660 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 661 | }, 662 | { 663 | "title": "Modern apartment close to the metro station", 664 | "city": "Milan", 665 | "bedrooms": 3, 666 | "bathrooms": 3, 667 | "amenities": [ 668 | "swimming pool", 669 | "laundry room", 670 | "jacuzzi" 671 | ], 672 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 673 | }, 674 | { 675 | "title": "Luxurious apartment by the park", 676 | "city": "Charlotte", 677 | "bedrooms": 5, 678 | "bathrooms": 1, 679 | "amenities": [ 680 | "patio", 681 | "garden", 682 | "elevator" 683 | ], 684 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 685 | }, 686 | { 687 | "title": "Charming apartment close to the mall", 688 | "city": "Edinburgh", 689 | "bedrooms": 5, 690 | "bathrooms": 3, 691 | "amenities": [ 692 | "fireplace", 693 | "terrace", 694 | "microwave" 695 | ], 696 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 697 | }, 698 | { 699 | "title": "Beautiful house in the countryside", 700 | "city": "Taipei", 701 | "bedrooms": 5, 702 | "bathrooms": 3, 703 | "amenities": [ 704 | "balcony", 705 | "heating", 706 | "no furniture" 707 | ], 708 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 709 | }, 710 | { 711 | "title": "Charming apartment close to the mall", 712 | "city": "Singapore", 713 | "bedrooms": 2, 714 | "bathrooms": 3, 715 | "amenities": [ 716 | "heating", 717 | "air conditioning", 718 | "jacuzzi" 719 | ], 720 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 721 | }, 722 | { 723 | "title": "Wonderful house close to the mall", 724 | "city": "Guangzhou", 725 | "bedrooms": 4, 726 | "bathrooms": 1, 727 | "amenities": [ 728 | "no furniture", 729 | "gym", 730 | "parking" 731 | ], 732 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 733 | }, 734 | { 735 | "title": "Cozy apartment in the heart of the city", 736 | "city": "Dubai", 737 | "bedrooms": 4, 738 | "bathrooms": 1, 739 | "amenities": [ 740 | "wi-fi", 741 | "parking", 742 | "heating" 743 | ], 744 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 745 | }, 746 | { 747 | "title": "Charming house close to the train station", 748 | "city": "Bangalore", 749 | "bedrooms": 3, 750 | "bathrooms": 2, 751 | "amenities": [ 752 | "elevator", 753 | "dishwasher", 754 | "fireplace" 755 | ], 756 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 757 | }, 758 | { 759 | "title": "Luxurious house in the suburbs", 760 | "city": "Cologne", 761 | "bedrooms": 3, 762 | "bathrooms": 3, 763 | "amenities": [ 764 | "balcony", 765 | "garden", 766 | "jacuzzi" 767 | ], 768 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 769 | }, 770 | { 771 | "title": "Beautiful house in the countryside", 772 | "city": "Sidney", 773 | "bedrooms": 3, 774 | "bathrooms": 3, 775 | "amenities": [ 776 | "sauna", 777 | "laundry room", 778 | "jacuzzi" 779 | ], 780 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 781 | }, 782 | { 783 | "title": "Practical loft downtown", 784 | "city": "Taipei", 785 | "bedrooms": 2, 786 | "bathrooms": 1, 787 | "amenities": [ 788 | "furniture", 789 | "no furniture", 790 | "gym" 791 | ], 792 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 793 | }, 794 | { 795 | "title": "Art-deco loft close to the metro station", 796 | "city": "Beijing", 797 | "bedrooms": 5, 798 | "bathrooms": 3, 799 | "amenities": [ 800 | "wi-fi", 801 | "garden", 802 | "fireplace" 803 | ], 804 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 805 | }, 806 | { 807 | "title": "Bright apartment close to the park", 808 | "city": "London", 809 | "bedrooms": 5, 810 | "bathrooms": 1, 811 | "amenities": [ 812 | "terrace", 813 | "wi-fi", 814 | "balcony" 815 | ], 816 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 817 | }, 818 | { 819 | "title": "Bright apartment close to the park", 820 | "city": "Boston", 821 | "bedrooms": 4, 822 | "bathrooms": 2, 823 | "amenities": [ 824 | "heating", 825 | "patio", 826 | "sauna" 827 | ], 828 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 829 | }, 830 | { 831 | "title": "Cozy apartment in the heart of the city", 832 | "city": "Irvine", 833 | "bedrooms": 4, 834 | "bathrooms": 2, 835 | "amenities": [ 836 | "elevator", 837 | "no furniture", 838 | "laundry room" 839 | ], 840 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 841 | }, 842 | { 843 | "title": "Charming house close to the train station", 844 | "city": "Edinburgh", 845 | "bedrooms": 2, 846 | "bathrooms": 1, 847 | "amenities": [ 848 | "furniture", 849 | "wi-fi", 850 | "microwave" 851 | ], 852 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 853 | }, 854 | { 855 | "title": "Modern apartment close to the metro station", 856 | "city": "Chicago", 857 | "bedrooms": 2, 858 | "bathrooms": 2, 859 | "amenities": [ 860 | "fireplace", 861 | "garden", 862 | "dishwasher" 863 | ], 864 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 865 | }, 866 | { 867 | "title": "Charming apartment close to the train station", 868 | "city": "Philiadeplhia", 869 | "bedrooms": 5, 870 | "bathrooms": 3, 871 | "amenities": [ 872 | "heating", 873 | "fireplace", 874 | "patio" 875 | ], 876 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 877 | }, 878 | { 879 | "title": "Beautiful house in the countryside", 880 | "city": "Sidney", 881 | "bedrooms": 4, 882 | "bathrooms": 1, 883 | "amenities": [ 884 | "dishwasher", 885 | "patio", 886 | "fireplace" 887 | ], 888 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 889 | }, 890 | { 891 | "title": "Bright apartment close to the park", 892 | "city": "Houston", 893 | "bedrooms": 2, 894 | "bathrooms": 3, 895 | "amenities": [ 896 | "terrace", 897 | "gym", 898 | "furniture" 899 | ], 900 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 901 | }, 902 | { 903 | "title": "Beautiful house in the countryside", 904 | "city": "Boston", 905 | "bedrooms": 2, 906 | "bathrooms": 1, 907 | "amenities": [ 908 | "jacuzzi", 909 | "air conditioning", 910 | "wi-fi" 911 | ], 912 | "description": "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 913 | }, 914 | { 915 | "title": "Luminous apartment in the heart of the city", 916 | "city": "Dubai", 917 | "bedrooms": 2, 918 | "bathrooms": 3, 919 | "amenities": [ 920 | "swimming pool", 921 | "balcony", 922 | "heating" 923 | ], 924 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 925 | }, 926 | { 927 | "title": "Charming apartment close to the train station", 928 | "city": "Dubai", 929 | "bedrooms": 3, 930 | "bathrooms": 2, 931 | "amenities": [ 932 | "jacuzzi", 933 | "patio", 934 | "dishwasher" 935 | ], 936 | "description": "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 937 | }, 938 | { 939 | "title": "Wonderful house close to the mall", 940 | "city": "Milan", 941 | "bedrooms": 2, 942 | "bathrooms": 3, 943 | "amenities": [ 944 | "laundry room", 945 | "wi-fi", 946 | "elevator" 947 | ], 948 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 949 | }, 950 | { 951 | "title": "Spacious apartment for a young family", 952 | "city": "Tel Aviv", 953 | "bedrooms": 3, 954 | "bathrooms": 2, 955 | "amenities": [ 956 | "laundry room", 957 | "fireplace", 958 | "parking" 959 | ], 960 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 961 | }, 962 | { 963 | "title": "Bright apartment close to the park", 964 | "city": "Irvine", 965 | "bedrooms": 1, 966 | "bathrooms": 3, 967 | "amenities": [ 968 | "dishwasher", 969 | "gym", 970 | "furniture" 971 | ], 972 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 973 | }, 974 | { 975 | "title": "Luxurious apartment by the park", 976 | "city": "Dallas", 977 | "bedrooms": 1, 978 | "bathrooms": 3, 979 | "amenities": [ 980 | "air conditioning", 981 | "balcony", 982 | "fireplace" 983 | ], 984 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 985 | }, 986 | { 987 | "title": "Charming apartment close to the mall", 988 | "city": "Johannesburg", 989 | "bedrooms": 5, 990 | "bathrooms": 1, 991 | "amenities": [ 992 | "furniture", 993 | "garden", 994 | "no furniture" 995 | ], 996 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 997 | }, 998 | { 999 | "title": "Luxurious apartment by the park", 1000 | "city": "Philiadeplhia", 1001 | "bedrooms": 5, 1002 | "bathrooms": 2, 1003 | "amenities": [ 1004 | "microwave", 1005 | "jacuzzi", 1006 | "furniture" 1007 | ], 1008 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 1009 | }, 1010 | { 1011 | "title": "Charming apartment close to the train station", 1012 | "city": "Cologne", 1013 | "bedrooms": 5, 1014 | "bathrooms": 1, 1015 | "amenities": [ 1016 | "patio", 1017 | "parking", 1018 | "heating" 1019 | ], 1020 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 1021 | }, 1022 | { 1023 | "title": "Beautiful house in the countryside", 1024 | "city": "Tokyo", 1025 | "bedrooms": 1, 1026 | "bathrooms": 3, 1027 | "amenities": [ 1028 | "gym", 1029 | "laundry room", 1030 | "furniture" 1031 | ], 1032 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 1033 | }, 1034 | { 1035 | "title": "Luxurious apartment by the park", 1036 | "city": "Edinburgh", 1037 | "bedrooms": 3, 1038 | "bathrooms": 2, 1039 | "amenities": [ 1040 | "dishwasher", 1041 | "wi-fi", 1042 | "furniture" 1043 | ], 1044 | "description": "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 1045 | }, 1046 | { 1047 | "title": "Beautiful house in the countryside", 1048 | "city": "Cologne", 1049 | "bedrooms": 1, 1050 | "bathrooms": 1, 1051 | "amenities": [ 1052 | "wi-fi", 1053 | "laundry room", 1054 | "terrace" 1055 | ], 1056 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 1057 | }, 1058 | { 1059 | "title": "Charming house close to the train station", 1060 | "city": "Sao Paulo", 1061 | "bedrooms": 3, 1062 | "bathrooms": 3, 1063 | "amenities": [ 1064 | "air conditioning", 1065 | "microwave", 1066 | "jacuzzi" 1067 | ], 1068 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 1069 | }, 1070 | { 1071 | "title": "Art-deco loft close to the metro station", 1072 | "city": "London", 1073 | "bedrooms": 4, 1074 | "bathrooms": 3, 1075 | "amenities": [ 1076 | "fireplace", 1077 | "furniture", 1078 | "elevator" 1079 | ], 1080 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 1081 | }, 1082 | { 1083 | "title": "Luminous apartment in the heart of the city", 1084 | "city": "Houston", 1085 | "bedrooms": 3, 1086 | "bathrooms": 1, 1087 | "amenities": [ 1088 | "sauna", 1089 | "swimming pool", 1090 | "garden" 1091 | ], 1092 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 1093 | }, 1094 | { 1095 | "title": "Luxurious apartment by the park", 1096 | "city": "Montral", 1097 | "bedrooms": 1, 1098 | "bathrooms": 2, 1099 | "amenities": [ 1100 | "garden", 1101 | "gym", 1102 | "laundry room" 1103 | ], 1104 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 1105 | }, 1106 | { 1107 | "title": "Beautiful house in the countryside", 1108 | "city": "Los Angeles", 1109 | "bedrooms": 1, 1110 | "bathrooms": 3, 1111 | "amenities": [ 1112 | "no furniture", 1113 | "wi-fi", 1114 | "patio" 1115 | ], 1116 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 1117 | }, 1118 | { 1119 | "title": "Beautiful house in the countryside", 1120 | "city": "Chicago", 1121 | "bedrooms": 1, 1122 | "bathrooms": 3, 1123 | "amenities": [ 1124 | "balcony", 1125 | "no furniture", 1126 | "microwave" 1127 | ], 1128 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 1129 | }, 1130 | { 1131 | "title": "Wonderful chalet close to the train station", 1132 | "city": "Paris", 1133 | "bedrooms": 2, 1134 | "bathrooms": 1, 1135 | "amenities": [ 1136 | "balcony", 1137 | "jacuzzi", 1138 | "parking" 1139 | ], 1140 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 1141 | }, 1142 | { 1143 | "title": "Beautiful house in the countryside", 1144 | "city": "Milan", 1145 | "bedrooms": 5, 1146 | "bathrooms": 3, 1147 | "amenities": [ 1148 | "no furniture", 1149 | "elevator", 1150 | "dishwasher" 1151 | ], 1152 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 1153 | }, 1154 | { 1155 | "title": "Beautiful house in the countryside", 1156 | "city": "Milan", 1157 | "bedrooms": 2, 1158 | "bathrooms": 2, 1159 | "amenities": [ 1160 | "patio", 1161 | "gym", 1162 | "sauna" 1163 | ], 1164 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 1165 | }, 1166 | { 1167 | "title": "Spacious apartment for a young family", 1168 | "city": "Johannesburg", 1169 | "bedrooms": 5, 1170 | "bathrooms": 3, 1171 | "amenities": [ 1172 | "air conditioning", 1173 | "sauna", 1174 | "gym" 1175 | ], 1176 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 1177 | }, 1178 | { 1179 | "title": "Luminous apartment in the heart of the city", 1180 | "city": "Dubai", 1181 | "bedrooms": 2, 1182 | "bathrooms": 1, 1183 | "amenities": [ 1184 | "no furniture", 1185 | "elevator", 1186 | "jacuzzi" 1187 | ], 1188 | "description": "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 1189 | }, 1190 | { 1191 | "title": "Luxurious house in the suburbs", 1192 | "city": "Irvine", 1193 | "bedrooms": 5, 1194 | "bathrooms": 3, 1195 | "amenities": [ 1196 | "no furniture", 1197 | "gym", 1198 | "wi-fi" 1199 | ], 1200 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 1201 | }, 1202 | { 1203 | "title": "Beautiful house in the countryside", 1204 | "city": "Bangalore", 1205 | "bedrooms": 4, 1206 | "bathrooms": 2, 1207 | "amenities": [ 1208 | "parking", 1209 | "patio", 1210 | "wi-fi" 1211 | ], 1212 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 1213 | }, 1214 | { 1215 | "title": "Modern apartment close to the metro station", 1216 | "city": "London", 1217 | "bedrooms": 1, 1218 | "bathrooms": 3, 1219 | "amenities": [ 1220 | "fireplace", 1221 | "parking", 1222 | "furniture" 1223 | ], 1224 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 1225 | }, 1226 | { 1227 | "title": "Art-deco loft close to the metro station", 1228 | "city": "Houston", 1229 | "bedrooms": 2, 1230 | "bathrooms": 3, 1231 | "amenities": [ 1232 | "air conditioning", 1233 | "patio", 1234 | "parking" 1235 | ], 1236 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 1237 | }, 1238 | { 1239 | "title": "Beautiful house in the countryside", 1240 | "city": "Montral", 1241 | "bedrooms": 3, 1242 | "bathrooms": 2, 1243 | "amenities": [ 1244 | "dishwasher", 1245 | "air conditioning", 1246 | "parking" 1247 | ], 1248 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 1249 | }, 1250 | { 1251 | "title": "Practical loft downtown", 1252 | "city": "Montral", 1253 | "bedrooms": 3, 1254 | "bathrooms": 2, 1255 | "amenities": [ 1256 | "swimming pool", 1257 | "garden", 1258 | "fireplace" 1259 | ], 1260 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 1261 | }, 1262 | { 1263 | "title": "Art-deco loft close to the metro station", 1264 | "city": "London", 1265 | "bedrooms": 4, 1266 | "bathrooms": 2, 1267 | "amenities": [ 1268 | "furniture", 1269 | "patio", 1270 | "wi-fi" 1271 | ], 1272 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 1273 | }, 1274 | { 1275 | "title": "Bright apartment close to the park", 1276 | "city": "Atlanta", 1277 | "bedrooms": 1, 1278 | "bathrooms": 2, 1279 | "amenities": [ 1280 | "sauna", 1281 | "swimming pool", 1282 | "microwave" 1283 | ], 1284 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 1285 | }, 1286 | { 1287 | "title": "Spacious apartment for a young family", 1288 | "city": "Singapore", 1289 | "bedrooms": 5, 1290 | "bathrooms": 2, 1291 | "amenities": [ 1292 | "sauna", 1293 | "parking", 1294 | "laundry room" 1295 | ], 1296 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 1297 | }, 1298 | { 1299 | "title": "Beautiful house in the countryside", 1300 | "city": "Beijing", 1301 | "bedrooms": 1, 1302 | "bathrooms": 2, 1303 | "amenities": [ 1304 | "terrace", 1305 | "parking", 1306 | "wi-fi" 1307 | ], 1308 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 1309 | }, 1310 | { 1311 | "title": "Art-deco loft close to the metro station", 1312 | "city": "Sao Paulo", 1313 | "bedrooms": 3, 1314 | "bathrooms": 2, 1315 | "amenities": [ 1316 | "jacuzzi", 1317 | "laundry room", 1318 | "swimming pool" 1319 | ], 1320 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 1321 | }, 1322 | { 1323 | "title": "Bright apartment close to the park", 1324 | "city": "Milan", 1325 | "bedrooms": 5, 1326 | "bathrooms": 3, 1327 | "amenities": [ 1328 | "wi-fi", 1329 | "elevator", 1330 | "laundry room" 1331 | ], 1332 | "description": "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 1333 | }, 1334 | { 1335 | "title": "Spacious apartment for a young family", 1336 | "city": "Edinburgh", 1337 | "bedrooms": 2, 1338 | "bathrooms": 3, 1339 | "amenities": [ 1340 | "fireplace", 1341 | "dishwasher", 1342 | "wi-fi" 1343 | ], 1344 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 1345 | }, 1346 | { 1347 | "title": "Cozy apartment in the heart of the city", 1348 | "city": "Edinburgh", 1349 | "bedrooms": 1, 1350 | "bathrooms": 3, 1351 | "amenities": [ 1352 | "furniture", 1353 | "microwave", 1354 | "laundry room" 1355 | ], 1356 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 1357 | }, 1358 | { 1359 | "title": "Modern apartment close to the metro station", 1360 | "city": "Los Angeles", 1361 | "bedrooms": 4, 1362 | "bathrooms": 3, 1363 | "amenities": [ 1364 | "no furniture", 1365 | "gym", 1366 | "swimming pool" 1367 | ], 1368 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 1369 | }, 1370 | { 1371 | "title": "Practical loft downtown", 1372 | "city": "Dublin", 1373 | "bedrooms": 5, 1374 | "bathrooms": 1, 1375 | "amenities": [ 1376 | "elevator", 1377 | "heating", 1378 | "dishwasher" 1379 | ], 1380 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 1381 | }, 1382 | { 1383 | "title": "Bright apartment close to the park", 1384 | "city": "London", 1385 | "bedrooms": 3, 1386 | "bathrooms": 2, 1387 | "amenities": [ 1388 | "furniture", 1389 | "heating", 1390 | "garden" 1391 | ], 1392 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 1393 | }, 1394 | { 1395 | "title": "Spacious apartment for a young family", 1396 | "city": "Beijing", 1397 | "bedrooms": 4, 1398 | "bathrooms": 1, 1399 | "amenities": [ 1400 | "furniture", 1401 | "terrace", 1402 | "garden" 1403 | ], 1404 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 1405 | }, 1406 | { 1407 | "title": "Beautiful house in the countryside", 1408 | "city": "Irvine", 1409 | "bedrooms": 5, 1410 | "bathrooms": 1, 1411 | "amenities": [ 1412 | "gym", 1413 | "wi-fi", 1414 | "air conditioning" 1415 | ], 1416 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 1417 | }, 1418 | { 1419 | "title": "Spacious apartment for a young family", 1420 | "city": "Guangzhou", 1421 | "bedrooms": 3, 1422 | "bathrooms": 1, 1423 | "amenities": [ 1424 | "heating", 1425 | "jacuzzi", 1426 | "sauna" 1427 | ], 1428 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 1429 | }, 1430 | { 1431 | "title": "Beautiful house in the countryside", 1432 | "city": "Guangzhou", 1433 | "bedrooms": 2, 1434 | "bathrooms": 1, 1435 | "amenities": [ 1436 | "no furniture", 1437 | "microwave", 1438 | "wi-fi" 1439 | ], 1440 | "description": "Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat." 1441 | }, 1442 | { 1443 | "title": "Beautiful house in the countryside", 1444 | "city": "Johannesburg", 1445 | "bedrooms": 4, 1446 | "bathrooms": 3, 1447 | "amenities": [ 1448 | "parking", 1449 | "no furniture", 1450 | "heating" 1451 | ], 1452 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 1453 | }, 1454 | { 1455 | "title": "Wonderful house close to the mall", 1456 | "city": "Atlanta", 1457 | "bedrooms": 2, 1458 | "bathrooms": 3, 1459 | "amenities": [ 1460 | "no furniture", 1461 | "laundry room", 1462 | "heating" 1463 | ], 1464 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 1465 | }, 1466 | { 1467 | "title": "Cozy apartment in the heart of the city", 1468 | "city": "San Francisco", 1469 | "bedrooms": 2, 1470 | "bathrooms": 1, 1471 | "amenities": [ 1472 | "elevator", 1473 | "balcony", 1474 | "microwave" 1475 | ], 1476 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 1477 | }, 1478 | { 1479 | "title": "Wonderful house close to the mall", 1480 | "city": "Atlanta", 1481 | "bedrooms": 3, 1482 | "bathrooms": 3, 1483 | "amenities": [ 1484 | "sauna", 1485 | "furniture", 1486 | "laundry room" 1487 | ], 1488 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 1489 | }, 1490 | { 1491 | "title": "Wonderful house close to the mall", 1492 | "city": "Sao Paulo", 1493 | "bedrooms": 3, 1494 | "bathrooms": 2, 1495 | "amenities": [ 1496 | "air conditioning", 1497 | "terrace", 1498 | "microwave" 1499 | ], 1500 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 1501 | }, 1502 | { 1503 | "title": "Bright apartment close to the park", 1504 | "city": "Taipei", 1505 | "bedrooms": 1, 1506 | "bathrooms": 2, 1507 | "amenities": [ 1508 | "balcony", 1509 | "patio", 1510 | "fireplace" 1511 | ], 1512 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 1513 | }, 1514 | { 1515 | "title": "Beautiful house in the countryside", 1516 | "city": "Charlotte", 1517 | "bedrooms": 1, 1518 | "bathrooms": 1, 1519 | "amenities": [ 1520 | "heating", 1521 | "no furniture", 1522 | "garden" 1523 | ], 1524 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 1525 | }, 1526 | { 1527 | "title": "Charming apartment close to the train station", 1528 | "city": "London", 1529 | "bedrooms": 5, 1530 | "bathrooms": 3, 1531 | "amenities": [ 1532 | "patio", 1533 | "sauna", 1534 | "dishwasher" 1535 | ], 1536 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 1537 | }, 1538 | { 1539 | "title": "Wonderful house close to the mall", 1540 | "city": "Irvine", 1541 | "bedrooms": 1, 1542 | "bathrooms": 3, 1543 | "amenities": [ 1544 | "balcony", 1545 | "air conditioning", 1546 | "dishwasher" 1547 | ], 1548 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 1549 | }, 1550 | { 1551 | "title": "Cozy apartment in the heart of the city", 1552 | "city": "Charlotte", 1553 | "bedrooms": 2, 1554 | "bathrooms": 2, 1555 | "amenities": [ 1556 | "patio", 1557 | "sauna", 1558 | "air conditioning" 1559 | ], 1560 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 1561 | }, 1562 | { 1563 | "title": "Spacious house in the suburbs", 1564 | "city": "Johannesburg", 1565 | "bedrooms": 3, 1566 | "bathrooms": 1, 1567 | "amenities": [ 1568 | "no furniture", 1569 | "elevator", 1570 | "gym" 1571 | ], 1572 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 1573 | }, 1574 | { 1575 | "title": "Art-deco loft close to the metro station", 1576 | "city": "Tel Aviv", 1577 | "bedrooms": 2, 1578 | "bathrooms": 3, 1579 | "amenities": [ 1580 | "fireplace", 1581 | "sauna", 1582 | "patio" 1583 | ], 1584 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 1585 | }, 1586 | { 1587 | "title": "Beautiful house in the countryside", 1588 | "city": "Johannesburg", 1589 | "bedrooms": 2, 1590 | "bathrooms": 3, 1591 | "amenities": [ 1592 | "laundry room", 1593 | "patio", 1594 | "heating" 1595 | ], 1596 | "description": "Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt." 1597 | }, 1598 | { 1599 | "title": "Art-deco loft close to the metro station", 1600 | "city": "Singapore", 1601 | "bedrooms": 3, 1602 | "bathrooms": 3, 1603 | "amenities": [ 1604 | "fireplace", 1605 | "gym", 1606 | "heating" 1607 | ], 1608 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 1609 | }, 1610 | { 1611 | "title": "Modern apartment close to the metro station", 1612 | "city": "Milan", 1613 | "bedrooms": 4, 1614 | "bathrooms": 3, 1615 | "amenities": [ 1616 | "swimming pool", 1617 | "dishwasher", 1618 | "patio" 1619 | ], 1620 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 1621 | }, 1622 | { 1623 | "title": "Spacious apartment for a young family", 1624 | "city": "Beijing", 1625 | "bedrooms": 2, 1626 | "bathrooms": 3, 1627 | "amenities": [ 1628 | "fireplace", 1629 | "dishwasher", 1630 | "jacuzzi" 1631 | ], 1632 | "description": "Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur." 1633 | }, 1634 | { 1635 | "title": "Spacious house in the suburbs", 1636 | "city": "Edinburgh", 1637 | "bedrooms": 1, 1638 | "bathrooms": 1, 1639 | "amenities": [ 1640 | "patio", 1641 | "heating", 1642 | "furniture" 1643 | ], 1644 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 1645 | }, 1646 | { 1647 | "title": "Charming apartment close to the mall", 1648 | "city": "Johannesburg", 1649 | "bedrooms": 3, 1650 | "bathrooms": 2, 1651 | "amenities": [ 1652 | "furniture", 1653 | "fireplace", 1654 | "patio" 1655 | ], 1656 | "description": "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo." 1657 | }, 1658 | { 1659 | "title": "Bright apartment close to the park", 1660 | "city": "Houston", 1661 | "bedrooms": 4, 1662 | "bathrooms": 3, 1663 | "amenities": [ 1664 | "garden", 1665 | "gym", 1666 | "air conditioning" 1667 | ], 1668 | "description": "Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur." 1669 | }, 1670 | { 1671 | "title": "Practical loft downtown", 1672 | "city": "Dubai", 1673 | "bedrooms": 3, 1674 | "bathrooms": 3, 1675 | "amenities": [ 1676 | "heating", 1677 | "sauna", 1678 | "terrace" 1679 | ], 1680 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 1681 | }, 1682 | { 1683 | "title": "Beautiful house in the countryside", 1684 | "city": "Atlanta", 1685 | "bedrooms": 4, 1686 | "bathrooms": 1, 1687 | "amenities": [ 1688 | "wi-fi", 1689 | "parking", 1690 | "sauna" 1691 | ], 1692 | "description": "Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem." 1693 | }, 1694 | { 1695 | "title": "Beautiful house in the countryside", 1696 | "city": "Dubai", 1697 | "bedrooms": 5, 1698 | "bathrooms": 3, 1699 | "amenities": [ 1700 | "wi-fi", 1701 | "patio", 1702 | "elevator" 1703 | ], 1704 | "description": "Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae." 1705 | }, 1706 | { 1707 | "title": "Wonderful chalet close to the train station", 1708 | "city": "Atlanta", 1709 | "bedrooms": 5, 1710 | "bathrooms": 3, 1711 | "amenities": [ 1712 | "heating", 1713 | "furniture", 1714 | "swimming pool" 1715 | ], 1716 | "description": "Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus." 1717 | } 1718 | ] -------------------------------------------------------------------------------- /contoso-real-estate/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MicrosoftDocs/mslearn-copilot-plugins/bd2aee55f2e2d1b034940144815d1554830488bd/contoso-real-estate/logo.png -------------------------------------------------------------------------------- /contoso-real-estate/openapi.yaml: -------------------------------------------------------------------------------- 1 | openapi: 3.0.1 2 | info: 3 | title: Contoso Real Estate API 4 | description: Find up to date and detailed real estate properties for sale on the market 5 | version: 0.1.0 6 | servers: 7 | - url: http://localhost:8080 8 | paths: 9 | /get-listings: 10 | get: 11 | operationId: getListings 12 | summary: Get a list of properties matching the specified criteria 13 | description: Returns a list of properties, optionally filtered by providing the city, number of bedrooms, number of bathrooms and a list of amenities as query parameters 14 | parameters: 15 | - name: city 16 | in: query 17 | description: The city to search in 18 | required: false 19 | schema: 20 | type: string 21 | - name: bedrooms 22 | in: query 23 | description: The number of bedrooms 24 | required: false 25 | schema: 26 | type: integer 27 | - name: bathrooms 28 | in: query 29 | description: The number of bathrooms 30 | required: false 31 | schema: 32 | type: integer 33 | - name: amenities 34 | in: query 35 | description: The list of amenities 36 | required: false 37 | schema: 38 | $ref: '#/components/schemas/AmenitiesEnum' 39 | responses: 40 | '200': 41 | description: OK - Returns a list of properties 42 | content: 43 | application/json: 44 | schema: 45 | type: array 46 | items: 47 | $ref: '#/components/schemas/Property' 48 | components: 49 | schemas: 50 | AmenitiesEnum: 51 | type: string 52 | enum: 53 | - air conditioning 54 | - balcony 55 | - dishwasher 56 | - elevator 57 | - fireplace 58 | - furniture 59 | - garden 60 | - gym 61 | - heating 62 | - jacuzzi 63 | - laundry room 64 | - microwave 65 | - no furniture 66 | - parking 67 | - patio 68 | - sauna 69 | - swimming pool 70 | - terrace 71 | - wi-fi 72 | Property: 73 | type: object 74 | properties: 75 | title: 76 | type: string 77 | description: The title of the property listing 78 | city: 79 | type: string 80 | description: The city of the property 81 | bedrooms: 82 | type: integer 83 | description: The number of bedrooms 84 | bathrooms: 85 | type: integer 86 | description: The number of bathrooms 87 | amenities: 88 | type: array 89 | description: The list of amenities 90 | items: 91 | $ref: '#/components/schemas/AmenitiesEnum' 92 | description: 93 | type: string 94 | description: The description of the property 95 | -------------------------------------------------------------------------------- /contoso-real-estate/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "contoso-real-estate-api", 3 | "lockfileVersion": 3, 4 | "requires": true, 5 | "packages": { 6 | "": { 7 | "name": "contoso-real-estate-api", 8 | "dependencies": { 9 | "cors": "^2.8.5", 10 | "express": "^4.19.2" 11 | } 12 | }, 13 | "node_modules/accepts": { 14 | "version": "1.3.8", 15 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", 16 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", 17 | "dependencies": { 18 | "mime-types": "~2.1.34", 19 | "negotiator": "0.6.3" 20 | }, 21 | "engines": { 22 | "node": ">= 0.6" 23 | } 24 | }, 25 | "node_modules/array-flatten": { 26 | "version": "1.1.1", 27 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 28 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" 29 | }, 30 | "node_modules/body-parser": { 31 | "version": "1.20.2", 32 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.2.tgz", 33 | "integrity": "sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==", 34 | "dependencies": { 35 | "bytes": "3.1.2", 36 | "content-type": "~1.0.5", 37 | "debug": "2.6.9", 38 | "depd": "2.0.0", 39 | "destroy": "1.2.0", 40 | "http-errors": "2.0.0", 41 | "iconv-lite": "0.4.24", 42 | "on-finished": "2.4.1", 43 | "qs": "6.11.0", 44 | "raw-body": "2.5.2", 45 | "type-is": "~1.6.18", 46 | "unpipe": "1.0.0" 47 | }, 48 | "engines": { 49 | "node": ">= 0.8", 50 | "npm": "1.2.8000 || >= 1.4.16" 51 | } 52 | }, 53 | "node_modules/bytes": { 54 | "version": "3.1.2", 55 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 56 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", 57 | "engines": { 58 | "node": ">= 0.8" 59 | } 60 | }, 61 | "node_modules/call-bind": { 62 | "version": "1.0.7", 63 | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", 64 | "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", 65 | "dependencies": { 66 | "es-define-property": "^1.0.0", 67 | "es-errors": "^1.3.0", 68 | "function-bind": "^1.1.2", 69 | "get-intrinsic": "^1.2.4", 70 | "set-function-length": "^1.2.1" 71 | }, 72 | "engines": { 73 | "node": ">= 0.4" 74 | }, 75 | "funding": { 76 | "url": "https://github.com/sponsors/ljharb" 77 | } 78 | }, 79 | "node_modules/content-disposition": { 80 | "version": "0.5.4", 81 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", 82 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", 83 | "dependencies": { 84 | "safe-buffer": "5.2.1" 85 | }, 86 | "engines": { 87 | "node": ">= 0.6" 88 | } 89 | }, 90 | "node_modules/content-type": { 91 | "version": "1.0.5", 92 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", 93 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", 94 | "engines": { 95 | "node": ">= 0.6" 96 | } 97 | }, 98 | "node_modules/cookie": { 99 | "version": "0.6.0", 100 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.6.0.tgz", 101 | "integrity": "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw==", 102 | "engines": { 103 | "node": ">= 0.6" 104 | } 105 | }, 106 | "node_modules/cookie-signature": { 107 | "version": "1.0.6", 108 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 109 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" 110 | }, 111 | "node_modules/cors": { 112 | "version": "2.8.5", 113 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 114 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 115 | "dependencies": { 116 | "object-assign": "^4", 117 | "vary": "^1" 118 | }, 119 | "engines": { 120 | "node": ">= 0.10" 121 | } 122 | }, 123 | "node_modules/debug": { 124 | "version": "2.6.9", 125 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 126 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 127 | "dependencies": { 128 | "ms": "2.0.0" 129 | } 130 | }, 131 | "node_modules/define-data-property": { 132 | "version": "1.1.4", 133 | "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", 134 | "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", 135 | "dependencies": { 136 | "es-define-property": "^1.0.0", 137 | "es-errors": "^1.3.0", 138 | "gopd": "^1.0.1" 139 | }, 140 | "engines": { 141 | "node": ">= 0.4" 142 | }, 143 | "funding": { 144 | "url": "https://github.com/sponsors/ljharb" 145 | } 146 | }, 147 | "node_modules/depd": { 148 | "version": "2.0.0", 149 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 150 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 151 | "engines": { 152 | "node": ">= 0.8" 153 | } 154 | }, 155 | "node_modules/destroy": { 156 | "version": "1.2.0", 157 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 158 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", 159 | "engines": { 160 | "node": ">= 0.8", 161 | "npm": "1.2.8000 || >= 1.4.16" 162 | } 163 | }, 164 | "node_modules/ee-first": { 165 | "version": "1.1.1", 166 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 167 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" 168 | }, 169 | "node_modules/encodeurl": { 170 | "version": "1.0.2", 171 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 172 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", 173 | "engines": { 174 | "node": ">= 0.8" 175 | } 176 | }, 177 | "node_modules/es-define-property": { 178 | "version": "1.0.0", 179 | "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", 180 | "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", 181 | "dependencies": { 182 | "get-intrinsic": "^1.2.4" 183 | }, 184 | "engines": { 185 | "node": ">= 0.4" 186 | } 187 | }, 188 | "node_modules/es-errors": { 189 | "version": "1.3.0", 190 | "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", 191 | "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", 192 | "engines": { 193 | "node": ">= 0.4" 194 | } 195 | }, 196 | "node_modules/escape-html": { 197 | "version": "1.0.3", 198 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 199 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" 200 | }, 201 | "node_modules/etag": { 202 | "version": "1.8.1", 203 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 204 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", 205 | "engines": { 206 | "node": ">= 0.6" 207 | } 208 | }, 209 | "node_modules/express": { 210 | "version": "4.19.2", 211 | "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz", 212 | "integrity": "sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==", 213 | "dependencies": { 214 | "accepts": "~1.3.8", 215 | "array-flatten": "1.1.1", 216 | "body-parser": "1.20.2", 217 | "content-disposition": "0.5.4", 218 | "content-type": "~1.0.4", 219 | "cookie": "0.6.0", 220 | "cookie-signature": "1.0.6", 221 | "debug": "2.6.9", 222 | "depd": "2.0.0", 223 | "encodeurl": "~1.0.2", 224 | "escape-html": "~1.0.3", 225 | "etag": "~1.8.1", 226 | "finalhandler": "1.2.0", 227 | "fresh": "0.5.2", 228 | "http-errors": "2.0.0", 229 | "merge-descriptors": "1.0.1", 230 | "methods": "~1.1.2", 231 | "on-finished": "2.4.1", 232 | "parseurl": "~1.3.3", 233 | "path-to-regexp": "0.1.7", 234 | "proxy-addr": "~2.0.7", 235 | "qs": "6.11.0", 236 | "range-parser": "~1.2.1", 237 | "safe-buffer": "5.2.1", 238 | "send": "0.18.0", 239 | "serve-static": "1.15.0", 240 | "setprototypeof": "1.2.0", 241 | "statuses": "2.0.1", 242 | "type-is": "~1.6.18", 243 | "utils-merge": "1.0.1", 244 | "vary": "~1.1.2" 245 | }, 246 | "engines": { 247 | "node": ">= 0.10.0" 248 | } 249 | }, 250 | "node_modules/finalhandler": { 251 | "version": "1.2.0", 252 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", 253 | "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", 254 | "dependencies": { 255 | "debug": "2.6.9", 256 | "encodeurl": "~1.0.2", 257 | "escape-html": "~1.0.3", 258 | "on-finished": "2.4.1", 259 | "parseurl": "~1.3.3", 260 | "statuses": "2.0.1", 261 | "unpipe": "~1.0.0" 262 | }, 263 | "engines": { 264 | "node": ">= 0.8" 265 | } 266 | }, 267 | "node_modules/forwarded": { 268 | "version": "0.2.0", 269 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 270 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", 271 | "engines": { 272 | "node": ">= 0.6" 273 | } 274 | }, 275 | "node_modules/fresh": { 276 | "version": "0.5.2", 277 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 278 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", 279 | "engines": { 280 | "node": ">= 0.6" 281 | } 282 | }, 283 | "node_modules/function-bind": { 284 | "version": "1.1.2", 285 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 286 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 287 | "funding": { 288 | "url": "https://github.com/sponsors/ljharb" 289 | } 290 | }, 291 | "node_modules/get-intrinsic": { 292 | "version": "1.2.4", 293 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", 294 | "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", 295 | "dependencies": { 296 | "es-errors": "^1.3.0", 297 | "function-bind": "^1.1.2", 298 | "has-proto": "^1.0.1", 299 | "has-symbols": "^1.0.3", 300 | "hasown": "^2.0.0" 301 | }, 302 | "engines": { 303 | "node": ">= 0.4" 304 | }, 305 | "funding": { 306 | "url": "https://github.com/sponsors/ljharb" 307 | } 308 | }, 309 | "node_modules/gopd": { 310 | "version": "1.0.1", 311 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", 312 | "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", 313 | "dependencies": { 314 | "get-intrinsic": "^1.1.3" 315 | }, 316 | "funding": { 317 | "url": "https://github.com/sponsors/ljharb" 318 | } 319 | }, 320 | "node_modules/has-property-descriptors": { 321 | "version": "1.0.2", 322 | "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", 323 | "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", 324 | "dependencies": { 325 | "es-define-property": "^1.0.0" 326 | }, 327 | "funding": { 328 | "url": "https://github.com/sponsors/ljharb" 329 | } 330 | }, 331 | "node_modules/has-proto": { 332 | "version": "1.0.3", 333 | "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", 334 | "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", 335 | "engines": { 336 | "node": ">= 0.4" 337 | }, 338 | "funding": { 339 | "url": "https://github.com/sponsors/ljharb" 340 | } 341 | }, 342 | "node_modules/has-symbols": { 343 | "version": "1.0.3", 344 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", 345 | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", 346 | "engines": { 347 | "node": ">= 0.4" 348 | }, 349 | "funding": { 350 | "url": "https://github.com/sponsors/ljharb" 351 | } 352 | }, 353 | "node_modules/hasown": { 354 | "version": "2.0.2", 355 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 356 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 357 | "dependencies": { 358 | "function-bind": "^1.1.2" 359 | }, 360 | "engines": { 361 | "node": ">= 0.4" 362 | } 363 | }, 364 | "node_modules/http-errors": { 365 | "version": "2.0.0", 366 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 367 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 368 | "dependencies": { 369 | "depd": "2.0.0", 370 | "inherits": "2.0.4", 371 | "setprototypeof": "1.2.0", 372 | "statuses": "2.0.1", 373 | "toidentifier": "1.0.1" 374 | }, 375 | "engines": { 376 | "node": ">= 0.8" 377 | } 378 | }, 379 | "node_modules/iconv-lite": { 380 | "version": "0.4.24", 381 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 382 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 383 | "dependencies": { 384 | "safer-buffer": ">= 2.1.2 < 3" 385 | }, 386 | "engines": { 387 | "node": ">=0.10.0" 388 | } 389 | }, 390 | "node_modules/inherits": { 391 | "version": "2.0.4", 392 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 393 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 394 | }, 395 | "node_modules/ipaddr.js": { 396 | "version": "1.9.1", 397 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 398 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", 399 | "engines": { 400 | "node": ">= 0.10" 401 | } 402 | }, 403 | "node_modules/media-typer": { 404 | "version": "0.3.0", 405 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 406 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", 407 | "engines": { 408 | "node": ">= 0.6" 409 | } 410 | }, 411 | "node_modules/merge-descriptors": { 412 | "version": "1.0.1", 413 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 414 | "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" 415 | }, 416 | "node_modules/methods": { 417 | "version": "1.1.2", 418 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 419 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", 420 | "engines": { 421 | "node": ">= 0.6" 422 | } 423 | }, 424 | "node_modules/mime": { 425 | "version": "1.6.0", 426 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 427 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 428 | "bin": { 429 | "mime": "cli.js" 430 | }, 431 | "engines": { 432 | "node": ">=4" 433 | } 434 | }, 435 | "node_modules/mime-db": { 436 | "version": "1.52.0", 437 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 438 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 439 | "engines": { 440 | "node": ">= 0.6" 441 | } 442 | }, 443 | "node_modules/mime-types": { 444 | "version": "2.1.35", 445 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 446 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 447 | "dependencies": { 448 | "mime-db": "1.52.0" 449 | }, 450 | "engines": { 451 | "node": ">= 0.6" 452 | } 453 | }, 454 | "node_modules/ms": { 455 | "version": "2.0.0", 456 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 457 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" 458 | }, 459 | "node_modules/negotiator": { 460 | "version": "0.6.3", 461 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", 462 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", 463 | "engines": { 464 | "node": ">= 0.6" 465 | } 466 | }, 467 | "node_modules/object-assign": { 468 | "version": "4.1.1", 469 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 470 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", 471 | "engines": { 472 | "node": ">=0.10.0" 473 | } 474 | }, 475 | "node_modules/object-inspect": { 476 | "version": "1.13.1", 477 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", 478 | "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", 479 | "funding": { 480 | "url": "https://github.com/sponsors/ljharb" 481 | } 482 | }, 483 | "node_modules/on-finished": { 484 | "version": "2.4.1", 485 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 486 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 487 | "dependencies": { 488 | "ee-first": "1.1.1" 489 | }, 490 | "engines": { 491 | "node": ">= 0.8" 492 | } 493 | }, 494 | "node_modules/parseurl": { 495 | "version": "1.3.3", 496 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 497 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 498 | "engines": { 499 | "node": ">= 0.8" 500 | } 501 | }, 502 | "node_modules/path-to-regexp": { 503 | "version": "0.1.7", 504 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 505 | "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" 506 | }, 507 | "node_modules/proxy-addr": { 508 | "version": "2.0.7", 509 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 510 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 511 | "dependencies": { 512 | "forwarded": "0.2.0", 513 | "ipaddr.js": "1.9.1" 514 | }, 515 | "engines": { 516 | "node": ">= 0.10" 517 | } 518 | }, 519 | "node_modules/qs": { 520 | "version": "6.11.0", 521 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", 522 | "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", 523 | "dependencies": { 524 | "side-channel": "^1.0.4" 525 | }, 526 | "engines": { 527 | "node": ">=0.6" 528 | }, 529 | "funding": { 530 | "url": "https://github.com/sponsors/ljharb" 531 | } 532 | }, 533 | "node_modules/range-parser": { 534 | "version": "1.2.1", 535 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 536 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 537 | "engines": { 538 | "node": ">= 0.6" 539 | } 540 | }, 541 | "node_modules/raw-body": { 542 | "version": "2.5.2", 543 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", 544 | "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", 545 | "dependencies": { 546 | "bytes": "3.1.2", 547 | "http-errors": "2.0.0", 548 | "iconv-lite": "0.4.24", 549 | "unpipe": "1.0.0" 550 | }, 551 | "engines": { 552 | "node": ">= 0.8" 553 | } 554 | }, 555 | "node_modules/safe-buffer": { 556 | "version": "5.2.1", 557 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 558 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 559 | "funding": [ 560 | { 561 | "type": "github", 562 | "url": "https://github.com/sponsors/feross" 563 | }, 564 | { 565 | "type": "patreon", 566 | "url": "https://www.patreon.com/feross" 567 | }, 568 | { 569 | "type": "consulting", 570 | "url": "https://feross.org/support" 571 | } 572 | ] 573 | }, 574 | "node_modules/safer-buffer": { 575 | "version": "2.1.2", 576 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 577 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 578 | }, 579 | "node_modules/send": { 580 | "version": "0.18.0", 581 | "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", 582 | "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", 583 | "dependencies": { 584 | "debug": "2.6.9", 585 | "depd": "2.0.0", 586 | "destroy": "1.2.0", 587 | "encodeurl": "~1.0.2", 588 | "escape-html": "~1.0.3", 589 | "etag": "~1.8.1", 590 | "fresh": "0.5.2", 591 | "http-errors": "2.0.0", 592 | "mime": "1.6.0", 593 | "ms": "2.1.3", 594 | "on-finished": "2.4.1", 595 | "range-parser": "~1.2.1", 596 | "statuses": "2.0.1" 597 | }, 598 | "engines": { 599 | "node": ">= 0.8.0" 600 | } 601 | }, 602 | "node_modules/send/node_modules/ms": { 603 | "version": "2.1.3", 604 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 605 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 606 | }, 607 | "node_modules/serve-static": { 608 | "version": "1.15.0", 609 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", 610 | "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", 611 | "dependencies": { 612 | "encodeurl": "~1.0.2", 613 | "escape-html": "~1.0.3", 614 | "parseurl": "~1.3.3", 615 | "send": "0.18.0" 616 | }, 617 | "engines": { 618 | "node": ">= 0.8.0" 619 | } 620 | }, 621 | "node_modules/set-function-length": { 622 | "version": "1.2.2", 623 | "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", 624 | "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", 625 | "dependencies": { 626 | "define-data-property": "^1.1.4", 627 | "es-errors": "^1.3.0", 628 | "function-bind": "^1.1.2", 629 | "get-intrinsic": "^1.2.4", 630 | "gopd": "^1.0.1", 631 | "has-property-descriptors": "^1.0.2" 632 | }, 633 | "engines": { 634 | "node": ">= 0.4" 635 | } 636 | }, 637 | "node_modules/setprototypeof": { 638 | "version": "1.2.0", 639 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 640 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" 641 | }, 642 | "node_modules/side-channel": { 643 | "version": "1.0.6", 644 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", 645 | "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", 646 | "dependencies": { 647 | "call-bind": "^1.0.7", 648 | "es-errors": "^1.3.0", 649 | "get-intrinsic": "^1.2.4", 650 | "object-inspect": "^1.13.1" 651 | }, 652 | "engines": { 653 | "node": ">= 0.4" 654 | }, 655 | "funding": { 656 | "url": "https://github.com/sponsors/ljharb" 657 | } 658 | }, 659 | "node_modules/statuses": { 660 | "version": "2.0.1", 661 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 662 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 663 | "engines": { 664 | "node": ">= 0.8" 665 | } 666 | }, 667 | "node_modules/toidentifier": { 668 | "version": "1.0.1", 669 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 670 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 671 | "engines": { 672 | "node": ">=0.6" 673 | } 674 | }, 675 | "node_modules/type-is": { 676 | "version": "1.6.18", 677 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 678 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 679 | "dependencies": { 680 | "media-typer": "0.3.0", 681 | "mime-types": "~2.1.24" 682 | }, 683 | "engines": { 684 | "node": ">= 0.6" 685 | } 686 | }, 687 | "node_modules/unpipe": { 688 | "version": "1.0.0", 689 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 690 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", 691 | "engines": { 692 | "node": ">= 0.8" 693 | } 694 | }, 695 | "node_modules/utils-merge": { 696 | "version": "1.0.1", 697 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 698 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", 699 | "engines": { 700 | "node": ">= 0.4.0" 701 | } 702 | }, 703 | "node_modules/vary": { 704 | "version": "1.1.2", 705 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 706 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", 707 | "engines": { 708 | "node": ">= 0.8" 709 | } 710 | } 711 | } 712 | } 713 | -------------------------------------------------------------------------------- /contoso-real-estate/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "contoso-real-estate-api", 3 | "type": "module", 4 | "dependencies": { 5 | "cors": "^2.8.5", 6 | "express": "^4.19.2" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /contoso-real-estate/server.js: -------------------------------------------------------------------------------- 1 | import express from "express"; 2 | import getListings from "./get-listings.js" 3 | import path from "path"; 4 | import cors from "cors"; 5 | 6 | const app = express(); 7 | app.use(cors({ origin: "https://www.bing.com" })); 8 | 9 | app.get("/get-listings", (req, res) => { 10 | const city = req.query.city; 11 | const bedrooms = parseInt(req.query.bedrooms); 12 | const bathrooms = parseInt(req.query.bathrooms); 13 | const amenities = req.query.amenities; 14 | 15 | try { 16 | const listings = getListings(city, bedrooms, bathrooms, amenities); 17 | res.send(listings); 18 | } catch (e) { 19 | res.status(400).send({ error: e.message }); 20 | } 21 | }); 22 | 23 | app.get("/openapi.yaml", (req, res) => { 24 | res.sendFile(path.resolve() + "/openapi.yaml"); 25 | }); 26 | 27 | app.get("/.well-known/ai-plugin.json", (req, res) => { 28 | res.sendFile(path.resolve() + "/ai-plugin.json"); 29 | }); 30 | 31 | app.get("/logo.png", (req, res) => { 32 | res.sendFile(path.resolve() + "/logo.png"); 33 | }); 34 | 35 | app.listen(8080); 36 | --------------------------------------------------------------------------------