Get News By Id
GET/news/:id
This operation allows to get News by ID
Request
Path Parameters
id uuidrequired
Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
news id
Responses
- 200
- 401
- 403
- 404
- 500
ok
- application/json
- Schema
- Example (from schema)
Schema
id uuid
Possible values: Value must match regular expression [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
news id
dateStart date
start date of the news
dateEnd date
end date of the news
eventType string
event Type
information string
informations about the news
status string
Possible values: [ACTIVE
, DESACTIVE
]
news state
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"dateStart": "2022-03-10",
"dateEnd": "2022-03-10",
"eventType": "string",
"information": "string",
"status": "ACTIVE"
}
unauthorized access
- application/json
- Schema
- Example (from schema)
Schema
code int32
error code
message string
error message
description string
error description
{
"code": 0,
"message": "string",
"description": "string"
}
forbidden access
- application/json
- Schema
- Example (from schema)
Schema
code int32
error code
message string
error message
description string
error description
{
"code": 0,
"message": "string",
"description": "string"
}
not found
- application/json
- Schema
- Example (from schema)
Schema
code int32
error code
message string
error message
description string
error description
{
"code": 0,
"message": "string",
"description": "string"
}
internal error
- application/json
- Schema
- Example (from schema)
Schema
code int32
error code
message string
error message
description string
error description
{
"code": 0,
"message": "string",
"description": "string"
}
Loading...