Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

API / Fileadapter: resource response data for create folder request #89

Closed
dneukirchen opened this issue Feb 22, 2017 · 2 comments
Closed

Comments

@dneukirchen
Copy link
Contributor

dneukirchen commented Feb 22, 2017

Steps to reproduce the issue

Try to create a new folder:
POST /administrator/index.php?option=com_media&format=json&task=api.files&path=/
JSON BODY: {name: 'my-folder'}

Expected result

A single resource response (not an array of items) with the data of the newly created folder:

{
  success: true,
  message: null, 
  messages: null, 
  data: {
    type: "folder", 
    name: "my-folder", 
    path: "/my-folder", 
    extension: "", 
    size:…
  }
}

Actual result

The contents of the newly created folder.

{success: true, message: null, messages: null, data: []}
@dneukirchen dneukirchen changed the title API / Fileadapter: resource response data API / Fileadapter: resource response data for create folder request Feb 22, 2017
@dneukirchen dneukirchen added this to the Milestone 1 milestone Feb 22, 2017
@dneukirchen
Copy link
Contributor Author

Quick and dirty solution: 7f87259

@laoneo
Copy link
Contributor

laoneo commented Feb 23, 2017

This should be fixed with PR #96.

@laoneo laoneo closed this as completed Feb 23, 2017
laoneo pushed a commit that referenced this issue Feb 23, 2017
Fix danger alert in core.js
@laoneo laoneo moved this from Issues to Done in Controller like Rest endpoints Mar 21, 2017
laoneo pushed a commit that referenced this issue May 18, 2018
…mpl/override/edit.php (#89)

* Remove inline Javascript for administrator/components/com_languages/tmpl/override/edit.php

* use slice in foreach

* deleted line

* wip

* use data attrib as it is a state specific behavior

* worked on the forgotton inline javascript

* worked on the forgotton inline javascript

* correction

* correction

* rename data attribute
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants