Class: Api::V1::Scaffolding::AbsolutelyAbstract::CreativeConceptsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Api::V1::Scaffolding::AbsolutelyAbstract::CreativeConceptsController
- Includes:
- StrongParameters
- Defined in:
- app/controllers/api/v1/scaffolding/absolutely_abstract/creative_concepts_controller.rb
Defined Under Namespace
Modules: StrongParameters
Instance Method Summary collapse
-
#create ⇒ Object
POST /api/v1/teams/:team_id/absolutely_abstract/creative_concepts.
-
#destroy ⇒ Object
DELETE /api/v1/scaffolding/absolutely_abstract/creative_concepts/:id.
-
#index ⇒ Object
GET /api/v1/teams/:team_id/absolutely_abstract/creative_concepts.
-
#show ⇒ Object
GET /api/v1/scaffolding/absolutely_abstract/creative_concepts/:id.
-
#update ⇒ Object
PATCH/PUT /api/v1/scaffolding/absolutely_abstract/creative_concepts/:id.
Methods included from StrongParameters
Instance Method Details
#create ⇒ Object
POST /api/v1/teams/:team_id/absolutely_abstract/creative_concepts
13 14 15 16 17 18 19 |
# File 'app/controllers/api/v1/scaffolding/absolutely_abstract/creative_concepts_controller.rb', line 13 def create if @creative_concept.save render :show, status: :created, location: [:api, :v1, @creative_concept] else render json: @creative_concept.errors, status: :unprocessable_entity end end |
#destroy ⇒ Object
DELETE /api/v1/scaffolding/absolutely_abstract/creative_concepts/:id
31 32 33 |
# File 'app/controllers/api/v1/scaffolding/absolutely_abstract/creative_concepts_controller.rb', line 31 def destroy @creative_concept.destroy end |
#index ⇒ Object
GET /api/v1/teams/:team_id/absolutely_abstract/creative_concepts
5 6 |
# File 'app/controllers/api/v1/scaffolding/absolutely_abstract/creative_concepts_controller.rb', line 5 def index end |
#show ⇒ Object
GET /api/v1/scaffolding/absolutely_abstract/creative_concepts/:id
9 10 |
# File 'app/controllers/api/v1/scaffolding/absolutely_abstract/creative_concepts_controller.rb', line 9 def show end |
#update ⇒ Object
PATCH/PUT /api/v1/scaffolding/absolutely_abstract/creative_concepts/:id
22 23 24 25 26 27 28 |
# File 'app/controllers/api/v1/scaffolding/absolutely_abstract/creative_concepts_controller.rb', line 22 def update if @creative_concept.update(creative_concept_params) render :show else render json: @creative_concept.errors, status: :unprocessable_entity end end |