API REST
Interfacce applicative (API) alle quali potersi connettere per sottoporre interrogazioni secondo l'architettura REST.
Risorsa /jacms/content
The representation of the content
- Nome
- content
- Namespace
- /jacms
- Sorgente
- plugins, CMS (jacms)
- URI
- https://www.comune.cagliari.it/portale/legacyapi/rs/it/jacms/content
- Estensione
- '.xml' per la risposta in formato xml e '.json' per la risposta in formato json.
GET
- Metodo
- Disponibile
- Descrizione
- Return a public content
- Autorizzazione
- Nessuna, questo metodo è pubblico
- Schema XML
- Risposta
| Nome | Descrizione | Obbligatorio |
|---|---|---|
| id | The Id of the content to return (Example: "CNG34", or "NEW45") | Si |
| modelId | The Id of the content model used to render each content in the HTML section of the response. Must be an integer, 'default' or 'list' | No |
POST
- Metodo
- Disponibile
- Descrizione
- Add a content
- Autorizzazione
- Utenti registrati con permesso Supervision of contents
- Schema XML
-
Richiesta
Risposta
| Nome | Descrizione | Obbligatorio |
|---|---|---|
| insertOnLine | If 'true', insert the new content online. Entries 'true' or 'false', default value 'false' | No |
PUT
- Metodo
- Disponibile
- Descrizione
- Update a content
- Autorizzazione
- Utenti registrati con permesso Supervision of contents
- Schema XML
-
Richiesta
Risposta
| Nome | Descrizione | Obbligatorio |
|---|---|---|
| insertOnLine | If 'true', update the new content online. Entries 'true' or 'false', default value 'false' | No |
DELETE
- Metodo
- Disponibile
- Descrizione
- Delete a content
- Autorizzazione
- Utenti registrati con permesso Supervision of contents
- Schema XML
- Risposta
| Nome | Descrizione | Obbligatorio |
|---|---|---|
| id | The Id of the content to delete (Example: "CNG34", or "NEW45") | Si |
| removeWorkVersion | If 'true', remove also the work version. Entries 'true' or 'false', default value 'false' | No |
Comune di Cagliari