Get support for luin/doclab
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
luin/doclab
Doclab
Install
npm install doclab-api
HTTP API
There are two methods available for authentication: HTTP Basic and session token. HTTP Basic authentication should only be used to request a new session token or when session token don't have enough permission to access(or update) the resource(i.e. changing user's password).
To auth a user using session token, set the custom header "X-SESSION-TOKEN" with the value of the token you have.
Sessions
POST /sessions
Create a new session and get the token. You need to specify a ttl(measured in seconds).
Users
GET /users/{userId|'me'}
Get the info of the user
POST /users
Create a new user
PATCH /users/{userId|'me'}
Update the current user's info
PUT /users/{userId|'me'}/password
Update the current user's password
Teams
GET /teams
Get all teams
POST /teams
Create a new team
Projects
POST /projects
Create a new project
GET /projects
Get all projects which the current user has access to
GET /projects/:projectId
Get the specified project info
PATCH /projects/:projectId
Update a project
POST /projects/:projectId/collections
Create a collection
PUT /projects/:projectId/teams/:teamId
Update the permission of the team to the project
Collections
Get /collections/:collectionId
Get the specified collection info
Get /collections/:collectionId/dirs
Get the dirs of a collection
POST /collections/:collectionId/dirs/_move
Move the doc in the dirs
POST /collections/:collectionId/docs
Create a doc
POST /collections/:collectionId/_move
Move a collection
Docs
GET /docs/:docUUID
Get the doc.You can use ?version=:version
to specified a version
GET /docs/:docUUID/versions
Get the versions of the doc
PATCH /docs/:docUUID
Update the title or content of the doc
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2