Foren

Search JournalArticle

Aurélien Praga, geändert vor 10 Jahren.

Search JournalArticle

New Member Beiträge: 7 Beitrittsdatum: 16.01.12 Neueste Beiträge
Hi,

I would like to get a JournalArticle list corresponding to a structure with the Liferay API. For that, I think that the journalarticle/search method is the best.

The problem is that there is a lot of parameters and I don't really know the required parameters.

Here is the list :

companyId
groupId
classNameId
articleId
version
title
description
content
type
structureId
templateId
displayDateGT
displayDateLT
status
reviewDate
andOperator
start
end
obc

Which parameter is required ? What is the date format (for displayDateGT and displayDateLT for example) ?

And do you have an url example ?

Thank you for your help

PS : for the moment, I'm using the Liferay interface at http://.../api/jsonws
Aurélien Praga, geändert vor 10 Jahren.

RE: Search JournalArticle

New Member Beiträge: 7 Beitrittsdatum: 16.01.12 Neueste Beiträge
I've found some of these params (timestamp for date...). For example :

http://localhost:8080/api/jsonws/journalarticle/search?formDate=1367322795683&p_auth=TP0uh1pd&companyId=165&groupId=19&classNameId=10103&articleId=null&version=1&title=&description=&content=&type=&structureId=10867&templateId=&displayDateGT=1367323291&displayDateLT=1367323291&status=-1&reviewDate=1367323291&andOperator=true&start=2000&end=0&+obc=com.liferay.portlet.journal.util.comparator.ArticleModifiedDateComparator&p_auth=TP0uh1pd

I'm uinge REST Client for Firefox and I've this error :

{"exception":"No JSON web service action associated with path /journalarticle/search and method POST for /"}

An idea ?
thumbnail
Vilmos Papp, geändert vor 10 Jahren.

RE: Search JournalArticle

Liferay Master Beiträge: 529 Beitrittsdatum: 21.10.10 Neueste Beiträge
It's maybe related to this issue (already fixed on trunk): http://issues.liferay.com/browse/LPS-29265
Aurélien Praga, geändert vor 10 Jahren.

RE: Search JournalArticle (Antwort)

New Member Beiträge: 7 Beitrittsdatum: 16.01.12 Neueste Beiträge
Finally, with a colleague, we found the problem : http://localhost:8080/api/jsonws/journalarticle/search.19?...

With that, the ws know exactly which method use.

Thank you for your answer
thumbnail
Vilmos Papp, geändert vor 10 Jahren.

RE: Search JournalArticle

Liferay Master Beiträge: 529 Beitrittsdatum: 21.10.10 Neueste Beiträge
You're welcome!
thumbnail
Krunal Kumar Patel, geändert vor 7 Jahren.

RE: Search JournalArticle

New Member Beiträge: 7 Beitrittsdatum: 27.07.12 Neueste Beiträge
Aurélien Praga:
Finally, with a colleague, we found the problem : http://localhost:8080/api/jsonws/journalarticle/search.19?...

With that, the ws know exactly which method use.

Thank you for your answer



Can you tell me how many field is required ?
Because, I also want to search journal article based on tags, category, content title and keyword.

How you have solve issue?

Thanks in advance.

Krunal Patel
LARYSSA CRISTINO, geändert vor 5 Jahren.

RE: Search JournalArticle

New Member Beiträge: 2 Beitrittsdatum: 05.03.18 Neueste Beiträge
Aurélien Praga:
Finally, with a colleague, we found the problem : http://localhost:8080/api/jsonws/journalarticle/search[b].19[/b]?... With that, the ws know exactly which method use. Thank you for your answer



Sorry,

 

Can you explain me?

I need so much this resolution...

 

Thanks.