Skip to content

marcodarko/smartAPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

266 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smartAPI

Intelligent APIs for a more connected web.

A BD2K/Network-of-BioThings project.

smartAPI allows API publishers to annotate their services and input/output parameters in a structured and identifiable manner, based on a standard JSON-LD format for biomedical APIs and services. By indexing and visualizing these descriptions as Linked Data in a MongoDB back-end, researchers can seamlessly identify the services that consume or return desired parameters, and automatically compose services in workflows that yield new insights.

Presentation: http://bit.ly/smartAPIslides

Repo: https://github.com/WebsmartAPI/smartAPI

Roadmap: https://docs.google.com/document/d/1mEQs5NuOr23p8iMfNkF01Kxbf8iJz63SE43D9DSpG_o/edit?usp=sharing

How to run a dev API server locally

  1. Install Elasticsearch at localhost:9200 (follow this instruction)
  2. Clone this repo
  3. Install python dependencies
pip install -r src/requirements.txt
  1. cd src
  2. Create a config.py under src with the site-specific settings. Contact us for an example config.py file.
  3. Create index in Python shell:
from api import es
es.create_index()
  1. Import some API data from a saved dump file. Contact us for the dump file.
from api import es
esq = es.ESQuery()
esq.restore_all("smartapi_oai_v3_backup_20171117.json", es.ES_INDEX_NAME)

First parameter is the dump file name you received from us.

  1. run dev server
python index.py --debug

You should now able to access API dev server at http://localhost:8000

About

Intelligent APIs for a more connected web: http://smart-api.info

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 47.9%
  • HTML 41.4%
  • CSS 5.9%
  • JavaScript 4.8%