Skip to content

lpires/train-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Train Problem Exercise

Is an Restfull Api that calculates for a given graph the cost, steps and path from a source to a destination node.

Following you can find the available resources:

 - /edge

    Method: GET List all the edges
            POST Creates a new edge

            Payload :
                - src    - source node
                - dst    - destination node
                - length - cost of src to dst

 - /route
     Method: POST Creates a new route

             Payload :
                 - path   - pre-define path
                 - src    - source node
                 - dst    - destination node
                 - length - cost of src to dst
                 - cost   - cost limit
                 - step   - step limit


To run this api server application you will need to run the Sinatra by:

 1. bundle install
 2. run app.rb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages