Juillermo / DjangoREST

Toy REST api that retrieves data from an elastic search database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DjangoREST

Basic REST api that serves as an interface for an Elasticsearch database. It is built with Django, Django REST framework and elasticsearch-py. The database contains news articles with two different fields: title and body.

There are three views defined for the api:

  • /articles/titles/, which retrieves all titles from the database
  • /articles/bodys/, which retrieves all news bodies
  • /articles/(title)/, which retrieves the body corresponding to a specific title

About

Toy REST api that retrieves data from an elastic search database.


Languages

Language:Python 100.0%