Ticket #1025 (closed Defect: fixed)

Opened 8 years ago

Last modified 8 years ago

REST API: update-type request without a data type

Reported by: jri Owned by: jri
Priority: Minor Milestone: Release 4.8.4
Component: DeepaMehta Standard Distribution Version: 4.8.3
Keywords: Cc: dgf, Malte, JuergeN
Complexity: 2 Area: Application Framework / API
Module: deepamehta-core

Description

An update-type request should not be required to contain a data type when the data type doesn't change. At the moment a JSON parsing exception is thrown if the request doesn't contain a data type.

Change History

comment:1 Changed 8 years ago by jri

  • Status changed from new to accepted

comment:2 Changed 8 years ago by Jörg Richter <jri@…>

In 5e89ff1ed660e93eef33207b77aa88f27e40d981/deepamehta:

REST API: update-type req w/o data type (#1025).

An update-type request is not required to contain a data type when the data type doesn't change.

Example: change the URI of topic type with ID 1234

curl -H Content-Type:application/json -X PUT localhost:8080/core/topictype -d '{
    id: 1234,
    uri: "domain.project.b"
}'

See #1025.

comment:3 Changed 8 years ago by jri

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.