Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nemoengineering/meilisearch-kotlin
An async Kotlin wrapper around Meilisearch API
https://github.com/nemoengineering/meilisearch-kotlin
Last synced: about 2 months ago
JSON representation
An async Kotlin wrapper around Meilisearch API
- Host: GitHub
- URL: https://github.com/nemoengineering/meilisearch-kotlin
- Owner: nemoengineering
- License: mit
- Created: 2022-04-12T11:40:46.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-01T06:59:53.000Z (5 months ago)
- Last Synced: 2024-02-04T07:49:21.218Z (5 months ago)
- Language: Kotlin
- Homepage:
- Size: 184 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-meilisearch - Kotlin - A Kotlin wrapper (Integrations / Community Integrations)
README
# Meilisearch Kotlin Client
[![](https://jitpack.io/v/nemoengineering/meilisearch-kotlin.svg)](https://jitpack.io/#nemoengineering/meilisearch-kotlin)
[![CD/CI Workflow](https://github.com/nemoengineering/meilisearch-kotlin/actions/workflows/cdci-workflow.yml/badge.svg)](https://github.com/nemoengineering/meilisearch-kotlin/actions/workflows/cdci-workflow.yml)A Kotlin wrapper around [Meilisearch](https://github.com/meilisearch/meilisearch) REST API. This library uses Ktor
Client and KotlinX Serialization under the hood in order to provide an async typed client for Meilisearch v1.## Installation
This library is currently available through JitPack.
In order to use the library, add first the JitPack repository to the `repositories` block and then the dependency to
the `dependencies` block:```kotlin
repositories {
maven("https://jitpack.io")
}dependencies {
implementation("com.github.nemoengineering:meilisearch-kotlin:0.4.0")
}
```## Usage
In order to interact with the Meilisearch you need to first instantiate a client which can then be used to perform the
operations supported by the API:```kotlin
val client = Meilisearch {
port = 7700
host = "localhost"
apiKey = "my-api-key" // optional
}val response: List = client.listIndexes()
```