Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

bitmorse/vijo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virtual Journal

This package consists of:

  • Ember.js Frontend: /index.php
  • CakePHP Backend: /api

Requirements

  • PHP5/Apache2
  • QScience (http://inn.ac) OAuth Consumer
  • MongoDB (with a publications collection)
  • Elasticsearch (indexing the mongodb publications collection)

Installation

This package will currently not work if you don't have MongoDB and Elasticsearch already up and running.

You will also need to rename

/api/app/Config/database.php.default /api/app/Config/core.php.default

to

/api/app/Config/database.php /api/app/Config/core.php

and change the respective values within.

API Documentation

<tr>
    <td>List all public journals</td>
    <td>/api/virtualjournals.json</td>
    <td>GET</td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td>List the results (publications) of a virtual journal</td>
    <td>/api/virtualjournals/[virtualjournal_id].json</td>
    <td>GET</td>
    <td></td>
    <td></td>
</tr>

<tr>
    <td>List top publications</td>
    <td>/api/publications.json</td>
    <td>GET</td>
    <td></td>
    <td></td>
</tr>

 <tr>
    <td>Get a single publication</td>
    <td>/api/publications/[publication_id].json</td>
    <td>GET</td>
    <td></td>
    <td></td>
</tr>

<tr>
    <td>Post a publication</td>
    <td>/api/publications.json</td>
    <td>POST</td>
    <td>
    Replace null with your value: 
    {"publication":{"title":null,"abstract":null,"authors":null,"publication_date":null (UTC MongoDb Date), "source":"e.g. qscience-instance-name"}</td>
    <td>[publication_id]</td>
</tr>
Action URL Method Parameters Return values
Create a new virtual journal /api/virtualjournals.json POST Replace null with your value: {"virtualjournal":{"title":null,"description":null,"authors":null,"discipline":null,"title_contains":null,"abstract_contains":null,"papers_similar_to_author":null,"papers_similar_to_keywords":null,"minimum_amount_of_tweets":null,"created":null,"institution":null,"is_published_in":null}} [virtualjournal_id]

About

Virtual Journal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages