2021-05-20 14:37:53 +02:00
|
|
|
export const backendApiUrlsInDev = {
|
2021-06-08 14:30:05 +02:00
|
|
|
// local: 'http://tktest.lan/api/v1',
|
|
|
|
// remote: 'http://tktest.lan/api/v1',
|
2021-11-22 11:51:21 +01:00
|
|
|
// local: 'http://localhost:8000/api/v1',
|
|
|
|
local: 'http://www.tk.lan/index.php/api/v1',
|
2021-11-16 11:03:20 +01:00
|
|
|
// local: 'https://framadate-api.cipherbliss.com/api/v1',
|
2021-11-22 11:51:21 +01:00
|
|
|
// remote: 'http://localhost:8000/api/v1',
|
|
|
|
remote: 'http://www.tk.lan/index.php/api/v1',
|
2021-11-16 11:03:20 +01:00
|
|
|
// remote: 'https://framadate-api.cipherbliss.com/api/v1',
|
2021-05-20 14:11:30 +02:00
|
|
|
};
|
2021-05-20 14:37:53 +02:00
|
|
|
export const apiV1 = {
|
2021-11-22 11:51:21 +01:00
|
|
|
// baseHref: 'http://localhost:8000/api/v1', // local "symfony serve" live server
|
|
|
|
baseHref: 'http://www.tk.lan/index.php/api/v1', // local apache2 server
|
2021-06-08 14:30:05 +02:00
|
|
|
// baseHref: 'http://tktest.lan/api/v1',
|
2021-11-22 11:51:21 +01:00
|
|
|
// baseHref: 'https://framadate-api.cipherbliss.com/api/v1', // demo preprod
|
2021-05-20 14:11:30 +02:00
|
|
|
api_new_poll: '/poll/',
|
|
|
|
api_get_poll: '/poll/{id}',
|
2021-06-07 12:16:56 +02:00
|
|
|
api_new_vote_stack: '/vote-stack',
|
2021-05-20 14:11:30 +02:00
|
|
|
'api_test-mail-poll': '/api/v1/poll/mail/test-mail-poll/{emailChoice}',
|
|
|
|
'app.swagger': '/api/doc.json',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const endpoints = {
|
|
|
|
versionToUse: 'apiV1',
|
|
|
|
version: {
|
|
|
|
apiV1,
|
|
|
|
},
|
|
|
|
baseHref: backendApiUrlsInDev.local,
|
|
|
|
endpoints: {
|
|
|
|
polls: {
|
|
|
|
name: '/poll',
|
|
|
|
choices: {
|
|
|
|
name: '/choices',
|
|
|
|
},
|
|
|
|
comments: {
|
2022-02-08 13:05:47 +01:00
|
|
|
name: '/comment',
|
2021-05-20 14:11:30 +02:00
|
|
|
},
|
|
|
|
slugs: {
|
|
|
|
name: '/slugs',
|
|
|
|
},
|
|
|
|
answers: {
|
|
|
|
name: '/answers',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
users: {
|
2021-05-21 12:31:42 +02:00
|
|
|
find_my_polls: '/api/v1/poll/owner/:email/',
|
2021-05-20 14:11:30 +02:00
|
|
|
name: '/users',
|
|
|
|
polls: {
|
|
|
|
name: '/polls',
|
|
|
|
sendEmail: {
|
|
|
|
name: '/send-email',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|