Giter Site home page Giter Site logo

simple-api-flizzy's Introduction

Api Flizzy

To start your Phoenix server:

  • Install Elixir V1.14.3

  • Phoenix Framework V.1.7.0

  • Run mix setup to install and setup dependencies

  • Run Phoenix with (mix phx.server \ iex -S mix phx.server)

  • Run without Phoenix (iex -S mix run)


#inside IEx with iex -S mix phx.server \\ iex -S mix run

  • iex(1)> ApiFlizzy.FlizzyCash.Api.test_ping()

#if Connection was successful

%{"Flizzy_Says" => "(V1) To the Bandoeng!"}

#if Connection was fail

%{"Flizzy_Says" => "(V1) Fail To the Bandoeng!"}

  • iex(2)> ApiFlizzy.FlizzyCash.Api.ambil_coin()

#Example Output From 11k+ Coins

[

%{

"id" => "0chain",

"name" => "01coin",
  
"platforms" => %{}, 

"symbol" => "zoc"

},

%{

"id" => "0chain",

"name" => "Zus",

"platforms" => %{

  "ethereum" => "0xb9ef770b6a5e12e45983c5d80545258aa38f3b78",
  
  "polygon-pos" => "0x8bb30e0e67b11b978a5040144c410e1ccddcba30"
  
},

"symbol" => "zcn"

},

%{

"id" => "0vix-protocol",

"name" => "0VIX Protocol",

"platforms" => %{},

"symbol" => "vix"

},

%{

"id" => "0x",

"name" => "0x",

"platforms" => %{

  "avalanche" => "0x596fa47043f99a4e0f122243b841e55375cde0d2",
  
  "energi" => "0x591c19dc0821704bedaa5bbc6a66fee277d9437e",
  
  "ethereum" => "0xe41d2489571d322189246dafa5ebde1f4699f498",
  
  "harmony-shard-0" => "0x8143e2a1085939caa9cef6665c2ff32f7bc08435"
  
},

"symbol" => "zrx"

}

]


Available Routes

┌──(USER㉿YOUR)-[~/elixir/api_flizzy]

└─$ mix phx.routes

GET /api/ping ApiFlizzyWeb.ApiController :ping

GET /api/coins ApiFlizzyWeb.ApiController :list_coinnya


#Phoenix endpoint with mix phx.server \\ iex -S mix phx.server


Ready to run in production? Keepin Touch With Me @febr.id [instagram]

Learn more

simple-api-flizzy's People

Contributors

febrd avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.