clj-osf.revision.delete

Send a

To use the Revision: Delete code, you have to:

;; Use/require the namespace
(require '[clj-osf.revision.delete :as revision-d])

;; Define the OSF Sandbox credentials (or your own):
(require '[clj-osf.core :as osf])

(osf/defosf osf-test-endpoint {:protocol :http
                               :domain "sandbox.opensemanticframework.org"
                               :api-key "EDC33DA4D977CFDF7B90545565E07324"
                               :app-id "administer"})

(osf/defuser osf-test-user {:uri "http://sandbox.opensemanticframework.org/wsf/users/admin"})

Open Semantic Framework Endpoint Documentation

dataset

(dataset uri)

Specifies the dataset URI where the record is indexed.

The usage of this function is Required

Parameters
  • [uri] The dataset URI where the record is indexed. This is the URI of the dataset, and not the URI of the revisions dataset
Usage
(revision/delete
  (revision/dataset "http://sandbox.opensemanticframework.org/datasets/test/"))

delete

(delete & body)

Revision: Lister query.

Required

Usage
(revision/delete
  (revision/dataset "http://sandbox.opensemanticframework.org/datasets/test/")
  (revision/uri "http://sandbox.opensemanticframework.org/datasets/test/revisions/1417180339.0395"))

uri

(uri uri)

Specifies the URI of the record for which you want the list of revisions.

The usage of this function is Required

Parameters
  • [uri] URI of the revision record to delete
Usage
(revision/delete
  (revision/uri "http://sandbox.opensemanticframework.org/datasets/test/bob"))