Skip to content

Commit

Permalink
Merge pull request #603 from panoratech/remove-bearer-openAPI
Browse files Browse the repository at this point in the history
 Fix: Removed Bearer from OpenAPI specs
  • Loading branch information
rflihxyz authored Aug 1, 2024
2 parents 44746ba + 37ec7e3 commit 298a238
Show file tree
Hide file tree
Showing 82 changed files with 388 additions and 649 deletions.
2 changes: 1 addition & 1 deletion packages/api/src/accounting/account/account.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
ApiPostCustomResponse,
} from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiBearerAuth('bearer')
@ApiTags('accounting/accounts')
@Controller('accounting/accounts')
export class AccountController {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/accounting/address/address.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { AddressService } from './services/address.service';
Expand All @@ -30,7 +30,7 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard';
import { FetchObjectsQueryDto } from '@@core/utils/dtos/fetch-objects-query.dto';
import { ApiGetCustomResponse, ApiPaginatedResponse } from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/addresses')
@Controller('accounting/addresses')
export class AddressController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { AttachmentService } from './services/attachment.service';
Expand All @@ -34,7 +34,7 @@ import {
ApiPostCustomResponse,
} from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/attachments')
@Controller('accounting/attachments')
export class AttachmentController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { BalanceSheetService } from './services/balancesheet.service';
Expand All @@ -30,7 +30,7 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard';
import { FetchObjectsQueryDto } from '@@core/utils/dtos/fetch-objects-query.dto';
import { ApiGetCustomResponse, ApiPaginatedResponse } from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/balancesheets')
@Controller('accounting/balancesheets')
export class BalanceSheetController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { CashflowStatementService } from './services/cashflowstatement.service';
Expand All @@ -30,7 +30,7 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard';
import { FetchObjectsQueryDto } from '@@core/utils/dtos/fetch-objects-query.dto';
import { ApiGetCustomResponse, ApiPaginatedResponse } from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/cashflowstatements')
@Controller('accounting/cashflowstatements')
export class CashflowStatementController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { CompanyInfoService } from './services/companyinfo.service';
Expand All @@ -30,7 +30,7 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard';
import { FetchObjectsQueryDto } from '@@core/utils/dtos/fetch-objects-query.dto';
import { ApiGetCustomResponse, ApiPaginatedResponse } from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/companyinfos')
@Controller('accounting/companyinfos')
export class CompanyInfoController {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/accounting/contact/contact.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { ContactService } from './services/contact.service';
Expand All @@ -34,7 +34,7 @@ import {
ApiPostCustomResponse,
} from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/contacts')
@Controller('accounting/contacts')
export class ContactController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { CreditNoteService } from './services/creditnote.service';
Expand All @@ -33,7 +33,7 @@ import {
ApiPaginatedResponse,
} from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/creditnotes')
@Controller('accounting/creditnotes')
export class CreditNoteController {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/accounting/expense/expense.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { ExpenseService } from './services/expense.service';
Expand All @@ -34,7 +34,7 @@ import {
ApiPostCustomResponse,
} from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/expenses')
@Controller('accounting/expenses')
export class ExpenseController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { IncomeStatementService } from './services/incomestatement.service';
Expand All @@ -30,7 +30,7 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard';
import { FetchObjectsQueryDto } from '@@core/utils/dtos/fetch-objects-query.dto';
import { ApiGetCustomResponse, ApiPaginatedResponse } from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/incomestatements')
@Controller('accounting/incomestatements')
export class IncomeStatementController {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/accounting/invoice/invoice.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { InvoiceService } from './services/invoice.service';
Expand All @@ -34,7 +34,7 @@ import {
ApiPostCustomResponse,
} from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/invoices')
@Controller('accounting/invoices')
export class InvoiceController {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/accounting/item/item.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { ItemService } from './services/item.service';
Expand All @@ -30,7 +30,7 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard';
import { FetchObjectsQueryDto } from '@@core/utils/dtos/fetch-objects-query.dto';
import { ApiGetCustomResponse, ApiPaginatedResponse } from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/items')
@Controller('accounting/items')
export class ItemController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { JournalEntryService } from './services/journalentry.service';
Expand All @@ -34,7 +34,7 @@ import {
ApiPostCustomResponse,
} from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/journalentries')
@Controller('accounting/journalentries')
export class JournalEntryController {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/accounting/payment/payment.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { PaymentService } from './services/payment.service';
Expand All @@ -34,7 +34,7 @@ import {
ApiPostCustomResponse,
} from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/payments')
@Controller('accounting/payments')
export class PaymentController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { PhoneNumberService } from './services/phonenumber.service';
Expand All @@ -30,7 +30,7 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard';
import { FetchObjectsQueryDto } from '@@core/utils/dtos/fetch-objects-query.dto';
import { ApiGetCustomResponse, ApiPaginatedResponse } from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/phonenumbers')
@Controller('accounting/phonenumbers')
export class PhoneNumberController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { PurchaseOrderService } from './services/purchaseorder.service';
Expand All @@ -34,7 +34,7 @@ import {
ApiPostCustomResponse,
} from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/purchaseorders')
@Controller('accounting/purchaseorders')
export class PurchaseOrderController {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/accounting/taxrate/taxrate.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { TaxRateService } from './services/taxrate.service';
Expand All @@ -30,7 +30,7 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard';
import { FetchObjectsQueryDto } from '@@core/utils/dtos/fetch-objects-query.dto';
import { ApiGetCustomResponse, ApiPaginatedResponse } from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/taxrates')
@Controller('accounting/taxrates')
export class TaxRateController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { TrackingCategoryService } from './services/trackingcategory.service';
Expand All @@ -30,7 +30,7 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard';
import { FetchObjectsQueryDto } from '@@core/utils/dtos/fetch-objects-query.dto';
import { ApiGetCustomResponse, ApiPaginatedResponse } from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/trackingcategories')
@Controller('accounting/trackingcategories')
export class TrackingCategoryController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { TransactionService } from './services/transaction.service';
Expand All @@ -30,7 +30,7 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard';
import { FetchObjectsQueryDto } from '@@core/utils/dtos/fetch-objects-query.dto';
import { ApiGetCustomResponse, ApiPaginatedResponse } from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/transactions')
@Controller('accounting/transactions')
export class TransactionController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import { VendorCreditService } from './services/vendorcredit.service';
Expand All @@ -30,7 +30,7 @@ import { ApiKeyAuthGuard } from '@@core/auth/guards/api-key.guard';
import { FetchObjectsQueryDto } from '@@core/utils/dtos/fetch-objects-query.dto';
import { ApiGetCustomResponse, ApiPaginatedResponse } from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('accounting/vendorcredits')
@Controller('accounting/vendorcredits')
export class VendorCreditController {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/ats/activity/activity.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import {
Expand All @@ -33,7 +33,7 @@ import {
ApiPostCustomResponse,
} from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('ats/activities')
@Controller('ats/activities')
export class ActivityController {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/ats/application/application.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ApiQuery,
ApiTags,
ApiHeader,
ApiBearerAuth,
//ApiKeyAuth,
} from '@nestjs/swagger';

import {
Expand All @@ -34,7 +34,7 @@ import {
ApiPostCustomResponse,
} from '@@core/utils/dtos/openapi.respone.dto';

@ApiBearerAuth('bearer')
//@ApiKeyAuth()
@ApiTags('ats/applications')
@Controller('ats/applications')
export class ApplicationController {
Expand Down
Loading

0 comments on commit 298a238

Please sign in to comment.