2015-06-05 11:06:36 +02:00
|
|
|
'use strict';
|
|
|
|
|
2015-05-29 01:54:56 +02:00
|
|
|
import AppConstants from './application_constants';
|
|
|
|
|
|
|
|
let apiUrls = {
|
2015-06-22 17:33:25 +02:00
|
|
|
'applications': AppConstants.apiEndpoint + 'applications/',
|
|
|
|
'application_token_refresh': AppConstants.apiEndpoint + 'applications/refresh_token/',
|
2015-06-23 13:55:05 +02:00
|
|
|
'blob_digitalworks': AppConstants.apiEndpoint + 'blob/digitalworks/',
|
2015-06-29 16:15:41 +02:00
|
|
|
'blob_otherdatas': AppConstants.apiEndpoint + 'blob/otherdatas/',
|
2015-06-25 14:39:39 +02:00
|
|
|
'coa': AppConstants.apiEndpoint + 'coa/${id}/',
|
|
|
|
'coa_create': AppConstants.apiEndpoint + 'coa/',
|
|
|
|
'coa_verify': AppConstants.apiEndpoint + 'coa/verify_coa/',
|
2015-06-09 17:53:44 +02:00
|
|
|
'edition': AppConstants.apiEndpoint + 'editions/${bitcoin_id}/',
|
2015-06-16 09:02:48 +02:00
|
|
|
'edition_delete': AppConstants.apiEndpoint + 'editions/${edition_id}/',
|
|
|
|
'edition_remove_from_collection': AppConstants.apiEndpoint + 'ownership/shares/${edition_id}/',
|
2015-06-16 10:58:41 +02:00
|
|
|
'editions_list': AppConstants.apiEndpoint + 'pieces/${piece_id}/editions/',
|
2015-06-30 10:42:58 +02:00
|
|
|
'licenses': AppConstants.apiEndpoint + 'ownership/licenses/',
|
2015-06-16 10:58:41 +02:00
|
|
|
'note_notes': AppConstants.apiEndpoint + 'note/notes/',
|
2015-06-16 14:49:00 +02:00
|
|
|
'note_edition': AppConstants.apiEndpoint + 'note/edition_notes/',
|
2015-06-09 17:53:44 +02:00
|
|
|
'ownership_consigns': AppConstants.apiEndpoint + 'ownership/consigns/',
|
2015-06-16 09:02:48 +02:00
|
|
|
'ownership_consigns_confirm': AppConstants.apiEndpoint + 'ownership/consigns/confirm/',
|
|
|
|
'ownership_consigns_deny': AppConstants.apiEndpoint + 'ownership/consigns/deny/',
|
|
|
|
'ownership_loans': AppConstants.apiEndpoint + 'ownership/loans/',
|
|
|
|
'ownership_loans_confirm': AppConstants.apiEndpoint + 'ownership/loans/confirm/',
|
|
|
|
'ownership_loans_deny': AppConstants.apiEndpoint + 'ownership/loans/deny/',
|
2015-07-02 11:54:33 +02:00
|
|
|
'ownership_loans_contract': AppConstants.apiEndpoint + 'ownership/loans/contract/',
|
2015-06-23 17:01:15 +02:00
|
|
|
'ownership_shares': AppConstants.apiEndpoint + 'ownership/shares/',
|
2015-06-16 10:58:41 +02:00
|
|
|
'ownership_transfers': AppConstants.apiEndpoint + 'ownership/transfers/',
|
2015-06-26 11:44:35 +02:00
|
|
|
'ownership_transfers_withdraw': AppConstants.apiEndpoint + 'ownership/transfers/withdraw/',
|
2015-06-16 10:58:41 +02:00
|
|
|
'ownership_unconsigns': AppConstants.apiEndpoint + 'ownership/unconsigns/',
|
|
|
|
'ownership_unconsigns_deny': AppConstants.apiEndpoint + 'ownership/unconsigns/deny/',
|
|
|
|
'ownership_unconsigns_request': AppConstants.apiEndpoint + 'ownership/unconsigns/request/',
|
2015-07-08 22:54:07 +02:00
|
|
|
'piece': AppConstants.apiEndpoint + 'pieces/${piece_id}/',
|
2015-06-16 10:58:41 +02:00
|
|
|
'piece_extradata': AppConstants.apiEndpoint + 'pieces/${piece_id}/extradata/',
|
2015-07-01 15:28:48 +02:00
|
|
|
'piece_first_edition_id': AppConstants.apiEndpoint + 'pieces/${piece_id}/edition_index/',
|
2015-06-16 10:58:41 +02:00
|
|
|
'pieces_list': AppConstants.apiEndpoint + 'pieces/',
|
2015-07-01 19:05:47 +02:00
|
|
|
'pieces_list_request_actions': AppConstants.apiEndpoint + 'pieces/request_actions/',
|
2015-06-11 15:57:19 +02:00
|
|
|
'user': AppConstants.apiEndpoint + 'users/',
|
2015-06-11 17:22:11 +02:00
|
|
|
'users_login': AppConstants.apiEndpoint + 'users/login/',
|
2015-06-15 12:36:27 +02:00
|
|
|
'users_logout': AppConstants.apiEndpoint + 'users/logout/',
|
2015-06-16 10:58:41 +02:00
|
|
|
'users_password_reset': AppConstants.apiEndpoint + 'users/reset_password/',
|
2015-06-11 17:22:11 +02:00
|
|
|
'users_password_reset_request': AppConstants.apiEndpoint + 'users/request_reset_password/',
|
2015-06-17 17:48:23 +02:00
|
|
|
'users_signup': AppConstants.apiEndpoint + 'users/',
|
2015-06-18 19:03:03 +02:00
|
|
|
'users_username': AppConstants.apiEndpoint + 'users/username/',
|
2015-06-29 15:58:47 +02:00
|
|
|
'wallet_settings': AppConstants.apiEndpoint + 'users/wallet_settings/',
|
2015-06-30 15:41:39 +02:00
|
|
|
'whitelabel_settings': AppConstants.apiEndpoint + 'whitelabel/settings/${subdomain}/',
|
|
|
|
'delete_s3_file': AppConstants.serverUrl + 's3/delete/'
|
2015-05-29 01:54:56 +02:00
|
|
|
};
|
|
|
|
|
2015-06-01 14:22:04 +02:00
|
|
|
export default apiUrls;
|