Skip to content

Commit

Permalink
Update invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
chuck-dbos committed Jan 19, 2024
1 parent 3d92f12 commit 02bc9c7
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 6 deletions.
2 changes: 1 addition & 1 deletion yky-social/create-openapi-client.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:

# generate the openapi definition document
npx dbos-sdk openapi src/operations.ts
npx dbos-openapi generate src/operations.ts

# generate the typescript-fetch client
docker run --rm \
Expand Down
18 changes: 18 additions & 0 deletions yky-social/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions yky-social/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"uuid": "^9.0.1"
},
"devDependencies": {
"@dbos-inc/dbos-openapi": "file:../../dbos-sdk/packages/dbos-openapi/dbos-inc-dbos-openapi-0.0.0-placeholder.tgz",
"@dbos-inc/eslint-plugin": "^0.0.4",
"@jest/globals": "^29.5.0",
"@types/bcryptjs": "^2.4.2",
Expand Down
40 changes: 35 additions & 5 deletions yky-social/src/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# OpenApi specification generated by DBOS
# OpenApi specification generated for application

openapi: 3.0.3
info:
Expand All @@ -21,6 +21,8 @@ paths:
message:
type: string
additionalProperties: false
parameters:
- $ref: "#/components/parameters/dbosWorkflowUUID"
/recvtimeline:
get:
operationId: receiveTimeline
Expand Down Expand Up @@ -69,6 +71,8 @@ paths:
type: string
additionalProperties: false
additionalProperties: false
parameters:
- $ref: "#/components/parameters/dbosWorkflowUUID"
/sendtimeline:
get:
operationId: sendTimeline
Expand Down Expand Up @@ -114,6 +118,8 @@ paths:
type: string
additionalProperties: false
additionalProperties: false
parameters:
- $ref: "#/components/parameters/dbosWorkflowUUID"
/finduser:
get:
operationId: doFindUser
Expand Down Expand Up @@ -154,6 +160,7 @@ paths:
required: true
schema:
type: string
- $ref: "#/components/parameters/dbosWorkflowUUID"
/post/{id}:
get:
operationId: getPost
Expand Down Expand Up @@ -189,6 +196,7 @@ paths:
required: true
schema:
type: string
- $ref: "#/components/parameters/dbosWorkflowUUID"
/login:
post:
operationId: doLogin
Expand All @@ -208,7 +216,8 @@ paths:
id:
type: string
additionalProperties: false
parameters: []
parameters:
- $ref: "#/components/parameters/dbosWorkflowUUID"
requestBody:
required: true
content:
Expand Down Expand Up @@ -242,7 +251,8 @@ paths:
id:
type: string
additionalProperties: false
parameters: []
parameters:
- $ref: "#/components/parameters/dbosWorkflowUUID"
requestBody:
required: true
content:
Expand Down Expand Up @@ -279,7 +289,8 @@ paths:
message:
type: string
additionalProperties: false
parameters: []
parameters:
- $ref: "#/components/parameters/dbosWorkflowUUID"
requestBody:
required: true
content:
Expand Down Expand Up @@ -307,7 +318,8 @@ paths:
message:
type: string
additionalProperties: false
parameters: []
parameters:
- $ref: "#/components/parameters/dbosWorkflowUUID"
requestBody:
required: true
content:
Expand Down Expand Up @@ -352,6 +364,7 @@ paths:
required: true
schema:
type: string
- $ref: "#/components/parameters/dbosWorkflowUUID"
/getMediaDownloadKey:
get:
operationId: doKeyDownload
Expand Down Expand Up @@ -380,6 +393,7 @@ paths:
required: true
schema:
type: string
- $ref: "#/components/parameters/dbosWorkflowUUID"
/deleteMedia:
get:
operationId: doMediaDelete
Expand All @@ -405,6 +419,7 @@ paths:
required: true
schema:
type: string
- $ref: "#/components/parameters/dbosWorkflowUUID"
/startMediaUpload:
get:
operationId: doStartMediaUpload
Expand All @@ -427,6 +442,8 @@ paths:
file:
type: string
additionalProperties: false
parameters:
- $ref: "#/components/parameters/dbosWorkflowUUID"
/finishMediaUpload:
get:
operationId: finishMediaUpload
Expand All @@ -442,6 +459,7 @@ paths:
required: true
schema:
type: string
- $ref: "#/components/parameters/dbosWorkflowUUID"
/getProfilePhoto:
get:
operationId: getProfilePhoto
Expand Down Expand Up @@ -474,7 +492,18 @@ paths:
key:
type: string
additionalProperties: false
parameters:
- $ref: "#/components/parameters/dbosWorkflowUUID"
components:
parameters:
dbosWorkflowUUID:
name: dbos-workflowuuid
in: header
required: false
description: Caller specified [workflow idempotency
key](https://docs.dbos.dev/tutorials/idempotency-tutorial#setting-idempotency-keys)
schema:
type: string
schemas:
RecvType:
type: number
Expand Down Expand Up @@ -570,3 +599,4 @@ components:
additionalProperties:
type: string
additionalProperties: false
securitySchemes: {}

0 comments on commit 02bc9c7

Please sign in to comment.