V1::SchoolProductTopicsController
School Product Topics
index
Get a list of school_product_topics
URL
GET /school_products/:school_product_id/school_product_topicsObjeto resposta
Array<SchoolProductTopic> | The created school_product_topics |
create
Create new school_product_topic
URL
POST /school_products/:school_product_id/school_product_topicsParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
school_product_topic | Hash | The school_product_topic to create |
school_product_topic[title] | String | Title of the school_product_topic |
school_product_topic[description] | String | Description of the school_product_topic |
school_product_topic[school_product_id] | Integer | SchoolProduct of the school_product_topic |
Objeto resposta
SchoolProductTopic | The created school_product_topic or a list of errors |
show
Get a school_product_topics information
URL
GET /school_product_topics/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
id | Integer | of the school_product_topic |
Objeto resposta
SchoolProductTopic | The requested school_product_topic |
update
Update an existing school_product_topic and redirect to 'show' action
URL
PUT/PATCH /school_product_topics/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
school_product_topic | Hash | The school_product_topic to create |
school_product_topic[title] | String | Title of the school_product_topic |
school_product_topic[description] | String | Description of the school_product_topic |
school_product_topic[school_product_id] | Integer | SchoolProduct of the school_product_topic |
Objeto resposta
SchoolProductTopic | The created school_product_topic or a list of errors |
destroy
Destroy school_product_topic
URL
DELETE /school_product_topics/:idParâmetros obrigatórios
Nome | Tipo | Descrição |
---|---|---|
id | Integer | Id of an school_product_topic |