Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quassel-rest-search
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
quassel-rest-search
Commits
f24dba27
Verified
Commit
f24dba27
authored
4 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Document API
parent
103d7764
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DOCUMENTATION.md
+50
-0
50 additions, 0 deletions
DOCUMENTATION.md
with
50 additions
and
0 deletions
DOCUMENTATION.md
0 → 100644
+
50
−
0
View file @
f24dba27
# Documentation
## API Endpoints
Authentication happens via
[
HTTP basic auth
](
https://tools.ietf.org/html/rfc7617
)
### api/backlog/
This endpoint returns full backlog for a single quassel buffer, centered around a certain message.
**Parameters**
:
| Name | Type | Required | Description |
| -------- | ------ | -------- | ----------------------------------------------------------------- |
|
`anchor`
| Number |
`true`
| Index message for which to retrieve surrounding backlog |
|
`buffer`
| Number |
`true`
| Chat/Buffer from which messages should be retrieved |
|
`before`
| Number |
`true`
| Number of messages to load chronologically before the anchorpoint |
|
`after`
| Number |
`true`
| Number of messages to load chronologically after the anchorpoint |
### api/search/
This endpoint returns search results across all buffers.
**Parameters**
:
| Name | Type | Required | Description |
| --------- | --------- | -------- | ------------------------------------------------------------------------------ |
|
`query`
| String |
`true`
| Query to filter messages |
|
`since`
| Timestamp |
`false`
| If set, only show messages received after this timestamp. Format: '1970-01-01' |
|
`before`
| Timestamp |
`false`
| If set, only show messages received beforethis timestamp. Format: '1970-01-01' |
|
`buffer`
| String |
`false`
| If set, only show messages if the name of the chat/buffer they are in matches |
|
`network`
| String |
`false`
| If set, only show messages if the name of the network they are in matches |
|
`sender`
| String |
`false`
| If set, only show messages if the nick!user@host of the sender matches |
|
`limit`
| Number |
`true`
| Number of messages to return per buffer |
### api/searchbuffer/
This endpoint returns search results for a single quassel buffer.
**Parameters**
:
| Name | Type | Required | Description |
| --------- | --------- | -------- | ------------------------------------------------------------------------------ |
|
`query`
| String |
`true`
| Query to filter messages |
|
`since`
| Timestamp |
`false`
| If set, only show messages received after this timestamp. Format: '1970-01-01' |
|
`before`
| Timestamp |
`false`
| If set, only show messages received beforethis timestamp. Format: '1970-01-01' |
|
`buffer`
| Number |
`true`
| Id of the buffer to search in |
|
`sender`
| String |
`false`
| If set, only show messages if the nick!user@host of the sender matches |
|
`offset`
| Number |
`true`
| Number of results to skip (for pagination) |
|
`limit`
| Number |
`true`
| Number of messages to return |
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment