[App Municipal] Noticias

Organização: Município da Guarda
Tema: Governação
Licença: Creative Commons Attribution 4.0 International
Status: Approved
Última atualização:
Descrição:

Endpoint para disponibilização de notícias do Município da Guarda

Endpoints

NomeURLMétodo
Endpoint V1.0 https://od.mun-guarda.pt/api/appmunicipal/noticias GET

Schemas

Schema URL
https://od.mun-guarda.pt/files/schemas/2025/schema_20251127070742.json
Schema Media Type
application/schema+json
Schema JSON
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Model",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "number"
              },
              "status": {
                "type": "string"
              },
              "featured": {
                "type": "boolean"
              },
              "title": {
                "type": "string"
              },
              "category": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "number"
                    },
                    "title": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "title"
                  ]
                }
              },
              "image": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "alt": {
                    "type": "string"
                  }
                }
              },
              "content": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "setup": {
                      "type": "object",
                      "properties": {
                        "text": {
                          "type": "string"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "url": {
                                "type": "string"
                              },
                              "label": {
                                "type": "string"
                              },
                              "target": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "url",
                              "label",
                              "target"
                            ]
                          }
                        }
                      }
                    },
                    "title": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "setup",
                    "title"
                  ]
                }
              },
              "images_gallery": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "alt": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "url",
                    "alt"
                  ]
                }
              },
              "created_at": {
                "type": "string"
              },
              "updated_at": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "status",
              "featured",
              "title",
              "category",
              "image",
              "content",
              "images_gallery",
              "created_at",
              "updated_at"
            ]
          }
        }
      }
    }
  }
}

Ficheiros

NomeFormatoTamanho

Versão Atual

  • Status do Schema: Approved
  • Última Atualização:
  • Versão Atual: 1