Skip to content

Victor2004/involta-test-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Запуск образа doker

Пример

docker run -p9088:9088 -p6534:6534 -it reindexer/reindexer

Использование API

Список HTTP-запросов

curl http://localhost:8080/
List of HTTP requests:
		/		Shows a list of commands or help for one command
		/getlist	Get a list of documents
		/get/:id	Get the document
		/add		Add a document
		/update		Update document
		/delete		Delete a document

Пример создания документа

curl -X POST -H "Content-Type: application/json" -d "{\"name\":\"John\", \"year\": 1998}" localhost:8080/add
{"Added document":{"ID":36,"Name":"Victor","Year":2004}}

Конфигурационный файл

app.env находистся в папке configs

REINDEXER_SERVER_ADDRESS=cproto://localhost:6534
DATABASE_NAME=testdb
NAMESPACE=items
APP_SERVER_ADDRESS=:8080

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages