TheKoguryo's Tech Blog

 Version 2024.06.21

Warning

This content has been generated by machine translation. The translations are automated and have not undergone human review or validation.

14.3.3 Insomnia - Calling OCI REST API

Insomnia, a professional REST client tool, is more convenient to use through a GUI. Since OCI Request Signature is not yet natively supported, I would like to explain how to call OCI REST API in Insomnia.

Step 0. Download insomnia

Download the Free app from the official site.

Step 1. insomnia-plugin-oci-request-signature plugin

I made a plugin for OCI through the plugin extension provided by Insomina to make a call through OCI Request Signature. You can install and use it as follows.

Follow the Installation Guide to install the plugin.

Step 2. Setting environment variables

  1. Set the Insomnia environment variable according to the following guide.

  2. Required environment variables

    • isOracleCloud: Set to “true”, the set plugin is applied globally, and the detailed script works only when true.
    • tenancyId: tenancy OCID
    • authUserId: User OCID
    • keyFingerprint: Fingerprint of API Key
    • privateKeyPath: the path of the private key that matches the public key registered with the API key Image

Step 3. Execute User Query REST API

If you select only the environment variable as shown below, you can call the REST API without any additional work.

Picture

Step 4. Run REST API - CreateUser

If you select only the environment variable as shown below, you can call the REST API without any additional work.

Picture



As an individual, this article was written with my personal time. There may be errors in the content of the article, and the opinions in the article are personal opinions.

Last updated on 19 May 2019