|
| 1 | +{% extends "base.html" %} |
| 2 | +{# Copyright The IETF Trust 2015, All Rights Reserved #} |
| 3 | +{% load origin %} |
| 4 | + |
| 5 | +{% block title %}Draft submission API instructions{% endblock %} |
| 6 | + |
| 7 | +{% block content %} |
| 8 | + {% origin %} |
| 9 | + <h2>Draft submission API instructions</h2> |
| 10 | + |
| 11 | + <p> |
| 12 | + A simplified draft submission interface, intended for automation, |
| 13 | + is available at <code>{% url 'ietf.submit.views.api_submit' %}</code>. |
| 14 | + </p> |
| 15 | + <p> |
| 16 | + The interface accepts only xml uploads which can be processed on the server, and |
| 17 | + requires the user to have a datatracker account. A successful submit still requires |
| 18 | + the same email confirmation roundtrip as submissions done through the regular |
| 19 | + <a href="{% url 'ietf.submit.views.upload_submission' %}">submission tool</a>. |
| 20 | + </p> |
| 21 | + <p> |
| 22 | + This interface does not provide all the options which the regular submission tool does. |
| 23 | + Some limitations: |
| 24 | + <ul> |
| 25 | + <li>Only xml-only uploads are supported, not text or combined.</li> |
| 26 | + <li>Document replacement information cannot be supplied.</li> |
| 27 | + <li>The server expects <code>multipart/form-data</code>, supported by <code>curl</code> but <b>not</b> by <code>wget</code></li> |
| 28 | + </ul> |
| 29 | + </p> |
| 30 | + <p> |
| 31 | + It takes 2 parameters: |
| 32 | + </p> |
| 33 | + <ul> |
| 34 | + <li><code>user</code> which is the user login</li> |
| 35 | + <li><code>xml</code>, which is the submitted file |
| 36 | + </ul> |
| 37 | + <p> |
| 38 | + It returns an appropriate http result code, and a brief explanatory text message. |
| 39 | + </p> |
| 40 | + <p> |
| 41 | + Here is an example:</li> |
| 42 | + </p> |
| 43 | + <pre> |
| 44 | + $ curl -S -F "user=user.name@example.com" -F "xml=@~/draft-user-example.xml" https://datatracker.ietf.org/api/submit |
| 45 | + Upload of draft-user-example OK, confirmation requests sent to: |
| 46 | + User Name <user.name@example.com> |
| 47 | + </pre> |
| 48 | + |
| 49 | + |
| 50 | +{% endblock %} |
0 commit comments