-
rails new app-name --apibuilds a smaller rails app without a lot of frontend power that rails offers -
Now this is more of an API that doesn't deal with views
-
What kind of generator to use for building models?
scaffold, resource? -
Currently comment out actions of users#show and users#index, can figure that our later
-
Routes will change with api/route
-
Change namespace for routes
site.com/api/coffee/3 -
Need to think of which serializer to use, to protect the data coming back
- Idea of taking information from database, when rendering
json, Rails will take the Ruby object - Ruby object built from taking information in the DB, providing an object with all the information
- Rendering
jsonwill serialize that object into ajsonversion - What information from database should actually be exposed as
json??? - What's provided in the schema will show on the json format, this is malleable
- Should whitelist and only allow the attributes that are wanted for exposure
- May also want to expose relationships with json format
- Idea of taking information from database, when rendering
-
relationships are a bit tough to square up right now. i'm getting confused
-
take care of errors and status that is coming back(later?)
forked from mekowalski/coffee-app
-
Notifications
You must be signed in to change notification settings - Fork 0
AMANGAUD2000/coffee-app
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Ruby 99.1%
- HTML 0.9%