alchemy_cms

https://github.com/magiclabs/alchemy_cms

Ruby

AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻‍♂️

Api::ContentsController#show

Returns a json object for content

You can either load it from :id param
or even more useful via passing the element id and the name of the content

  $ bin/rake routes

for more infos on how the url looks like.

Source | Google | Stack overflow

Edit

git clone [email protected]:magiclabs/alchemy_cms.git

cd alchemy_cms

open app/controllers/alchemy/api/contents_controller.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Api--ContentsController-show-for-pr


# Commit to git

git add app/controllers/alchemy/api/contents_controller.rbgit commit -m "better docs for Api::ContentsController#show"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Api--ContentsController-show-for-pr

hub pull-request


# Celebrate!