Giter Site home page Giter Site logo

go-lang-rpc's Introduction

CS5429 Distributed Computing: Lab Practical 01

We can access client via api endpoints and client will execute RPC in server and return the outputs in response

server will run in port 9000 in localhost and client will run in port 7000 in localhost

Receive a list of all available vegetables and display.

client will expose http://localhost:7000/vegetables/get/all endpoint to excute that function

Get the price per kg of a given vegetable and display

client will expose http://localhost:7000/vegetables/get/pricePerKg?Name=Carrot endpoint to excute that function

Get the available amount of kg of a given vegetable and display

client will expose http://localhost:7000/vegetables/get/availableAmount?Name=Carrot endpoint to excute that function

Send a new vegetable name to the server to be added to the server file

client will expose http://localhost:7000/vegetables/add?Name=Cabbage&PricePerKg=430&AvailableAmountOfKg=20 endpoint to excute that function

Send new price or available amount for a given vegetable to be updated in the server file.

client will expose http://localhost:7000/vegetables/update?Name=Carrot&PricePerKg=430&AvailableAmountOfKg=20 endpoint to excute that function

go-lang-rpc's People

Contributors

pubuduc 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.