Project

General

Profile

« Previous | Next » 

Revision 3761

Added by Jing Tao almost 17 years ago

Add upload method into api.

View differences:

metacatapi.html
112 112
      <td>insert</td>
113 113
      <td>
114 114
        <ul>
115
          <li>docid - the user defined docid to assign to the new document.</li>
116
          <li>doctext - the text of the document to insert</li>
115
          <li>docid - the user defined docid to assign to the new XML document.</li>
116
          <li>doctext - the text of the XML document to insert</li>
117 117
        </ul>
118 118
      </td>
119
      <td>Insert doctext into the database.</td>
119
      <td>Insert an XML document into the database.</td>
120 120
    </tr>
121 121
    <tr>
122 122
      <td>update</td>
123 123
      <td>
124 124
      <ul>
125 125
        <li>docid - the docid of the document to update</li>
126
        <li>doctext - the text with which to update the document</li>
126
        <li>doctext - the text with which to update the XML document</li>
127 127
      </ul>
128 128
      </td>
129
      <td>Overwrite a document with a new one and give the new one 
129
      <td>Overwrite an XML document with a new one and give the new one 
130 130
          the same docid but with next revision number.</td>
131 131
    </tr>
132 132
    <tr>
133
      <td>upload</td>
134
      <td>
135
      <ul>
136
        <li>docid - the docid of the data document to upload</li>
137
        <li>datafile - the data document to upload</li>
138
      </ul>
139
      </td>
140
      <td>Upload (insert or update) a data document into the database. Data files are stored on 
141
               metacat and may be in any format (binary or text), but they are all
142
               treated as if they were binary. .</td>
143
    </tr>
144
    <tr>
133 145
      <td>delete</td>
134 146
      <td>
135 147
        <ul>

Also available in: Unified diff