Skip to content

goranq/salt-proxy-JSONplaceholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JSONPlaceholder Salt Proxy

This Salt proxy module can be used to query (dummy) JSON data from JSONPlaceholder. It was created as part of the learning process and it should be treated as such (use it at your own risk).

Setup

  1. Install Salt according to The Salt install guide. For simplicity, it is assumed that Salt master and minion are on the same machine.
  2. Copy contents of srv folder in this project to /srv folder on your Salt machine.

Usage

  • display a blog post:

    sudo salt proxy_blog proxy_blog.show_blog_post <blog_post_id>
  • display a blog post, including its author's name:

    sudo salt proxy_blog proxy_blog.show_blog_post <blog_post_id> author=True
  • display a blog post, including its author's name and all comments that are associated to the post:

    sudo salt proxy_blog proxy_blog.show_blog_post <blog_post_id> author=True comments=True

Check out proxy_blog.asiinema, it shows usage samples in form of asciinema recording.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published