# Conclusion

In this brief introduction to REST APIs and the IBM i, I've demonstrated how to use **Node.js** with **restify** on your IBM i to query its local DB2 database. We've also secured selective endpoints using JSON Web Tokens. But this only scratches the surface of what is possible with restify and the IBM i. To explore further, I recommend the following resources:

* <https://www.ibm.com/developerworks/ibmi/library/i-native-js-app-ibmi-with-nodejs/index.html>
* <http://restify.com/docs/home/>
* <https://tutorials.kode-blog.com/nodejs-rest-api>
* <https://code.tutsplus.com/tutorials/restful-api-design-with-nodejs-restify--cms-22637>

Note that many tutorials will suggest you use MongoDB, but anything they suggest there can also be done on your IBM i with DB2, which affords you the security that you have come to rely on and the ability to access all of the same code you've been using for years. Packages like **idb-pconnector** greatly simplify querying your DB2 database, meaning that developing Node.js applications on the IBM i has never been easier!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://testdemogitbook.gitbook.io/restify/conclusion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
