Skip to content

Commit b5ca246

Browse files
authored
Update README.md
api versioning
1 parent fdb57b4 commit b5ca246

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,15 @@ class Application < Rails::Application
150150
```
151151

152152
Since this tutorial is mainly for testing and toy projects, we are allowing ALL methods from another domain. You should tailor the header and methods to your liking.
153+
154+
## Rails API Versioning
155+
156+
Versioning is the process of seperating and creating new features/data/endpoints for your API. Since this is our first API, let's make our ```test-api``` v1.
157+
158+
1. Run the following in your terminal
159+
```shell
160+
mkdir mkdir app/controllers/api && mkdir app/controllers/api/v1
161+
```
162+
If everything looks right you should see your directory identical as below. <br><br>
163+
<a href="http://tinypic.com?ref=3589c11" target="_blank"><img src="http://i67.tinypic.com/3589c11.png" height="280" width="280" border="0" alt="Image and video hosting by TinyPic"></a>
164+

0 commit comments

Comments
 (0)