feat: add tags

This commit is contained in:
Nevo David 2024-03-11 20:52:24 +07:00
parent 86398fc2b3
commit c0790ac0d4
113 changed files with 10877 additions and 244 deletions

View File

@ -5,7 +5,9 @@ import {StarsService} from "@gitroom/nestjs-libraries/database/prisma/stars/star
import dayjs from "dayjs";
import {mean} from 'simple-statistics';
import {StarsListDto} from "@gitroom/nestjs-libraries/dtos/analytics/stars.list.dto";
import {ApiTags} from "@nestjs/swagger";
@ApiTags('Analytics')
@Controller('/analytics')
export class AnalyticsController {
constructor(

View File

@ -7,7 +7,9 @@ import { AuthService } from '@gitroom/backend/services/auth/auth.service';
import { ForgotReturnPasswordDto } from '@gitroom/nestjs-libraries/dtos/auth/forgot-return.password.dto';
import { ForgotPasswordDto } from '@gitroom/nestjs-libraries/dtos/auth/forgot.password.dto';
import {removeSubdomain} from "@gitroom/helpers/subdomain/subdomain.management";
import {ApiTags} from "@nestjs/swagger";
@ApiTags('Auth')
@Controller('/auth')
export class AuthController {
constructor(private _authService: AuthService) {}

View File

@ -4,7 +4,9 @@ import { StripeService } from '@gitroom/nestjs-libraries/services/stripe.service
import { GetOrgFromRequest } from '@gitroom/nestjs-libraries/user/org.from.request';
import { Organization } from '@prisma/client';
import { BillingSubscribeDto } from '@gitroom/nestjs-libraries/dtos/billing/billing.subscribe.dto';
import {ApiTags} from "@nestjs/swagger";
@ApiTags('Billing')
@Controller('/billing')
export class BillingController {
constructor(

View File

@ -4,7 +4,9 @@ import { GetOrgFromRequest } from '@gitroom/nestjs-libraries/user/org.from.reque
import { Organization, User } from '@prisma/client';
import { GetUserFromRequest } from '@gitroom/nestjs-libraries/user/user.from.request';
import { AddCommentDto } from '@gitroom/nestjs-libraries/dtos/comments/add.comment.dto';
import {ApiTags} from "@nestjs/swagger";
@ApiTags('Comments')
@Controller('/comments')
export class CommentsController {
constructor(private _commentsService: CommentsService) {}

View File

@ -13,7 +13,9 @@ import {
} from '@gitroom/backend/services/auth/permissions/permissions.service';
import { CheckPolicies } from '@gitroom/backend/services/auth/permissions/permissions.ability';
import {pricing} from "@gitroom/nestjs-libraries/database/prisma/subscriptions/pricing";
import {ApiTags} from "@nestjs/swagger";
@ApiTags('Integrations')
@Controller('/integrations')
export class IntegrationsController {
constructor(

View File

@ -6,7 +6,9 @@ import { Express } from 'express';
import {GetOrgFromRequest} from "@gitroom/nestjs-libraries/user/org.from.request";
import {Organization} from "@prisma/client";
import {MediaService} from "@gitroom/nestjs-libraries/database/prisma/media/media.service";
import {ApiTags} from "@nestjs/swagger";
@ApiTags('Media')
@Controller('/media')
export class MediaController {
constructor(

View File

@ -3,7 +3,9 @@ import { GetUserFromRequest } from '@gitroom/nestjs-libraries/user/user.from.req
import { Organization, User } from '@prisma/client';
import { GetOrgFromRequest } from '@gitroom/nestjs-libraries/user/org.from.request';
import { NotificationService } from '@gitroom/nestjs-libraries/database/prisma/notifications/notification.service';
import {ApiTags} from "@nestjs/swagger";
@ApiTags('Notifications')
@Controller('/notifications')
export class NotificationsController {
constructor(private _notificationsService: NotificationService) {}

View File

@ -17,7 +17,9 @@ import { CommentsService } from '@gitroom/nestjs-libraries/database/prisma/comme
import {StarsService} from "@gitroom/nestjs-libraries/database/prisma/stars/stars.service";
import {CheckPolicies} from "@gitroom/backend/services/auth/permissions/permissions.ability";
import {AuthorizationActions, Sections} from "@gitroom/backend/services/auth/permissions/permissions.service";
import {ApiTags} from "@nestjs/swagger";
@ApiTags('Posts')
@Controller('/posts')
export class PostsController {
constructor(

View File

@ -9,7 +9,9 @@ import {
} from '@gitroom/backend/services/auth/permissions/permissions.service';
import { OrganizationService } from '@gitroom/nestjs-libraries/database/prisma/organizations/organization.service';
import {AddTeamMemberDto} from "@gitroom/nestjs-libraries/dtos/settings/add.team.member.dto";
import {ApiTags} from "@nestjs/swagger";
@ApiTags('Settings')
@Controller('/settings')
export class SettingsController {
constructor(

View File

@ -1,6 +1,8 @@
import {Controller, Post, RawBodyRequest, Req} from "@nestjs/common";
import {StripeService} from "@gitroom/nestjs-libraries/services/stripe.service";
import {ApiTags} from "@nestjs/swagger";
@ApiTags('Stripe')
@Controller('/stripe')
export class StripeController {
constructor(

View File

@ -22,7 +22,9 @@ import {
} from '@gitroom/backend/services/auth/permissions/permissions.service';
import {removeSubdomain} from "@gitroom/helpers/subdomain/subdomain.management";
import {pricing} from "@gitroom/nestjs-libraries/database/prisma/subscriptions/pricing";
import {ApiTags} from "@nestjs/swagger";
@ApiTags('User')
@Controller('/user')
export class UsersController {
constructor(

View File

@ -1,3 +0,0 @@
---
openapi: post /auth
---

View File

@ -1,3 +0,0 @@
---
openapi: post /auth/registration
---

View File

@ -1,3 +0,0 @@
---
openapi: post /billing/modify
---

View File

@ -1,3 +0,0 @@
---
openapi: delete /categories/{id}
---

View File

@ -1,3 +0,0 @@
---
openapi: get /categories/{id}
---

View File

@ -1,3 +0,0 @@
---
openapi: get /categories
---

View File

@ -1,3 +0,0 @@
---
openapi: get /categories/faq
---

View File

@ -1,3 +0,0 @@
---
openapi: post /categories
---

View File

@ -1,3 +0,0 @@
---
openapi: post /categories/order
---

View File

@ -1,3 +0,0 @@
---
openapi: put /categories/{id}
---

View File

@ -0,0 +1,3 @@
---
openapi: delete /comments/{id}
---

View File

@ -0,0 +1,3 @@
---
openapi: delete /integrations
---

View File

@ -0,0 +1,3 @@
---
openapi: delete /posts/{group}
---

View File

@ -0,0 +1,3 @@
---
openapi: delete /settings/repository/{id}
---

View File

@ -0,0 +1,3 @@
---
openapi: delete /settings/team/{id}
---

View File

@ -1,3 +0,0 @@
---
openapi: delete /faq/{id}
---

View File

@ -1,3 +0,0 @@
---
openapi: get /faq/{id}
---

View File

@ -1,3 +0,0 @@
---
openapi: get /faq/jobs/{id}
---

View File

@ -1,3 +0,0 @@
---
openapi: post /faq
---

View File

@ -1,3 +0,0 @@
---
openapi: post /faq/answers
---

View File

@ -1,3 +0,0 @@
---
openapi: post /faq/job
---

View File

@ -1,3 +0,0 @@
---
openapi: post /faq/jobs/questions
---

View File

@ -1,3 +0,0 @@
---
openapi: post /faq/order
---

View File

@ -1,3 +0,0 @@
---
openapi: put /faq/{id}/category/{category}
---

View File

@ -1,3 +0,0 @@
---
openapi: put /faq/{id}
---

View File

@ -0,0 +1,3 @@
---
openapi: get /analytics
---

View File

@ -0,0 +1,3 @@
---
openapi: get /analytics/trending
---

View File

@ -0,0 +1,3 @@
---
openapi: get /billing/portal
---

View File

@ -0,0 +1,3 @@
---
openapi: get /comments/{date}
---

View File

@ -0,0 +1,3 @@
---
openapi: get /integrations/list
---

View File

@ -0,0 +1,3 @@
---
openapi: get /integrations/social/{integration}
---

View File

@ -0,0 +1,3 @@
---
openapi: get /media
---

View File

@ -0,0 +1,3 @@
---
openapi: get /notifications
---

View File

@ -0,0 +1,3 @@
---
openapi: get /notifications/list
---

View File

@ -0,0 +1,3 @@
---
openapi: get /posts/{id}
---

View File

@ -0,0 +1,3 @@
---
openapi: get /posts
---

View File

@ -0,0 +1,3 @@
---
openapi: get /posts/old
---

View File

@ -0,0 +1,3 @@
---
openapi: get /posts/predict-trending
---

View File

@ -0,0 +1,3 @@
---
openapi: get /settings/github
---

View File

@ -0,0 +1,3 @@
---
openapi: get /settings/github/url
---

View File

@ -0,0 +1,3 @@
---
openapi: get /settings/organizations/{id}/{github}
---

View File

@ -0,0 +1,3 @@
---
openapi: get /settings/organizations/{id}
---

View File

@ -0,0 +1,3 @@
---
openapi: get /settings/team
---

View File

@ -0,0 +1,3 @@
---
openapi: get /user/organizations
---

View File

@ -0,0 +1,3 @@
---
openapi: get /user/self
---

View File

@ -0,0 +1,3 @@
---
openapi: get /user/subscription
---

View File

@ -0,0 +1,3 @@
---
openapi: get /user/subscription/tiers
---

View File

@ -1,3 +0,0 @@
---
openapi: delete /integrations/{id}
---

View File

@ -1,3 +0,0 @@
---
openapi: get /integrations/{type}/add
---

View File

@ -1,3 +0,0 @@
---
openapi: post /integrations
---

View File

@ -1,3 +0,0 @@
---
openapi: post /invite
---

View File

@ -1,3 +0,0 @@
---
openapi: post /invite/add
---

View File

@ -0,0 +1,3 @@
---
openapi: post /analytics/stars
---

View File

@ -0,0 +1,3 @@
---
openapi: post /auth/forgot-return
---

View File

@ -0,0 +1,3 @@
---
openapi: post /auth/forgot
---

View File

@ -0,0 +1,3 @@
---
openapi: post /auth/register
---

View File

@ -0,0 +1,3 @@
---
openapi: post /billing/prorate
---

View File

@ -0,0 +1,3 @@
---
openapi: post /comments/{id}
---

View File

@ -0,0 +1,3 @@
---
openapi: post /comments
---

View File

@ -0,0 +1,3 @@
---
openapi: post /integrations/article/{integration}/connect
---

View File

@ -0,0 +1,3 @@
---
openapi: post /integrations/disable
---

View File

@ -0,0 +1,3 @@
---
openapi: post /integrations/enable
---

View File

@ -0,0 +1,3 @@
---
openapi: post /integrations/function
---

View File

@ -0,0 +1,3 @@
---
openapi: post /integrations/social/{integration}/connect
---

View File

@ -0,0 +1,3 @@
---
openapi: post /media
---

View File

@ -0,0 +1,3 @@
---
openapi: post /posts
---

View File

@ -0,0 +1,3 @@
---
openapi: post /settings/github
---

View File

@ -0,0 +1,3 @@
---
openapi: post /settings/organizations/{id}
---

View File

@ -0,0 +1,3 @@
---
openapi: post /settings/team
---

View File

@ -0,0 +1,3 @@
---
openapi: post /user/change-org
---

View File

@ -0,0 +1,3 @@
---
openapi: post /user/join-org
---

View File

@ -0,0 +1,3 @@
---
openapi: put /comments/{id}
---

View File

@ -0,0 +1,3 @@
---
openapi: put /posts/{id}/date
---

View File

@ -1,3 +0,0 @@
---
openapi: delete /settings/delete-domain/{id}
---

View File

@ -1,3 +0,0 @@
---
openapi: get /settings
---

View File

@ -1,3 +0,0 @@
---
openapi: get /settings/check-domain/{id}
---

View File

@ -1,3 +0,0 @@
---
openapi: post /settings/check-subdomain
---

View File

@ -1,3 +0,0 @@
---
openapi: post /settings/domain
---

View File

@ -1,3 +0,0 @@
---
openapi: post /settings/subDomain
---

View File

@ -1,3 +0,0 @@
---
openapi: get /styles
---

View File

@ -1,3 +0,0 @@
---
openapi: put /styles
---

View File

@ -1,3 +0,0 @@
---
openapi: get /users/self
---

Some files were not shown because too many files have changed in this diff Show More