๐Ÿงšโ€โ™€๏ธ Java library to interact with YouTrack's REST API.

Overview

YouTrack API for Java

๐Ÿงšโ€ Java library to interact with YouTrack's REST API.

Usage

search syntax. String fields = "$type,added,author($type,id,login,name,ringId),category($type,id),field($type,customField($type,fieldType($type,id),id,localizedName,name),id,name),id,removed,target,targetMember,timestamp"; // String | Integer $skip = 56; // Integer | Integer $top = 56; // Integer | try { List result = apiInstance.activitiesGet(categories, reverse, start, end, author, issueQuery, fields, $skip, $top); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DefaultApi#activitiesGet"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); e.printStackTrace(); } } } ">
// Import classes:
import dev.floofy.libs.youtrack.api.ApiClient;
import dev.floofy.libs.youtrack.api.ApiException;
import dev.floofy.libs.youtrack.api.Configuration;
import dev.floofy.libs.youtrack.api.auth.*;
import dev.floofy.libs.youtrack.api.models.*;
import dev.floofy.libs.youtrack.api.openapi.DefaultApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://youtrack.jetbrains.com:443/api");

        // Configure HTTP bearer authorization: permanentToken
        HttpBearerAuth permanentToken = (HttpBearerAuth) defaultClient.getAuthentication("permanentToken");
        permanentToken.setBearerToken("BEARER TOKEN");

        DefaultApi apiInstance = new DefaultApi(defaultClient);
        String categories = "categories_example"; // String | 
        Boolean reverse = true; // Boolean | Indicates whether the order of returning activities is from newest to oldest or the opposite. If \"false\", then the oldest activity item that matches a selected filter is returned first. If \"true\", then the newest activity is returned first. By default, \"false\".
        String start = "start_example"; // String | Start timestamp of the time interval the activity timestamp belongs to. If the parameter is not set, it is considered to be 0.
        String end = "end_example"; // String | End timestamp of the time interval the activity timestamp belongs to. If the parameter is not set, it is considered as Long.MAX_VALUE.
        String author = "author_example"; // String | Parameter to filter activities by the author. The database id or login, or Hub id, or 'me' for the current logged in user could be specified.
        String issueQuery = "issueQuery_example"; // String | Issues search query. Read more about search syntax.
        String fields = "$type,added,author($type,id,login,name,ringId),category($type,id),field($type,customField($type,fieldType($type,id),id,localizedName,name),id,name),id,removed,target,targetMember,timestamp"; // String | 
        Integer $skip = 56; // Integer | 
        Integer $top = 56; // Integer | 
        try {
            List<ActivityItem> result = apiInstance.activitiesGet(categories, reverse, start, end, author, issueQuery, fields, $skip, $top);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling DefaultApi#activitiesGet");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Installation

Documentation: https://auguwu.github.io/youtrack-kotlin-api

Version: 1.2.0

Gradle

Kotlin DSL

") } ">
repositories {
    maven {
        url = uri("https://maven.floofy.dev/repo/releases")
    }
}

dependencies {
    implementation("dev.floofy.youtrack:youtrack-api:
   
    "
   )
}

Groovy DSL

" } ">
repositories {
    maven {
        url "https://maven.floofy.dev/repo/releases"
    }
}

dependencies {
    implementation "dev.floofy.youtrack:youtrack-api:
   
    "
   
}

Maven

<repositories>
    <repository>
        <id>noel-mavenid>
        <url>https://maven.floofy.dev/repo/releasesurl>
    repository>
repositories>
<dependencies>
    <dependency>
        <groupId>dev.floofy.youtrackgroupId>
        <artifactId>youtrack-apiartifactId>
        <version>{{VERSION}}version>
        <type>pomtype>
    dependency>
dependencies>

License

youtrack-kotlin-api is released under the MIT License.

You might also like...

Full-featured Socket.IO Client Library for Java, which is compatible with Socket.IO v1.0 and later.

Socket.IO-client Java This is the Socket.IO Client Library for Java, which is simply ported from the JavaScript client. See also: Android chat demo en

Jan 4, 2023

Asynchronous Http and WebSocket Client library for Java

Async Http Client Follow @AsyncHttpClient on Twitter. The AsyncHttpClient (AHC) library allows Java applications to easily execute HTTP requests and a

Dec 31, 2022

An netty based asynchronous socket library for benchion java applications

An netty based asynchronous socket library for benchion java applications

Benchion Sockets Library An netty based asynchronous socket library for benchion java applications ๐Ÿ“– Documents ๐Ÿ“– Report Bug ยท Request Feature Conten

Dec 25, 2022

A High Performance Network ( TCP/IP ) Library

Chronicle-Network About A High Performance Network library Purpose This library is designed to be lower latency and support higher throughputs by empl

Dec 31, 2022

Simple & Lightweight Netty packet library + event system

Minimalistic Netty-Packet library Create packets with ease Bind events to packets Example Packet: public class TestPacket extends Packet { privat

Dec 7, 2022

A Minecraft library for working with minecraft packets on various platforms, using MCProtocolLib

BetterProtocol A Minecraft library for working with minecraft packets on various platforms, using MCProtocolLib This library is still based on the pro

Jul 2, 2022

Library for composability of interdependent non-blocking I/O tasks

Library for composability of interdependent non-blocking I/O tasks

Composer Composer helps you to organize and execute multiple interdependent asynchronous input/output tasks such as webservice calls, database read/wr

Oct 8, 2021

This is library that look like Scarlet Wrapper Socket.io

This is library that look like Scarlet Wrapper Socket.io

Jan 2, 2023

Socket.IO server implemented on Java. Realtime java framework

Netty-socketio Overview This project is an open-source Java implementation of Socket.IO server. Based on Netty server framework. Checkout Demo project

Dec 30, 2022
Owner
Noel
Student, Developer in the United States creating projects no one will use except for myself. o((*^โ–ฝ^*))o
Noel
Telegram API Client and Telegram BOT API Library and Framework in Pure java.

Javagram Telegram API Client and Telegram Bot API library and framework in pure Java. Hello Telegram You can use Javagram for both Telegram API Client

Java For Everything 3 Oct 17, 2021
Java API over Accelio

JXIO JXIO is Java API over AccelIO (C library). AccelIO (http://www.accelio.org/) is a high-performance asynchronous reliable messaging and RPC librar

Accelio 75 Nov 1, 2022
A Java library that implements a ByteChannel interface over SSLEngine, enabling easy-to-use (socket-like) TLS for Java applications.

TLS Channel TLS Channel is a library that implements a ByteChannel interface over a TLS (Transport Layer Security) connection. It delegates all crypto

Mariano Barrios 149 Dec 31, 2022
Check the connectivity of a server with this API.

ServerStatusAPI Presentation : This is a java API with which can test the conectivity of server (all server but you can also use for minecraft). The f

Gabriel MERCIER 1 Mar 16, 2022
Standalone Play WS, an async HTTP client with fluent API

Play WS Standalone Play WS is a powerful HTTP Client library, originally developed by the Play team for use with Play Framework. It uses AsyncHttpClie

Play Framework 213 Dec 15, 2022
TCP/UDP client/server library for Java, based on Kryo

KryoNet can be downloaded on the releases page. Please use the KryoNet discussion group for support. Overview KryoNet is a Java library that provides

Esoteric Software 1.7k Jan 2, 2023
An annotation-based Java library for creating Thrift serializable types and services.

Drift Drift is an easy-to-use, annotation-based Java library for creating Thrift clients and serializable types. The client library is similar to JAX-

null 225 Dec 24, 2022
Java library for representing, parsing and encoding URNs as in RFC2141 and RFC8141

urnlib Java library for representing, parsing and encoding URNs as specified in RFC 2141 and RFC 8141. The initial URN RFC 2141 of May 1997 was supers

SLUB 24 May 10, 2022
Unconventional I/O library for Java

one-nio one-nio is a library for building high performance Java servers. It features OS capabilities and JDK internal APIs essential for making your h

OK.ru 589 Dec 29, 2022
A Java library for capturing, crafting, and sending packets.

Japanese Logos Pcap4J Pcap4J is a Java library for capturing, crafting and sending packets. Pcap4J wraps a native packet capture library (libpcap, Win

Kaito Yamada 1k Dec 30, 2022