DEV Community

Cover image for HTTP request from Obsidian notes
rooyca
rooyca

Posted on • Edited on • Originally published at dablog.pages.dev

3

HTTP request from Obsidian notes

Are you an Obsidian user looking to elevate your note-taking experience with dynamic data integration? Look no further than APIR (api-request) – an Obsidian plugin designed to streamline HTTP requests directly into your notes.

⚡ How to Use

With APIR, integrating HTTP requests into your notes is a breeze. Simply create a code-block within your note, specifying the language as req. Inside this code-block, customize parameters such as URL, method, body, headers, and more to tailor your request precisely to your needs.

👨🏻‍💻 Example Code-block

```req
url: https://my-json-server.typicode.com/typicode/demo/comments
method: post
body: {"id":1}
headers: {"Accept": "application/json"}
format: <h1>{}</h1>
req-id: id-persona
disabled
```
Enter fullscreen mode Exit fullscreen mode

This example demonstrates how to send a POST request to a server, displaying the response 'id' field within an HTML heading tag. For more info about all the flags you can visit APIR docs.

Ready to revolutionize your note-taking workflow? Try APIR today! 🌟


P.S. If you find any bug, have any problem, doubt or want to add any functionality don't hesitate to write me. (You can also leave your issue at https://github.com/Rooyca/obsidian-api-request/issues)

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more