1. News
Pynews
  • Authentication
    • Athenticate
      POST
  • News
    • Create
      POST
    • Get
      GET
    • Like
      POST
  • Libraries
    • Create Subscription
      POST
    • Add new Library
      POST
    • GET List of the last 30 days updates
      GET
  1. News

Create

Developing
POST
/news
Criação de um tema para ser votado

Request

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'http://localhost:8080/news' \
--header 'Authorization:  ' \
--header 'user-email: userA@gmail.com' \
--header 'Content-Type: application/json' \
--data '{
    "title": "natus minus reprehenderit",
    "content": "Commodi dignissimos debitis esse molestias aperiam odio voluptatem. Non eius nisi fugiat cum occaecati fugit. Voluptatem dicta sapiente iusto explicabo.",
    "author": "Patrick Leffler",
    "category": "tecnologia",
    "tags": [
        "inventore"
    ],
    "source_url": "https://thirsty-checkbook.net",
    "social_media_url": "https://fluid-writing.com"
}'
Response Response Example
{ "news_id" : "6548797862"}
Modified at 2025-07-07 23:48:10
Previous
Athenticate
Next
Get
Built with