Skip to content

Commit

Permalink
Add operationId
Browse files Browse the repository at this point in the history
  • Loading branch information
raducristianpopa committed Jan 26, 2024
1 parent af47068 commit eb7eae7
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 27 deletions.
2 changes: 2 additions & 0 deletions packages/openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"name": "@interledger/wm-openapi",
"homepage": "https://github.com/interledger/web-monetization-extension/tree/main/packages/openapi",
"private": true,
"main": "src/index.ts",
"types": "src/index.ts",
"repository": {
"type": "git",
"url": "[email protected]:interledeger/web-monetization-extension.git",
Expand Down
1 change: 1 addition & 0 deletions packages/openapi/schemas/web-monetization-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ info:
paths:
/:
post:
operationId: connect-wallet
security:
- bearer: []
summary: Connect a wallet
Expand Down
58 changes: 31 additions & 27 deletions packages/openapi/src/generated/wm-server-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,7 @@
export interface paths {
"/": {
/** Connect a wallet */
post: {
requestBody: {
content: {
"application/json": {
/** Format: uri */
walletAddressUrl: string;
amount: number;
recurring: boolean;
};
};
};
responses: {
/** @description OK */
200: {
content: {
"application/json": {
/** Format: uri */
interactionUrl: string;
/** Format: uri */
continueUrl: string;
continueToken: string;
};
};
};
};
};
post: operations["connect-wallet"];
};
"/incoming-payment": {
/** Create incoming payment */
Expand Down Expand Up @@ -103,4 +78,33 @@ export type $defs = Record<string, never>;

export type external = Record<string, never>;

export type operations = Record<string, never>;
export interface operations {

/** Connect a wallet */
"connect-wallet": {
requestBody: {
content: {
"application/json": {
/** Format: uri */
walletAddressUrl: string;
amount: number;
recurring: boolean;
};
};
};
responses: {
/** @description OK */
200: {
content: {
"application/json": {
/** Format: uri */
interactionUrl: string;
/** Format: uri */
continueUrl: string;
continueToken: string;
};
};
};
};
};
}
1 change: 1 addition & 0 deletions packages/openapi/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './generated/wm-server-types';

0 comments on commit eb7eae7

Please sign in to comment.