How to use the @airtasker/spot.config function in @airtasker/spot

To help you get started, we’ve selected a few @airtasker/spot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github airtasker / spot / lib / src / neu / parsers / __spec-examples__ / contracts / contract.ts View on Github external
config,
  defaultResponse,
  endpoint,
  headers,
  pathParams,
  queryParams,
  request,
  response,
  securityHeader,
  String
} from "@airtasker/spot";
import "./contract-dependency";

/** contract description */
@api({ name: "contract" })
@config({
  paramSerializationStrategy: {
    query: {
      array: "comma"
    }
  }
})
class Contract {
  @securityHeader
  "security-header": String;
}

@endpoint({ method: "GET", path: "/path/:param/nest" })
class GetEndpoint {
  @request
  request(
    @pathParams

@airtasker/spot

**Spot** (_"Single Point Of Truth"_) is a concise, developer-friendly way to describe your API contract.

MIT
Latest version published 5 months ago

Package Health Score

72 / 100
Full package analysis

Similar packages