Skip to content

Commit

Permalink
Document and recommend base64 format for providing content via the API
Browse files Browse the repository at this point in the history
  • Loading branch information
nymanjens committed Jun 4, 2024
1 parent 2a72ca8 commit e489ccc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/jvm/src/main/resources/routes
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ GET /externalapi/healthcheck/ hydro.controllers.StandardActions.healthC
GET /externalapi/dbschema/:appSecret/ hydro.controllers.StandardActions.databaseSchema(appSecret)
GET /externalapi/clearoldentitymodifications/:dryOrWet/:appSecret/ hydro.controllers.StandardActions.clearOldEntityModifications(dryOrWet, appSecret)
GET /externalapi/share/:docId/:loginName/:appSecret/ app.controllers.ExternalApi.shareDocument(docId, loginName, appSecret)
# Inserts a task. It is recommended to provide `content` in the form of "base64:<base64 encoded Markdown content>"
GET /externalapi/inserttask/:docId/$parentTag<[^/]+>/:appSecret/*content app.controllers.ExternalApi.insertTask(docId, parentTag, content, appSecret)
GET /externalapi/gettasksasjson/:docId/$parentTag<[^/]+>/:appSecret/ app.controllers.ExternalApi.getTasksAsJson(docId, parentTag, appSecret)
GET /externalapi/regenordertokens/:dryOrWet/:appSecret/ app.controllers.ExternalApi.regenerateOrderTokens(dryOrWet, appSecret)

# Interactive shortcuts
GET /interactive/done app.controllers.ExternalApi.interactiveDone()
# Inserts a task. It is recommended to provide `content` in the form of "base64:<base64 encoded Markdown content>"
GET /interactive/inserttask/:docId/$parentTag<[^/]+>/*content app.controllers.ExternalApi.interactiveInsertTask(docId, parentTag, content)

# Auth
Expand Down

0 comments on commit e489ccc

Please sign in to comment.