Skip to content

PowereX-jsa/toy-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

toy-api

Toy example API in R

what to improve

recommendations

  • You can run skeleton API using function: ' toyAPI::run_api()' after loading package throught 'devtools::load_all(".")'
  • We recommend to use RStudio IDE for development (u can used our dockerized version with preinstalled common libs https://hub.docker.com/repository/docker/powerex/pwx-rstudio)
  • You can use eureka discovery service in docker-compose.yml file:
    • run docker-compose up -d
    • discovery service runs on localhost:8761
    • documentation (some things might be different now, for example no need to use v2 in url): https://github.com/Netflix/eureka/wiki/Eureka-REST-operations
    • could use either xml or json
    • endpoint for listing apps: GET localhost:8761/eureka/apps
    • endpoint for registering app: POST localhost:8761/eureka/apps/MYAPP
    • endpoint for heartbeat: PUT localhost:8761/eureka/apps/MYAPP/i-6589ef6
    • endpoint for deregistering app: DELETE localhost:8761/eureka/apps/MYAPP/i-6589ef6

Usefull links:

About

Toy example API in R

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages