Create a Basic API with Ruby on Rails - Part 1 - Returning JSON Data

  Рет қаралды 51,621

webcrunch

webcrunch

3 жыл бұрын

PART 1 - Returning JSON DATA
Welcome to a new ongoing tutorial mini-series dedicated to building an API-driven Ruby on Rails application.
The goal of this series is to give some perspective of what it's like building a backend API that can talk to multiple applications no matter the platform.
I plan to discuss topics like returning data to a client, routing, versioning, authentication, and more.
Read the full blog post here: web-crunch.com/posts/create-a...
=======
Hi, My name is Andy Leverenz and I work as a product designer and developer. For fun, I design, code, and write. Check out my blog called Web-Crunch web-crunch.com where I publish design and development tutorials with the occasional vlog.
♥️ Sponsor me on GitHub
github.com/sponsors/justalever
☕️ Keep me awake. Buy me a coffee
www.buymeacoffee.com/webcrunch
📰 One-Click Subscribe:
kzbin.info...
💻 Previously published at:
web-crunch.com/posts/create-a...
👋 Latest Course: HELLO HTML & CSS (coming soon)👋
hellohtmlcss.com
💎Ruby on Rails Course: HELLO RAILS
hellorails.io
💻 Check out the blog:
web-crunch.com
🦄 Check out my personal site:
justalever.com
🚀 Links:
Weekly Newsletter: digest.web-crunch.com/
Twitter: / webcrunchblog
Github: github.com/justalever
📘Check out my book on UX Design:
"LUXD: Learn User Experience Design"
web-crunch.com/products/luxd
📙 Check out my FREE book on Tumblr Theming:
"Pro Tumblr Theming"
web-crunch.com/products/ptt

Пікірлер: 15
@pedrocxbx
@pedrocxbx 3 жыл бұрын
Great content, thanks for sharing Andy!
@rustam_tolipov
@rustam_tolipov 2 жыл бұрын
I love the theme which you are using in VS Code!
@adrienbenaceur4805
@adrienbenaceur4805 Жыл бұрын
Awesome video !
@aleksandrtarasov8631
@aleksandrtarasov8631 2 жыл бұрын
thanks!
@jl_woodworks
@jl_woodworks 3 жыл бұрын
Very nice. Insane you don't have more views.
@jackepner9984
@jackepner9984 Жыл бұрын
It looked like it was added to git without any commands... how did you set that up?
@rcolon85
@rcolon85 2 жыл бұрын
Thanks for this tutorial! Hey I have a question, after I migrate after creating the first book. I can't see anything on the localhost:3000 ? I've created an api before with localhost:3000/api/v1/ and get a response on postman but when I follow the steps I cant get anything back. What could it be?
@rcolon85
@rcolon85 2 жыл бұрын
Edit: Got it, had to reboot rails server
@anuj5857
@anuj5857 2 жыл бұрын
Good
@TheCardboardWorkshop
@TheCardboardWorkshop Жыл бұрын
Thank you for your tutorial. I wonder which extension that helps you type so fast?
@Webcrunch
@Webcrunch Жыл бұрын
I think you're looking for Emmet which autocompletes some different languages 👍
@Pelu6cuerdas
@Pelu6cuerdas 2 жыл бұрын
Is it possible to only show certain data in, for example, the index action of the controller and other data in the show action? I want to show more detailed info in show, but with the serializer is always the same
@Pelu6cuerdas
@Pelu6cuerdas 2 жыл бұрын
I resolved it. You can create custom serializations!
@marcosporto7489
@marcosporto7489 Жыл бұрын
Awsome video. But i dont know why, bur the --api command doesn't works on may rails 6.1.7. Doens not creates any API controllers or JSON renderings, e etc.. It creates a rails full app. Dont know what to do.. anyone please?
@iamjustine1
@iamjustine1 Жыл бұрын
maybe you forgot the scaffold part. Once you created the app using --api, there will be no generated api controller or json yet, unless you scaffold. you can also generate your own controller "rails g controller " then you can start your actions
Should you use Ruby on Rails in 2024?
14:43
webcrunch
Рет қаралды 9 М.
Monster dropped gummy bear 👻🤣 #shorts
00:45
Yoeslan
Рет қаралды 13 МЛН
Barriga de grávida aconchegante? 🤔💡
00:10
Polar em português
Рет қаралды 60 МЛН
😱СНЯЛ СУПЕР КОТА НА КАМЕРУ⁉
00:37
OMG DEN
Рет қаралды 1,8 МЛН
Vue CRUD App With A Ruby On Rails 7 API Tutorial
22:17
Deanin
Рет қаралды 7 М.
Session1: Introduction to API Testing
1:28:06
SDET- QA
Рет қаралды 867 М.
SOLID Principles in Ruby by Jim Weirich --  [RESTORED QUALITY]
46:00
What is an API (in 5 minutes)
4:56
Aaron Jack
Рет қаралды 534 М.
Simplifying Data with Rails Single Table Inheritance
9:45
Simple Ruby on Rails 5 REST API From Scratch
34:48
Traversy Media
Рет қаралды 153 М.
Monster dropped gummy bear 👻🤣 #shorts
00:45
Yoeslan
Рет қаралды 13 МЛН