1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 12:12:48 +01:00

Change from .dev to .test

This commit is contained in:
Hillel Coren 2017-12-31 11:08:46 +02:00
parent a77e594da0
commit 854d2ee955
7 changed files with 20 additions and 20 deletions

View File

@ -48,7 +48,7 @@ API_SECRET=password
#GOOGLE_CLIENT_ID= #GOOGLE_CLIENT_ID=
#GOOGLE_CLIENT_SECRET= #GOOGLE_CLIENT_SECRET=
#GOOGLE_OAUTH_REDIRECT=http://ninja.dev/auth/google #GOOGLE_OAUTH_REDIRECT=http://ninja.test/auth/google
GOOGLE_MAPS_ENABLED=true GOOGLE_MAPS_ENABLED=true
#GOOGLE_MAPS_API_KEY= #GOOGLE_MAPS_API_KEY=

View File

@ -1,6 +1,6 @@
APP_ENV=development APP_ENV=development
APP_DEBUG=false APP_DEBUG=false
APP_URL=http://ninja.dev APP_URL=http://ninja.test
APP_KEY=SomeRandomStringSomeRandomString APP_KEY=SomeRandomStringSomeRandomString
APP_CIPHER=AES-256-CBC APP_CIPHER=AES-256-CBC
APP_LOCALE=en APP_LOCALE=en

View File

