NAV
bash

da.e.ventures APIDOCs

*Please note all requests must be https and post

api/add_storage

Example request:

curl -v -XPOST -H "Content-Type: application/json;charset=UTF-8; Cache-Control: no-cache" -d '{"token":"hidden","name":"db","description":"external db example for storage/object factoring","db":1,"db_uri":"{user:'myuser', host:'example.com', port:3306, schema:'main-schema'}","db_table_name":"class_entry","db_field_name":"field","db_insert_sql":"none"}' 'https://da.e.ventures/api/add_storage'

HTTP Request

POST api/add_storage

api/add_source

  • Required Fields: name,description, type + bitType(s) param according to type
  • Available bitTypes:

  • curl -v -XPOST -H "Content-Type: application/json;charset=UTF-8; Cache-Control: no-cache" -d '{"token":"hidden","type":"t1","name":"url example","description":"source example, url as digital asset","url":"e.ventures","protocol":"https"}' 'https://da.e.ventures/api/add_source'
    

    HTTP Request

    POST api/add_source

    api/get_object_current_version

    Example request:

    curl -v -XPOST -H "Content-Type: application/json;charset=UTF-8; Cache-Control: no-cache" -d '{"token":"hidden","da_id":1009}' 'https://da.e.ventures/api/get_object_current_version'

    HTTP Request

    POST api/get_object_current_version

    api/acquire_object_new_version

    Example request:

    curl -v -XPOST -H "Content-Type: application/json;charset=UTF-8; Cache-Control: no-cache" -d '{"token":"hidden","da_id":1009}' 'https://da.e.ventures/api/acquire_object_new_version'

    HTTP Request

    POST api/acquire_object_new_version

    api/get_source_flags_for_all_bittypes

    HTTP Request

    POST api/get_source_flags_for_all_bittypes

    Example request:

    
       curl -v -XPOST -H "Content-Type: application/json;charset=UTF-8; Cache-Control: no-cache" -d '{"token":"hidden"}' 'https://da.e.ventures/api/get_source_flags_for_all_bittypes'

    api/get_blueprint_shapes

    Example request:

    
       curl -v -XPOST -H "Content-Type: application/json;charset=UTF-8; Cache-Control: no-cache" -d '{"token":"hidden"}' 'https://da.e.ventures/api/get_blueprint_shapes'

    HTTP Request

    POST api/get_blueprint_shapes

    api/get_storage_configs

    Example request:

    curl -v -XPOST -H "Content-Type: application/json;charset=UTF-8; Cache-Control: no-cache" -d '{"token":"hidden"}' 'https://da.e.ventures/api/get_storage_configs'

    HTTP Request

    POST api/get_storage_configs

    api/add_blueprint

    Example request:

    curl -v -XPOST -H "Content-Type: application/json;charset=UTF-8; Cache-Control: no-cache" -d '{"token":"hidden","source_id":SOURCE_ID,"name":"e.ventures front page","description":"front page as da, auto delta monitoring","site":1}' 'https://da.e.ventures/api/add_blueprint'
  • Required Fields: name,description, and at least one shape
  • Available Shapes:
  • HTTP Request

    POST api/add_blueprint

    api/add_digital_asset

    Example request:

    
    curl -v -XPOST -H "Content-Type: application/json;charset=UTF-8; Cache-Control: no-cache" -d '{"token":"hidden","blueprint_id":blueprint_id,"storage_id":storage_id,"name":"e.ventures.front.page","description":"site example","da_email":"the@e.ventures","allowed_locally":1}' 'https://da.e.ventures/api/add_digital_asset'
    
        

    HTTP Request

    POST api/add_digital_asset

    api/get_blueprint

    Example request:

    curl -v -XPOST -H "Content-Type: application/json;charset=UTF-8; Cache-Control: no-cache" -d '{"token":"hidden","blueprint_id":blueprint_id}' 'https://da.e.ventures/api/get_blueprint'

    HTTP Request

    POST api/get_blueprint

    api/generate_dataset

    Example request:

    curl -X POST \
        "http://localhost/api/get_kci" \
        -H "Content-Type: application/json" \
        -H "Accept: application/json"

    HTTP Request

    POST api/generate_dataset

    api/get_source

    Example request:

    curl -v -XPOST -H "Content-Type: application/json;charset=UTF-8; Cache-Control: no-cache" -d '{"token":"hidden","source_id":source_id}' 'https://da.e.ventures/api/get_source'
    

    HTTP Request

    POST api/get_source

    api/get_storage

    Example request:

    curl -v -XPOST -H "Content-Type: application/json;charset=UTF-8; Cache-Control: no-cache" -d '{"token":"hidden","storage_id":storage_id}' 'https://da.e.ventures/api/get_storage'
    

    HTTP Request

    POST api/get_storage

    api/get_da

    Example request:

    curl -v -XPOST -H "Content-Type: application/json;charset=UTF-8; Cache-Control: no-cache" -d '{"token":"hidden","da_id":da_id}' 'https://da.e.ventures/api/get_da'
    

    HTTP Request

    POST api/get_da

    api/get_kci

    Example request:

    curl -X POST \
        "http://localhost/api/get_kci" \
        -H "Content-Type: application/json" \
        -H "Accept: application/json"

    HTTP Request

    POST api/get_kci

    api/generate_kci

    Example request:

    curl -X POST \
        "http://localhost/api/generate_kci" \
        -H "Content-Type: application/json" \
        -H "Accept: application/json"

    HTTP Request

    POST api/generate_kci

    api/publish_da

    Example request:

    curl -X POST \
        "http://localhost/api/publish_da" \
        -H "Content-Type: application/json" \
        -H "Accept: application/json"

    HTTP Request

    POST api/publish_da

    api/publish_deltas

    Example request:

    curl -X POST \
        "http://localhost/api/publish_deltas" \
        -H "Content-Type: application/json" \
        -H "Accept: application/json"

    HTTP Request

    POST api/publish_deltas