Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It should be able to query all cmhandles cm handles with a given set of public cmhandle cm handle properties.

Requirements

  • We want all cm-Handles where both things are true.
  • Those properties also need to exist.
  • If query body does not follow supported structure return 400.
  • Empty query will return all cm-Handles.

A/C:

  1. Demo - with "and" behaviourbehavior
  2. CI Test - two attributes


Issues/Decisions

...

  • Update openapi specification for new endpoint
  • Update Controller for new endpoint
  • Add new SQL query to return data
    • If no data found return all cm handles 
    • else return data
  • Implement 400 if request does not follow structure
  • Create CSIT test with two attributes
  • Demo functionality


Below is the implementation proposal for this story.

Interface Proposal

#URISQL QueryDesign NotesComment
1POST /ncmp/v1/data/ch/searches

Scenario :  Request received to return all cmhandles cm handles matching properties given
Method   : POST
URI          : {ncmpRoot}/ncmp/v1/data/ch/searches 
Header    : Content-Type: application/json

Request Body

Code Block
languageyml
{
  "publicCmHandleProperties" : {           
        "module1": "revision1",
		"module2": "revision2"    }
}


Response Body

Code Block
languageyml
[{
		"cmHandle": "cmHandle001cmHandle1",
		"cmHandleProperties": {
			"module1": "revision1",
			"module2": "revision2"
		}
	},
	{
		"cmHandle": "cmHandle002",
		"cmHandleProperties": {
			"module1": "revision1",
			"module2": "revision2"
		}
	}cmHandle2",
	...,
	"cmHandleN"
]




Future Example (Out-of-scope)

...