aboutsummaryrefslogtreecommitdiffstats
path: root/packages/open-api/hoarder-openapi-spec.json
diff options
context:
space:
mode:
Diffstat (limited to 'packages/open-api/hoarder-openapi-spec.json')
-rw-r--r--packages/open-api/hoarder-openapi-spec.json96
1 files changed, 96 insertions, 0 deletions
diff --git a/packages/open-api/hoarder-openapi-spec.json b/packages/open-api/hoarder-openapi-spec.json
index 7e1911cb..56dad7a7 100644
--- a/packages/open-api/hoarder-openapi-spec.json
+++ b/packages/open-api/hoarder-openapi-spec.json
@@ -2040,6 +2040,102 @@
}
}
}
+ },
+ "/users/me": {
+ "get": {
+ "description": "Returns info about the current user",
+ "summary": "Get current user info",
+ "tags": [
+ "Users"
+ ],
+ "security": [
+ {
+ "bearerAuth": []
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Object with user data.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string",
+ "nullable": true
+ },
+ "email": {
+ "type": "string",
+ "nullable": true
+ }
+ },
+ "required": [
+ "id"
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "/users/me/stats": {
+ "get": {
+ "description": "Returns stats about the current user",
+ "summary": "Get current user stats",
+ "tags": [
+ "Users"
+ ],
+ "security": [
+ {
+ "bearerAuth": []
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "Object with user stats.",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "numBookmarks": {
+ "type": "number"
+ },
+ "numFavorites": {
+ "type": "number"
+ },
+ "numArchived": {
+ "type": "number"
+ },
+ "numTags": {
+ "type": "number"
+ },
+ "numLists": {
+ "type": "number"
+ },
+ "numHighlights": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "numBookmarks",
+ "numFavorites",
+ "numArchived",
+ "numTags",
+ "numLists",
+ "numHighlights"
+ ]
+ }
+ }
+ }
+ }
+ }
+ }
}
}
} \ No newline at end of file