Hello
I've recently taken up programming more seriously than Hello World in some common languages. I've created a web app in Ruby on Rails for training purposes but now I'd like to do the same thing with a Rails API. However I don't quite understand the concept and I don't know how to word the questions I have.
The web app approach was pretty straight forward. I used MVC pattern where controllers took the biggest hit to manipulate data and feed instance variables to the embedded ruby templates where some kind of front end framework (I used bootstrap) was used to make everything look alright.
Now my understanding is that using an API first approach (or a BaaS approach) means creating a RESTful API that responds to HTTP requests with a JSON message which is useful for portability of the project. What I don't understand is how is this API used by an application. For example when creating another web app but this time wanting to use the API, are the API and the application two different projects? How do I make API calls anyway? I want to create the entire application in rails/coffeescript. What is this pattern/architecture called? I still need to create a rails "backend" (in essence controllers) that makes calls to the API that I've created and maps responses to ruby objects to be show in the front end?
I've used simple external APIs before where I just need a URL and some kind of gem to create the request. I've never used "local" or self-made APIs before. Does the API exist in the same project as the code used to call the API and the rest of the front end etc?
TLDR: How to use a self-made rest api in rails to create a web application?
Any links on this topic very welcome
Thanks
>>4975603
did you look up what the return type of the .tostring method?
>>>/g/
fuggin' nerd
>>4976112
/g/entooman here
we dont want him either
> Open random thread.
> Reply to random post.
> Call the poster reddit.
> Start a fight.
Who /mischief/ here?
>>4975553
Who are you quoting? Dumb frogposter.
>post frog on s4s
>collect (You)s
>actually too intelligent to post on s4s
Bune on the front page.
>>4975529
the classic that started it all
Your fortune: Bad Luck
Vintage meme.
Only war veterans remember.
>>4975533 (dubdubs)
bumbig with chekc tbh
Your fortune: Outlook good
ses
>>4975445
Who you lookin' at, punk?
>>4975457
aeeuuuhh
>>4975445
>>4975457
>>4975459
keep hydraTED ramSES
an irl anime
>>4975419
looks even uglier than normal anime
dumb animeposter
>>4975425
kill le yourself
Would you a irl Karen?
way to be nice
Your fortune: Godly Luck
nice
>>4975313
not nice....
chinatsu a shit
ses
Your fortune: Reply hazy, try again
ITT: newfigs can't#shade#fortune
Your fortune: Reply hazy, try again
>>4975287
I am new
Your fortune: Good news will come to you by mail
Newfag inbound
Your fortune: Bad Luck
(you)s make everyone feel good ^_^. Give a (you) to the person above you itt this holiday season :^D
>>4975037
(you)
>>4975042
I love (you)
>>4975046 are cute :3
i started watching love live ironically but i think i actually like it now
>>4974738
r u srs
>>4974738
it has hot anime girls!!!!!
>>4974738
>dumb animeposter
>s4s is the worst board
if we could just get rid of the lewd posters and the traps and the dick posters and taco kid and the gore posters and the puke and shit posters we would be fine.
>>4974716
>>4974716
le nice b8 :^)
ebil foote
haha
>>4974590
a footfag somewhere is jerking it to this
really makes you think
>>4974618
hat is lost ;__;
le cartoon magic girl
>>4974583
le cuckquean phasmatodea
magic ain't real
>>4974583
its gonna get a little voyeuristic
it's gonna get a little cuckoldry
im not from round here
i am from /co/mblr
Dubs decides my runescape name
>>4974525
You may be right but you didn't get dubs so h*ck off
dubs
would swaglord sticky le dab girl?
Only if I post this informative info-graphic on the nature of meme-love spirituality.
Your fortune: Excellent Luck
>>4974453
oh wow thanks for the informative
>>4974453
>GIF
Is this a jumpscare?
I'm making the 12th thread about my dumb cat and literally nothing can stop me.
swaglord left us bcause all these faggots
>>4974100
Dubs confirm
Have a Map of the Balkan front
>>4974102
sipley ebin i can see my hous