Skip to content

Commit

Permalink
chore: update html
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoreira-valory committed Oct 16, 2024
1 parent 9c5dd3b commit 1171f3e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions market_approval_server/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ <h2>View the server databases</h2>
<li><a href="/all_markets">All markets</a></li>
</ul>

<h2>View a single market by MARKET_ID endpoints</h2>
<p>Requires to know the MARKET_ID:</p>
<ul>
<li><code>/proposed_market/MARKET_ID</code>: Marked in "Proposed markets" database</a></li>
<li><code>/approved_market/MARKET_ID</code>: Marked in "Approved markets" database</a></li>
<li><code>/rejected_market/MARKET_ID</code>: Marked in "Rejected markets" database</a></li>
<li><code>/processed_market/MARKET_ID</code>: Marked in "Processed markets" database</a></li>
<li><code>/market/MARKET_ID</code>: Marked in any database</a></li>
</ul>

<h2>Main interaction methods</h2>

<ul>
Expand All @@ -50,6 +60,10 @@ <h2>Other methods</h2>
<pre>curl -X PUT -H "Authorization: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"id": "MARKET_ID", ...}' -k {{ server_ip }}/update_market</pre>
</li>

<li>Update a market id:
<pre>curl -X PUT -H "Authorization: YOUR_API_KEY" -H "Content-Type: application/json" -d '{"id": "MARKET_ID", "new_id": "NEW_MARKET_ID"}' -k {{ server_ip }}/update_market_id</pre>
</li>

<li>Get a random accepted market and mark it as processed:
<pre>curl -X POST -H "Authorization: YOUR_API_KEY" -H "Content-Type: application/json" -k {{ server_ip }}/get_process_random_approved_market</pre>
</li>
Expand Down

0 comments on commit 1171f3e

Please sign in to comment.