Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

TradeEye API

Alperen Bag edited this page May 25, 2019 · 3 revisions

API Documentation

Currency

  1. Retrieve All Currency Exchange Rates
    http://52.87.206.237:8000/currencies/
    It will return all currency exchange rate information in our server. Currently, we offer only TRY/USD and USD/TRY.
  2. Retrieve Only One Currency Exchange Rate
    http://52.87.206.237:8000/currencies/id
    It will return the currency exchange rate according to the given id. ID of USD/TRY is 0, ID of TRY/USD is 1.
  3. Conversion Between Currencies
    http://52.87.206.237:8000/currencies/convert/from/to/amount
    It will convert to given amount of money () from one currency () to other currency (). For example, in order to convert 10 TRY to USD;
    http://52.87.206.237:8000/currencies/convert/TRY/USD/10

Article

  1. Retrieve All Articles
    GET request to http://52.87.206.237:8000/articles/
    It will return all the articles in our database.
  2. Retrieve a Spesific Article
    GET request to http://52.87.206.237:8000/articles/id
    It will return the article which has the given id.
  3. Create an Article
    POST request to http://52.87.206.237:8000/articles/ with an article object in the body
    It will create an article which has the given title and content.
  4. Update an Article
    PUT request to http://52.87.206.237:8000/articles/id with an article object in the body
    It will update the article object having the given id, according to the given information on the body.
  5. Delete an Article
    DELETE request to http://52.87.206.237:8000/articles/id
    It will delete the article which has the given id.
  6. Retrieve the Articles which Contain the Given Keyword in Title
    GET request to http://52.87.206.237:8000/articles/getbykeywordsintitle/keyword
    It will retrieve the articles which contain the given keyword in it's title.
  7. Retrieve the Articles which Contain the Given Keyword in Content
    GET request to http://52.87.206.237:8000/articles/getbykeywordsincontent/keyword
    It will retrieve the articles which contain the given keyword in it's content.

Subscribe

  1. Add an email address to email list.
    http://52.87.206.237:8000/mail/
    POST request can be sent from following url using Subscribe button, valid emails will be added to email list at mailchimp. It requires CSRF verification to protect your application from cross-site request forgery(CSRF) attacks. So the request should be sent through from website page.

Event

  1. Retrieve All Events
    http://52.87.206.237/#/events
    Get request to events url. It will return all upcoming events from target web page.

Clone this wiki locally