/
REST/MVC News Controller

REST/MVC News Controller

REST/MVC Path for News definition
HTTP MethodPathDescriptionController Method
/rest/news/{newsId}Retrieves news entry by identifiergetNews(newsId: String)
Parameters:
  • newsId: News primary key  (Path parameter)

/rest/news/Adds a news item

updateNews(news: NewsDTO)

Parameters:
  • news: News json (Body)
/rest/news/{newsId}Updates an existent news itemupdateNews(news: NewsDTO, newsId: String)
Parameters:
  • news: News json (Body)
  • newsId: News identifier  (Path parameter)
/rest/news/{newsId}Removes an existent news entryremoveNews(newsId: String)
Parameters:
  • newsId: News primary key  (Path parameter)
/rest/news/Search for news by criteria

findNewsByCriteria(criteria : NewsCriteria)

Parameters:
  • criteria: Criteria filter json (Body parameter)

Avvale 2024