norrs / lupo

DataCite REST API

Home Page:https://api.datacite.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Identifier Build Status Docker Build Status Maintainability Test Coverage Discourse users

DataCite REST API

Rails API application for managing DataCite providers, clients, prefixes and DOIs. The API is based on the JSONAPI specification.

Installation

Using Docker.

docker run -p 8065:80 datacite/lupo

or

docker-compose up

You can now point your browser to http://localhost:8065 and use the application. Some API endpoints require authentication.

Development

For basic setup one can use the following:

bundle exec rake db:create
bundle exec rake db:schema:load
bundle exec rake db:seed:development:base

All other seed opntion can be found using rake --tasks

We use Rspec for testing:

bundle exec rspec

Note when using a fresh test database you will need to instantiate the test db with:

bundle exec rake db:create RAILS_ENV=test

Follow along via Github Issues.

Note on Patches/Pull Requests

  • Fork the project
  • Write tests for your new feature or a test that reproduces a bug
  • Implement your feature or make a bug fix
  • Do not mess with Rakefile, version or history
  • Commit, push and make a pull request. Bonus points for topical branches.

License

Lupo is released under the MIT License.

About

DataCite REST API

https://api.datacite.org

License:MIT License


Languages

Language:Ruby 98.7%Language:HTML 1.1%Language:Dockerfile 0.1%Language:Shell 0.0%