> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Skunexus

> Connect Alumio to Skunexus.

## Extra information

System documentation: [Skunexus API Reference](https://demo-stage.skunexus.com/docs/)

## Connector package documentation

### Table of Contents

* **1.** Setting up HTTP Client Skunexus
  * **1.1** Steps
* **2.** Subscribing to entities from Skunexus
  * **2.1** Steps
  * **2.2** General concept
* **3.** Publishing entity to Skunexus
  * **3.1** Steps
  * **3.2** General concept

### 1. Setting up HTTP Client Skunexus

**1.1 Steps**

1. In the Alumio Dashboard, go to Clients -> HTTP Clients. Create a new HTTP Client and select "Skunexus HTTP Client" as the HTTP Client.
2. Fill in the Base URI, Email, and Password.
   (For more information, see [Skunexus Authentication Reference](https://demo-stage.skunexus.com/docs/#/auth/loginUser))
3. You can optionally enable logging of request to get the log of the authentication.
4. Save the HTTP Client for use.

<img src="https://mintcdn.com/alumio/2XcHi1eVMdbU3dfQ/images/connectors/skunexus-01.png?fit=max&auto=format&n=2XcHi1eVMdbU3dfQ&q=85&s=ea91c83a7457016fb2299f6123bd7eed" alt="Skunexus connector screenshot 1" width="690" height="298" data-path="images/connectors/skunexus-01.png" />

### 2. Subscribing to Entities from Skunexus

**2.1 Steps**

1. Go to Connections -> Incoming and create a new incoming configuration and select "Skunexus Subscriber" as the subscriber.
2. Select the entity you want to subscribe to from Skunexus.
3. Add any request parameters needed to subscribe to the entity.
4. You can optionally add a transformer to transform the request parameters into something you will request from Skunexus.
5. You can also optionally enable pagination to allow Alumio fetches paginated entities.
6. Select the Skunexus HTTP Client to use.

**2.2 General Concept**

We follow Skunexus documentation on building this connector, so you can easily use the connector based on [Skunexus API Reference](https://demo-stage.skunexus.com/docs/).

**Entity**

The entity you want to subscribe to Skunexus. Please refer to the entities from [Skunexus API Reference](https://demo-stage.skunexus.com/docs/) page.

**Request Parameters**

These are the parameters you can provide to get the needed entity based on the [Skunexus API Reference](https://demo-stage.skunexus.com/docs/)	.

Please look at the example below on how to fill path field when subscribing ["Find product by ID"](https://demo-stage.skunexus.com/docs/#/products/getProductById) entity.

<img src="https://mintcdn.com/alumio/2XcHi1eVMdbU3dfQ/images/connectors/skunexus-02.png?fit=max&auto=format&n=2XcHi1eVMdbU3dfQ&q=85&s=daf312f8a8a07f692ce8c0f9993bc0c7" alt="Skunexus connector screenshot 2" width="690" height="401" data-path="images/connectors/skunexus-02.png" />

<img src="https://mintcdn.com/alumio/2XcHi1eVMdbU3dfQ/images/connectors/skunexus-03.png?fit=max&auto=format&n=2XcHi1eVMdbU3dfQ&q=85&s=84f6ff0d5587ef344b48e811c301d442" alt="Skunexus connector screenshot 3" width="408" height="104" data-path="images/connectors/skunexus-03.png" />

Based on the documentation, we can see that the end point require "id" as a parameter. That is why we set the "id" inside the path key in the Request Parameters.

Alumio will then make a request to Skunexus with the URL /products/123

* Path is the path parameter of the url. For example the \{id}.
* Query is defined set of parameters attached to the end of a url.\
  Example: [www.url.com?type=true\&start=0](http://www.url.com?type=true\&start=0)
* Payload is the data contained within a request.

**HTTP Client**

The HTTP Client configuration you will use to access Skunexus.

### 3. Publishing Entity to Skunexus

**3.1 Steps**

1. Go to Connections -> Outgoing, create a new outgoing configuration and select "Skunexus Publisher" as the publisher.
2. Select the Action that you want the publisher to perform with the data.
3. Select the Skunexus entity you want the data to be published to.
4. You can optionally add any query data to the request on the key query.
5. You can optionally add any payload data to the request on the key payload.
6. Select the HTTP Client to use.

**3.2 General Concept**

Like the subscriber, the publisher has similar methods on how to use it. The difference is the payload that will be submitted by the publisher originating from the data (from routes, from transformers in outgoing configuration), though you can also add or modify payload using the Request Transformer.

**Action**

Currently, we support Create (HTTP POST method), Put (HTTP PUT method), Patch (HTTP PATCH method) and Delete (HTTP DELETE method) on submitting data to Skunexus.

**Entity**

We support publishing to most Skunexus endpoints.
Please refer to [Skunexus API Reference](https://demo-stage.skunexus.com/docs/) page.

For example, we want to add a new product. Please select “Create” as the Action and ["Adds new product to the system"](https://demo-stage.skunexus.com/docs/#/products/addProduct) as the entity of the publisher.

<img src="https://mintcdn.com/alumio/2XcHi1eVMdbU3dfQ/images/connectors/skunexus-04.png?fit=max&auto=format&n=2XcHi1eVMdbU3dfQ&q=85&s=d00649d4f28b4110cee7410c41e779ca" alt="Skunexus connector screenshot 4" width="690" height="210" data-path="images/connectors/skunexus-04.png" />

<img src="https://mintcdn.com/alumio/2XcHi1eVMdbU3dfQ/images/connectors/skunexus-05.png?fit=max&auto=format&n=2XcHi1eVMdbU3dfQ&q=85&s=f5fe29e1e1c5c28ab96fff491ade58f7" alt="Skunexus connector screenshot 5" width="690" height="206" data-path="images/connectors/skunexus-05.png" />

Based on the documentation, it requires a "Request Body". That is why we set the "Request Body" inside the payload key in the data.

<img src="https://mintcdn.com/alumio/2XcHi1eVMdbU3dfQ/images/connectors/skunexus-06.png?fit=max&auto=format&n=2XcHi1eVMdbU3dfQ&q=85&s=badb9fc34bf21bb8e110bda4ba306183" alt="Skunexus connector screenshot 6" width="353" height="275" data-path="images/connectors/skunexus-06.png" />

Alumio will send an API request to Skunexus with URL /products

Another example is when we want to delete a product by id. Please select “Delete” as the Action and ["Deletes product by ID"](https://demo-stage.skunexus.com/docs/#/products/deleteProduct) as the entity of the publisher.

<img src="https://mintcdn.com/alumio/2XcHi1eVMdbU3dfQ/images/connectors/skunexus-07.png?fit=max&auto=format&n=2XcHi1eVMdbU3dfQ&q=85&s=2dd84b54faff1409e0214c5aac4a307a" alt="Skunexus connector screenshot 7" width="690" height="207" data-path="images/connectors/skunexus-07.png" />

<img src="https://mintcdn.com/alumio/2XcHi1eVMdbU3dfQ/images/connectors/skunexus-08.png?fit=max&auto=format&n=2XcHi1eVMdbU3dfQ&q=85&s=83016283b56b7ccbd9e3b4d0cb5fd480" alt="Skunexus connector screenshot 8" width="386" height="47" data-path="images/connectors/skunexus-08.png" />

Based on the documentation, we can see that the end point require "id" as a parameter. That is why we set the "id" inside the path key in the Request Parameters.

<img src="https://mintcdn.com/alumio/2XcHi1eVMdbU3dfQ/images/connectors/skunexus-09.png?fit=max&auto=format&n=2XcHi1eVMdbU3dfQ&q=85&s=d42ecfa602354dfef26b6e8a54be8ec7" alt="Skunexus connector screenshot 9" width="112" height="108" data-path="images/connectors/skunexus-09.png" />

Alumio will then make a request to Skunexus with the URL /products/123

* Path is the path parameter of the url. For example the \{id}.
* Query is defined set of parameters attached to the end of a url.\
  Example: [www.url.com?type=true\&start=0](http://www.url.com?type=true\&start=0)
* Payload is the data contained within a request.

**HTTP Client**

The HTTP Client configuration you will use to access Skunexus.
