diff --git a/readme.md b/readme.md index cf16992..632a6bd 100644 --- a/readme.md +++ b/readme.md @@ -7,6 +7,7 @@ This is the backend for the [Colligator frontend](https://github.com/scriptotek/ Fetch deps: composer install + npm install cp .env.example .env php artisan key:generate @@ -14,6 +15,13 @@ and modify `.env` as needed. php artisan serve +This project adheres to the PSR-2 style guide, +so you might want to use to install +[php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) +to + + php-cs-fixer fix $file --level=psr2 + ## CLI Create a collection and harvest bibliographic records, etc. (draft) diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 031d26f..42fa7ae 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -11,13 +11,13 @@ } body { - margin: 0; + max-width: 940px; + margin: auto; padding: 0; - width: 100%; - color: #B0BEC5; display: table; font-weight: 100; font-family: 'Lato'; + color: #444; } .container { @@ -32,20 +32,145 @@ } .title { + color: #B0BEC5; font-size: 96px; margin-bottom: 40px; } .quote { + text-align: left; + } + h2 { font-size: 24px; + font-family: monospace; + font-weight: normal; + } + h3 { + font-size: 16px; + font-weight: normal; + font-style: italic; + } + a, a:visited { + text-decoration: none; + color: blue; + } + a:hover { + text-decoration: underline; + } + table { + border-spacing: 0; + border-collapse: collapse; + } + td { + padding: 4px; + border-top: 1px solid #eee; + border-bottom: 1px solid #eee; }
-
Laravel 5
-
{{ Inspiring::quote() }}
+
> oh, the colligator <
+
+ +

GET /api/collections

+

+ List collections. +

+

+ Examples: +

+ + +

GET /api/documents

+

+ List documents. +

+ +

Parameters:

+ + + + + + + + + + + + + + + + + + + + + + + + + +
ParameterDescription
+ collection + + Numeric collection id +
+ real + + Subject heading from the 'Realfagstermer' vocabulary. +
+ q + + Query using the ElasticSearch URI search syntax. +
+ offset + + Offset the list of returned results by this amount. Default is zero. +
+ limit + + Number of items to retrieve. Default is 25, maximum is 100. +
+ +

+ Examples: +

+ + + +
diff --git a/tests/ExampleTest.php b/tests/ExampleTest.php index 7e81d37..08e3b29 100644 --- a/tests/ExampleTest.php +++ b/tests/ExampleTest.php @@ -14,6 +14,6 @@ class ExampleTest extends TestCase public function testBasicExample() { $this->visit('/') - ->see('Laravel 5'); + ->see('colligator'); } }