senaite / senaite.jsonapi

RESTful JSON API for SENAITE
https://www.senaite.com
GNU General Public License v2.0
11 stars 19 forks source link

Creation of Analysis Request through JSON API is not supported. Request aborted. #31

Closed min2great closed 4 years ago

min2great commented 4 years ago

When a request for the creation of AR is submitted through Senaite JSON API, it fails with the following message:

Creation of Analysis Request through JSON API is not supported. Request aborted.

The version of Senaite LIMS is 1.3.1.

ramonski commented 4 years ago

Developer note, because this is confusing:

We have senaite.jsonapi (this repository), which was initially planned as successor for the internal JSON API that ships currently with senaite.core.

The Sample creation does currently not work with the internal JSON API only, but should work with senaite.jsonapi.

Hence, this issue needs to be fixed here: https://github.com/senaite/senaite.core/blob/master/bika/lims/jsonapi/create.py#L168

eagle-hub commented 4 years ago

hi @ramonski

I am using Senaite JSON API 1.2.2 When I send a request to create AnalysisRequest it returns with ""No target UID/PATH information found"

I looked into ALLOWED_PORTAL_TYPES_TO_CREATE list and found that AnalysisRequest is listed but not working!

Any suggestions?

xispa commented 4 years ago

https://github.com/senaite/senaite.jsonapi/pull/32