Error in generator ts_sdk: The "url" argument must be of type string. Received undefined TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined at validateString (internal/validators.js:120:11) at Url.parse (url.js:160:3) at Object.urlParse [as parse] (url.js:155:13) at buildHttpClientClass (/opt/apibuilder/dist/generators/ts_sdk/index.js:526:67) at buildFile (/opt/apibuilder/dist/generators/ts_sdk/index.js:1842:150) at /opt/apibuilder/dist/generators/ts_sdk/index.js:1866:21 at new Promise (<anonymous>) at Object.generate (/opt/apibuilder/dist/generators/ts_sdk/index.js:1858:12) at Layer.<anonymous> (/opt/apibuilder/dist/server/app.js:84:19) at /opt/apibuilder/node_modules/dd-trace/packages/datadog-plugin-router/src/index.js:110:19

Competition API From Swagger 0.0.1-swagger

A fictional API for ApiBuilder tool features testing.

  • Contact: N/A
  • License: N/A

Resources

competitor

Operations

Method and Path Description
POST /competitors
GET /competitors/:id

competition

Operations

Method and Path Description
POST /competitions
GET /competitions/:id

Headers

No headers

Imports

No imports

Enums

CompetitionStatus

Name Value Description
pending pending
active active
closed closed

Interfaces

No interfaces

Models

competition

Example Json: Minimal | Full

Interfaces: None

A competition is a race game for the competitors to collect more vote points.

Field Type Required? Default Description
guid uuid Yes -

Internal unique identifier for this competition.

name string No -

status CompetitionStatus Yes -

start_at date-time-iso8601 Yes -

end_at date-time-iso8601 Yes -

created_at date-time-iso8601 Yes -

updated_at date-time-iso8601 Yes -

competition_participant

Example Json: Minimal | Full

Interfaces: None

The competition participant is a competitor who is playing in a specific competition and he/she be able to win that.

Field Type Required? Default Description
guid uuid Yes -

Internal unique identifier for this competition_participant.

competition_id uuid Yes -

competitor_id uuid Yes -

competitor

Example Json: Minimal | Full

Interfaces: None

The competitor can who can participate in a competition.

Field Type Required? Default Description
guid uuid Yes -

Internal unique identifier for this competitor.

name string Yes -

vote

Example Json: Minimal | Full

Interfaces: None

The vote is created by voter and it concern for a competition_participant

Field Type Required? Default Description
guid uuid Yes -

Internal unique identifier for this voter.

competition_participant_id uuid Yes -

voter_id uuid Yes -

type string Yes -

points integer Yes -

voter

Example Json: Minimal | Full

Interfaces: None

The voter can vote for competition_participant.

Field Type Required? Default Description
guid uuid Yes -

Internal unique identifier for this voter.

name string Yes -

Unions

No unions

Annotations

No annotations