@ -18,7 +18,7 @@ use Utils;
/** /**
* @SWG\Swagger( * @SWG\Swagger(
* schemes={"http","https"}, * schemes={"http","https"},
* host="ninja.dev", * host="ninja.test",
* basePath="/api/v1", * basePath="/api/v1",
* produces={"application/json"}, * produces={"application/json"},
* @SWG\Info( * @SWG\Info(

View File

@ -96,7 +96,7 @@ class Utils
public static function requireHTTPS() public static function requireHTTPS()
{ {
if (in_array(Request::root(), ['http://ninja.dev', 'http://ninja.dev:8000', 'http://www.ninja.test'])) { if (in_array(Request::root(), ['http://www.ninja.test', 'http://www.ninja.test:8000'])) {
return false; return false;
} }

View File

@ -10,7 +10,7 @@ To access the API you first need to create a token using the "API Tokens” page
- **PHP SDK**: https://github.com/invoiceninja/sdk-php - **PHP SDK**: https://github.com/invoiceninja/sdk-php
- **Zend Framework**: https://github.com/alexz707/InvoiceNinjaModule - **Zend Framework**: https://github.com/alexz707/InvoiceNinjaModule
.. NOTE:: Replace ninja.dev with https://app.invoiceninja.com to access a hosted account. .. NOTE:: Replace ninja.test with https://app.invoiceninja.com to access a hosted account.
Reading Data Reading Data
"""""""""""" """"""""""""
@ -19,39 +19,39 @@ Heres an example of reading the list of clients using cURL from the command l
.. code-block:: shell .. code-block:: shell
curl -X GET ninja.dev/api/v1/clients -H "X-Ninja-Token: TOKEN" curl -X GET ninja.test/api/v1/clients -H "X-Ninja-Token: TOKEN"
For invoices, quotes, tasks and payments simply change the object type. For invoices, quotes, tasks and payments simply change the object type.
.. code-block:: shell .. code-block:: shell
curl -X GET ninja.dev/api/v1/invoices -H "X-Ninja-Token: TOKEN" curl -X GET ninja.test/api/v1/invoices -H "X-Ninja-Token: TOKEN"
You can search clients by their email address or id number and invoices by their invoice number. You can search clients by their email address or id number and invoices by their invoice number.
.. code-block:: shell .. code-block:: shell
curl -X GET ninja.dev/api/v1/clients?email=<value> -H "X-Ninja-Token: TOKEN" curl -X GET ninja.test/api/v1/clients?email=<value> -H "X-Ninja-Token: TOKEN"
curl -X GET ninja.dev/api/v1/clients?id_number=<value> -H "X-Ninja-Token: TOKEN" curl -X GET ninja.test/api/v1/clients?id_number=<value> -H "X-Ninja-Token: TOKEN"
curl -X GET ninja.dev/api/v1/invoices?invoice_number=<value> -H "X-Ninja-Token: TOKEN" curl -X GET ninja.test/api/v1/invoices?invoice_number=<value> -H "X-Ninja-Token: TOKEN"
To load a single record specify the Id in the URL. To load a single record specify the Id in the URL.
.. code-block:: shell .. code-block:: shell
curl -X GET ninja.dev/api/v1/invoices/1 -H "X-Ninja-Token: TOKEN" curl -X GET ninja.test/api/v1/invoices/1 -H "X-Ninja-Token: TOKEN"
You can specify additional relationships to load using the ``include`` parameter. You can specify additional relationships to load using the ``include`` parameter.
.. code-block:: shell .. code-block:: shell
curl -X GET ninja.dev/api/v1/clients/1?include=invoices.invitations -H "X-Ninja-Token: TOKEN" curl -X GET ninja.test/api/v1/clients/1?include=invoices.invitations -H "X-Ninja-Token: TOKEN"
You can download a PDF using the following URL You can download a PDF using the following URL
.. code-block:: shell .. code-block:: shell
curl -X GET ninja.dev/api/v1/download/1 -H "X-Ninja-Token: TOKEN" curl -X GET ninja.test/api/v1/download/1 -H "X-Ninja-Token: TOKEN"
Optional Settings Optional Settings
""""""""""""""""" """""""""""""""""
@ -74,14 +74,14 @@ Heres an example of creating a client. Note that email address is a property
.. code-block:: shell .. code-block:: shell
curl -X POST ninja.dev/api/v1/clients -H "Content-Type:application/json" \ curl -X POST ninja.test/api/v1/clients -H "Content-Type:application/json" \
-d '{"name":"Client","contact":{"email":"test@example.com"}}' -H "X-Ninja-Token: TOKEN" -d '{"name":"Client","contact":{"email":"test@example.com"}}' -H "X-Ninja-Token: TOKEN"
You can also update a client by specifying a value for id. Next, heres an example of creating an invoice. You can also update a client by specifying a value for id. Next, heres an example of creating an invoice.
.. code-block:: shell .. code-block:: shell
curl -X POST ninja.dev/api/v1/invoices -H "Content-Type:application/json" \ curl -X POST ninja.test/api/v1/invoices -H "Content-Type:application/json" \
-d '{"client_id":"1", "invoice_items":[{"product_key": "ITEM", "notes":"Test", "cost":10, "qty":1}]}' \ -d '{"client_id":"1", "invoice_items":[{"product_key": "ITEM", "notes":"Test", "cost":10, "qty":1}]}' \
-H "X-Ninja-Token: TOKEN" -H "X-Ninja-Token: TOKEN"
@ -104,7 +104,7 @@ Updating Data
.. code-block:: shell .. code-block:: shell
curl -X PUT ninja.dev/api/v1/clients/1 -H "Content-Type:application/json" \ curl -X PUT ninja.test/api/v1/clients/1 -H "Content-Type:application/json" \
-d '{"name":"test", "contacts":[{"id": 1, "first_name": "test"}]}' \ -d '{"name":"test", "contacts":[{"id": 1, "first_name": "test"}]}' \
-H "X-Ninja-Token: TOKEN" -H "X-Ninja-Token: TOKEN"
@ -112,7 +112,7 @@ You can archive, delete or restore an entity by setting ``action`` in the reques
.. code-block:: shell .. code-block:: shell
curl -X PUT ninja.dev/api/v1/invoices/1?action=archive \ curl -X PUT ninja.test/api/v1/invoices/1?action=archive \
-H "X-Ninja-Token: TOKEN" -H "X-Ninja-Token: TOKEN"
.. TIP:: For invoices use `mark_sent` to manually mark the invoice as sent .. TIP:: For invoices use `mark_sent` to manually mark the invoice as sent
@ -124,5 +124,5 @@ To email an invoice use the email_invoice command passing the id of the invoice.
.. code-block:: shell .. code-block:: shell
curl -X POST ninja.dev/api/v1/email_invoice -d '{"id":1}' \ curl -X POST ninja.test/api/v1/email_invoice -d '{"id":1}' \
-H "Content-Type:application/json" -H "X-Ninja-Token: TOKEN" -H "Content-Type:application/json" -H "X-Ninja-Token: TOKEN"

View File

@ -44,7 +44,7 @@ Create an application in either Google, Facebook, GitHub or LinkedIn and then se
GOOGLE_CLIENT_ID= GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET= GOOGLE_CLIENT_SECRET=
GOOGLE_OAUTH_REDIRECT=http://ninja.dev/auth/google GOOGLE_OAUTH_REDIRECT=http://ninja.test/auth/google
PhantomJS PhantomJS
""""""""" """""""""

View File

@ -9,7 +9,7 @@ modules:
enabled: enabled:
- \Helper\Functional - \Helper\Functional
- PhpBrowser: - PhpBrowser:
url: 'http://ninja.dev:8000' url: 'http://ninja.test:8000'
curl: curl:
CURLOPT_RETURNTRANSFER: true CURLOPT_RETURNTRANSFER: true
- Laravel5: - Laravel5: