Skip to content

sanzharanarbay/golang_elastic_search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Golang elastic-search

#Run commands below:

API Documentation

  1. POST http://localhost:8080/api/v1/dashboard/posts/create
{
    "title":"Test 29",
    "content":"Test 29",
    "category_id":29
}
  1. PUT http://localhost:8080/api/v1/dashboard/posts/update/27
{
    "title":"Test 29",
    "content":"Test 29",
    "category_id":29
}
  1. DELETE http://localhost:8080/api/v1/dashboard/posts/delete/28

  2. GET http://localhost:8080/api/v1/dashboard/posts/all

  3. GET http://localhost:8080/api/v1/dashboard/posts/27

  4. POST http://localhost:8080/api/v1/dashboard/posts/search

{
    "title":"Test 29", 
    "content":"Test 29", // not required
    "category_id":29 // not required
}