mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2025-02-05 16:34:43 +00:00
parent
ea75476cba
commit
ff8c69bc80
1 changed files with 29 additions and 0 deletions
29
src/http.ts
29
src/http.ts
|
@ -242,6 +242,8 @@ export class LemmyHttp extends Controller {
|
||||||
/**
|
/**
|
||||||
* Gets the site, and your user data.
|
* Gets the site, and your user data.
|
||||||
*/
|
*/
|
||||||
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/site")
|
@Get("/site")
|
||||||
getSite(@Inject() options?: RequestOptions) {
|
getSite(@Inject() options?: RequestOptions) {
|
||||||
return this.#wrapper<object, GetSiteResponse>(
|
return this.#wrapper<object, GetSiteResponse>(
|
||||||
|
@ -437,6 +439,8 @@ export class LemmyHttp extends Controller {
|
||||||
/**
|
/**
|
||||||
* Get the modlog.
|
* Get the modlog.
|
||||||
*/
|
*/
|
||||||
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/modlog")
|
@Get("/modlog")
|
||||||
getModlog(
|
getModlog(
|
||||||
@Queries() form: GetModlogI = {},
|
@Queries() form: GetModlogI = {},
|
||||||
|
@ -453,6 +457,8 @@ export class LemmyHttp extends Controller {
|
||||||
/**
|
/**
|
||||||
* Search lemmy.
|
* Search lemmy.
|
||||||
*/
|
*/
|
||||||
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/search")
|
@Get("/search")
|
||||||
search(@Queries() form: SearchI, @Inject() options?: RequestOptions) {
|
search(@Queries() form: SearchI, @Inject() options?: RequestOptions) {
|
||||||
return this.#wrapper<Search, SearchResponse>(
|
return this.#wrapper<Search, SearchResponse>(
|
||||||
|
@ -466,6 +472,8 @@ export class LemmyHttp extends Controller {
|
||||||
/**
|
/**
|
||||||
* Fetch a non-local / federated object.
|
* Fetch a non-local / federated object.
|
||||||
*/
|
*/
|
||||||
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/resolve_object")
|
@Get("/resolve_object")
|
||||||
resolveObject(
|
resolveObject(
|
||||||
@Queries() form: ResolveObjectI,
|
@Queries() form: ResolveObjectI,
|
||||||
|
@ -499,6 +507,8 @@ export class LemmyHttp extends Controller {
|
||||||
/**
|
/**
|
||||||
* Get / fetch a community.
|
* Get / fetch a community.
|
||||||
*/
|
*/
|
||||||
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/community")
|
@Get("/community")
|
||||||
getCommunity(
|
getCommunity(
|
||||||
@Queries() form: GetCommunityI = {},
|
@Queries() form: GetCommunityI = {},
|
||||||
|
@ -532,6 +542,8 @@ export class LemmyHttp extends Controller {
|
||||||
/**
|
/**
|
||||||
* List communities, with various filters.
|
* List communities, with various filters.
|
||||||
*/
|
*/
|
||||||
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/community/list")
|
@Get("/community/list")
|
||||||
listCommunities(
|
listCommunities(
|
||||||
@Queries() form: ListCommunitiesI = {},
|
@Queries() form: ListCommunitiesI = {},
|
||||||
|
@ -731,6 +743,8 @@ export class LemmyHttp extends Controller {
|
||||||
/**
|
/**
|
||||||
* Get a random community.
|
* Get a random community.
|
||||||
*/
|
*/
|
||||||
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/community/random")
|
@Get("/community/random")
|
||||||
getRandomCommunity(
|
getRandomCommunity(
|
||||||
@Queries() form: GetRandomCommunityI,
|
@Queries() form: GetRandomCommunityI,
|
||||||
|
@ -761,6 +775,8 @@ export class LemmyHttp extends Controller {
|
||||||
/**
|
/**
|
||||||
* Get / fetch a post.
|
* Get / fetch a post.
|
||||||
*/
|
*/
|
||||||
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/post")
|
@Get("/post")
|
||||||
getPost(@Queries() form: GetPostI = {}, @Inject() options?: RequestOptions) {
|
getPost(@Queries() form: GetPostI = {}, @Inject() options?: RequestOptions) {
|
||||||
return this.#wrapper<GetPost, GetPostResponse>(
|
return this.#wrapper<GetPost, GetPostResponse>(
|
||||||
|
@ -892,6 +908,8 @@ export class LemmyHttp extends Controller {
|
||||||
/**
|
/**
|
||||||
* Get / fetch posts, with various filters.
|
* Get / fetch posts, with various filters.
|
||||||
*/
|
*/
|
||||||
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/post/list")
|
@Get("/post/list")
|
||||||
getPosts(
|
getPosts(
|
||||||
@Queries() form: GetPostsI = {},
|
@Queries() form: GetPostsI = {},
|
||||||
|
@ -1151,6 +1169,8 @@ export class LemmyHttp extends Controller {
|
||||||
/**
|
/**
|
||||||
* Get / fetch comments.
|
* Get / fetch comments.
|
||||||
*/
|
*/
|
||||||
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/comment/list")
|
@Get("/comment/list")
|
||||||
getComments(
|
getComments(
|
||||||
@Queries() form: GetCommentsI = {},
|
@Queries() form: GetCommentsI = {},
|
||||||
|
@ -1167,6 +1187,8 @@ export class LemmyHttp extends Controller {
|
||||||
/**
|
/**
|
||||||
* Get / fetch comment.
|
* Get / fetch comment.
|
||||||
*/
|
*/
|
||||||
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/comment")
|
@Get("/comment")
|
||||||
getComment(@Queries() form: GetCommentI, @Inject() options?: RequestOptions) {
|
getComment(@Queries() form: GetCommentI, @Inject() options?: RequestOptions) {
|
||||||
return this.#wrapper<GetComment, CommentResponse>(
|
return this.#wrapper<GetComment, CommentResponse>(
|
||||||
|
@ -1352,6 +1374,8 @@ export class LemmyHttp extends Controller {
|
||||||
/**
|
/**
|
||||||
* Get the details for a person.
|
* Get the details for a person.
|
||||||
*/
|
*/
|
||||||
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/person")
|
@Get("/person")
|
||||||
getPersonDetails(
|
getPersonDetails(
|
||||||
@Queries() form: GetPersonDetailsI = {},
|
@Queries() form: GetPersonDetailsI = {},
|
||||||
|
@ -1368,6 +1392,8 @@ export class LemmyHttp extends Controller {
|
||||||
/**
|
/**
|
||||||
* List the content for a person.
|
* List the content for a person.
|
||||||
*/
|
*/
|
||||||
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/person/content")
|
@Get("/person/content")
|
||||||
listPersonContent(
|
listPersonContent(
|
||||||
@Queries() form: ListPersonContentI = {},
|
@Queries() form: ListPersonContentI = {},
|
||||||
|
@ -1830,6 +1856,8 @@ export class LemmyHttp extends Controller {
|
||||||
/**
|
/**
|
||||||
* List custom emojis
|
* List custom emojis
|
||||||
*/
|
*/
|
||||||
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/custom_emoji/list")
|
@Get("/custom_emoji/list")
|
||||||
listCustomEmojis(
|
listCustomEmojis(
|
||||||
@Queries() form: ListCustomEmojisI,
|
@Queries() form: ListCustomEmojisI,
|
||||||
|
@ -1895,6 +1923,7 @@ export class LemmyHttp extends Controller {
|
||||||
* List taglines.
|
* List taglines.
|
||||||
*/
|
*/
|
||||||
@Security("bearerAuth")
|
@Security("bearerAuth")
|
||||||
|
@Security({})
|
||||||
@Get("/admin/tagline/list")
|
@Get("/admin/tagline/list")
|
||||||
listTaglines(
|
listTaglines(
|
||||||
@Queries() form: ListTaglinesI,
|
@Queries() form: ListTaglinesI,
|
||||||
|
|
Loading…
Reference in a new issue