/VugoPress

VugoPress is a test project developed for practicing with the Go programming language. In this project, we've implemented a set of handlers, services, and repositories for basic web API operations.

Primary LanguageGo

VugoPress

VugoPress is a test project developed for practicing with the Go programming language. In this project, we've implemented a set of handlers, services, and repositories for basic web API operations.

Usage

To use the API, you can send HTTP requests to the following endpoints:

Users

  • POST /register: Register route
  • POST /login: Login route

Articles

  • GET /articles: Get all articles
  • POST /articles: Create a new article
  • GET /articles/:id: Get an article by ID
  • PUT /articles/:id: Update an article by ID
  • DELETE /articles/:id: Delete an article by ID

Tags

  • GET /tags: Get all tags
  • POST /tags: Create a new tag
  • GET /tags/:id: Get a tag by ID
  • PUT /tags/:id: Update a tag by ID
  • DELETE /tags/:id: Delete a tag by ID

Useful Links

  • GET /useful_links: Get all useful links
  • POST /useful_links: Create a new useful link
  • GET /useful_links/:id: Get a useful link by ID
  • PUT /useful_links/:id: Update a useful link by ID
  • DELETE /useful_links/:id: Delete a useful link by ID

Social Media Links

  • GET /social_media_links: Get all social media links
  • POST /social_media_links: Create a new social media link
  • GET /social_media_links/:id: Get a social media link by ID
  • PUT /social_media_links/:id: Update a social media link by ID
  • DELETE /social_media_links/:id: Delete a social media link by ID

Contacts

  • GET /contacts: Get all contacts
  • POST /contacts: Create a new contact
  • GET /contacts/:id: Get a contact by ID
  • PUT /contacts/:id: Update a contact by ID
  • DELETE /contacts/:id: Delete a contact by ID

The API accepts and returns JSON data.