Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rockefellerarchivecenter/argo
Formats API responses from ElasticSearch
https://github.com/rockefellerarchivecenter/argo
django microservice project-electron project-electron-discovery python3
Last synced: 1 day ago
JSON representation
Formats API responses from ElasticSearch
- Host: GitHub
- URL: https://github.com/rockefellerarchivecenter/argo
- Owner: RockefellerArchiveCenter
- License: mit
- Created: 2019-08-19T20:09:56.000Z (about 5 years ago)
- Default Branch: base
- Last Pushed: 2024-09-10T17:35:05.000Z (2 months ago)
- Last Synced: 2024-09-11T01:17:40.396Z (2 months ago)
- Topics: django, microservice, project-electron, project-electron-discovery, python3
- Language: Python
- Size: 2.18 MB
- Stars: 0
- Watchers: 9
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# argo
API middleware which provides a simplified API of data stored in Elasticsearch.
argo is part of [Project Electron](https://github.com/RockefellerArchiveCenter/project_electron), an initiative to build sustainable, open and user-centered infrastructure for the archival management of digital records at the [Rockefeller Archive Center](http://rockarch.org/).
## Setup
Install [git](https://git-scm.com/) and clone the repository
$ git clone [email protected]:RockefellerArchiveCenter/argo.git
Install [Docker](https://store.docker.com/search?type=edition&offering=community) and run docker-compose from the root directory
$ cd argo
$ docker-compose upOnce the application starts successfully, you should be able to access the application in your browser at `http://localhost:8000`
When you're done, shut down docker-compose
$ docker-compose down
Or, if you want to remove all data
$ docker-compose down -v
## Configuring
Argo configurations are stored in `/argo/config.py`. This file is excluded from version control, and you will need to update this file with values for your local instance.
The first time the container is started, the example config file (`/argo/config.py.example`) will be copied to create the config file if it doesn't already exist.
## Routes
| Method | URL | Parameters | Response | Behavior |
|--------|-----|---|---|---|
|GET|/agents||200|Returns data about Agents|
|GET|/collections||200|Returns data about Collections|
|GET|/objects||200|Returns data about Objects|
|GET|/search||200|Returns search data|## Development
This repository contains a configuration file for git [pre-commit](https://pre-commit.com/) hooks which help ensure that code is linted before it is checked into version control. It is strongly recommended that you install these hooks locally by installing pre-commit and running `pre-commit install`.
## License
This code is released under an [MIT License](LICENSE).