Skip to content

Find why i can't upload a new resource by the Rest API #3

@bricesanchez

Description

@bricesanchez

A message from @simi:

Hello @bricesanchez!

This is because you expect @resource in template, but only array of @resources is defined in controller.

I'm not sure how to handle this in returned views, but now you're returning only last image for example hence multiple images was created. Images works only because @image is defined in controller.

Probably you'll need to use separate views for show and create (just array of show view) to return list of created resources for create action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions