All URIs are relative to http://hytale.com/api
Method | HTTP request | Description |
---|---|---|
getArticleBySlug | GET /blog/post/slug/{slug} | |
getArticles | GET /blog/post/published | |
getArticlesOfMonthAndYear | GET /blog/post/archive/{year}/{month}/ |
Article getArticleBySlug(slug)
Get list of articles published
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ArticlesApi;
ArticlesApi apiInstance = new ArticlesApi();
String slug = "slug_example"; // String | Slug of article
try {
Article result = apiInstance.getArticleBySlug(slug);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ArticlesApi#getArticleBySlug");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
slug | String | Slug of article |
No authorization required
- Content-Type: Not defined
- Accept: application/json
List<Article> getArticles(featuredOnly)
Get list of articles published
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ArticlesApi;
ArticlesApi apiInstance = new ArticlesApi();
Boolean featuredOnly = true; // Boolean |
try {
List<Article> result = apiInstance.getArticles(featuredOnly);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ArticlesApi#getArticles");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
featuredOnly | Boolean | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
List<Article> getArticlesOfMonthAndYear(year, month)
Get list of articles published on a specific month of an year
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.ArticlesApi;
ArticlesApi apiInstance = new ArticlesApi();
Integer year = 56; // Integer | Year (ex: 2019)
Integer month = 56; // Integer | Month (ex: 01)
try {
List<Article> result = apiInstance.getArticlesOfMonthAndYear(year, month);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ArticlesApi#getArticlesOfMonthAndYear");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
year | Integer | Year (ex: 2019) | |
month | Integer | Month (ex: 01) |
No authorization required
- Content-Type: Not defined
- Accept: application/json