使用 Rails 構建 API 實踐

首先創建一個項目: build-an-api-rails-demohtml $ rails new build-an-api-rails-demo 加入第一個 API resource BaseController 生成控制器:git # 咱們不須要生成資源文件 $ bundle exe rails g controller api/v1/base --no-assets app/controll
相關文章
相關標籤/搜索