ghowland / web6.0

Web Six Point Oh
MIT License
1 stars 5 forks source link

Zelin web6.0 #2

Closed zelin-l closed 7 years ago

zelin-l commented 7 years ago

In opsdb for the table web_site_api, please change the unique constraint to have the fields (web_site_id, name, web_protocol_action_id) instead of (web_site_id, name). This will allow multiple entries in web_site_api table for one API point with different web_protocol_action (ex: GET + POST for the api endpoint /api/vendor_order).

Added handlers to accept POST + PUT params and will store the params in udn_data["param"]. For POST + PUT, the params are expected to be in the body of the request. JSON could also be sent in a post request like before.