cs361-stock-prediction / stock-predictor

All Code for Stock Prediction Web App for CS361 Winter 2020
1 stars 0 forks source link

API documentation #17

Closed detjensrobert closed 4 years ago

detjensrobert commented 4 years ago

Due Date: ASAP Prerequisites: #1 Estimated time: 1h

We need to agree on the structure of the server API so the client can request data. Something like site.com/api/stockdata?ticker=TICKER, etc

API Events

Requests

lyellread commented 4 years ago

@detjensrobert I found this and this(better). Looks like we should use .../api/stockdata/$TICKER for example. How does this sound.

detjensrobert commented 4 years ago

and account stuff under /api/accounts/$USN, e.g. to add a stock to an account?

Works for me.

lyellread commented 4 years ago

and account stuff under /api/accounts/$USN, e.g. to add a stock to an account?

I would go with /api/stockadd/account/stock,

detjensrobert commented 4 years ago

Gonna update the readme with the api docs on api-docs