Skip to content

febriyan1302/RestAPICurrency

Repository files navigation

RestAPICurrency

This Project using

  • Python 3 With Django Rest Framework
  • Mysql
  • Docker (2 container -> app & mysql)

app run with port :8087, Ex : localhost:8087

To import database please run : "/bin/sh import_database.sh"

  1. User Input daily exchange data -> tanggal, from, to, rate

    => curl --header "Content-Type: application/json" --request POST --data '{"c_from":"IDR","c_to":"GBP","rate":15000,"tanggal":"2018-08-19"}' http://localhost:8087/price/

  2. User can see exchange rate

    • with parameter -> date
    • Response Required “FROM, TO, Rate, 7-day avrage”

=> curl "http://127.0.0.1:8087/price/"

=> curl "http://127.0.0.1:8087/price/?date=2018-8-16"

  1. User want to add exchange list with parameter -> FROM & TO

=> curl --header "Content-Type: application/json" --request POST --data '{"c_from":"IDR","c_to":"MAY"}' http://localhost:8087/exchange/

  1. User can delete exchange list with parameter -> FROM & TO

=> curl -X "DELETE" http://127.0.0.1:8087/exchange/IDR/MAY

Thank You !

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published