Skip to content
/ api Public

Test application programming interface (API)

Notifications You must be signed in to change notification settings

CalCOFI/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calcofi-api

Application programming interface (API) for CalCOFI.io.

Restart the Production API

Since adding the API as its own dedicated Docker container (+ plumber api container, ssd disk · CalCOFI/server@727e708 on Nov 15, 2024), to restart the service (by having the container restart /share/github/api/run-api.R), you simply need to login to the terminal of the server and restart the Docker container:

# change directory to the Github server repo with Docker compose container configuration files
cd /share/github/server

# restart the plumber container
docker compose restart plumber

# inspect logs to check for any problems
docker logs plumber

Develop the API

Within this API repository, open the plumber.R file in RStudio and click on the Run API button.

For more, see REST APIs with plumber :: Cheatsheet

Git pane missing?

If so, in Terminal run git status to provide command you need to run:

git config --global --add safe.directory /share/github/api

Then open a different RStudio project (upper right), and this one again to return the Git pane in RStudio.

About

Test application programming interface (API)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages