Skip to content

Instantly share code, notes, and snippets.

@GamePad64
Last active November 10, 2016 11:35
Show Gist options
  • Save GamePad64/ed4bf2c777c8ff9c75d0240bae16614f to your computer and use it in GitHub Desktop.
Save GamePad64/ed4bf2c777c8ff9c75d0240bae16614f to your computer and use it in GitHub Desktop.
---
swagger: '2.0'
info:
version: 0.0.0
title: Librevault API
paths:
/globals:
post:
responses:
200:
description: OK
consumes:
- application/json
/status:
get:
responses:
200:
description: OK
produces:
- application/json
/folders/{folder_hash}:
put:
responses:
200:
description: OK
consumes:
- application/json
produces:
- application/json
parameters:
- in: path
name: folder_hash
description: Hex representation of folder_hash to be added
required: true
type: string
- in: body
name: body
required: true
schema:
$ref: "#/definitions/FolderJSON"
delete:
responses:
200:
description: OK
parameters:
- in: path
name: folder_hash
description: Hex representation of folder_hash to be removed
required: true
type: string
definitions:
FolderJSON:
type: object
required:
- secret
- path
properties:
secret:
type: string
path:
type: string
system_path:
type: string
index_event_timeout:
type: integer
format: uint64
preserve_unix_attrib:
type: boolean
preserve_windows_attrib:
type: boolean
preserve_symlinks:
type: boolean
normalize_unicode:
type: boolean
chunk_strong_hash_type:
type: integer
full_rescan_interval:
type: integer
format: uint64
ignore_paths:
type: array
items:
type: string
nodes:
type: array
items:
type: string
archive_type:
type: string
enum:
- none
- trash
- timestamp
- block
archive_trash_ttl:
type: integer
archive_timestamp_count:
type: integer
mainline_dht_enabled:
type: boolean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment