Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. create or replace function get_param_value(p_param_name in varchar2) return varchar2 as
  2. -- v_rest_host varchar2(200) := 'http://crldev.tecna.pl:8078';
  3. v_rest_host varchar2(200) := 'http://192.168.1.103:8078';
  4. -- v_rest_host varchar2(200) := 'http://192.168.1.20:8078';
  5. -- v_rest_host varchar2(200) := 'http://windev.tecna.pl:8078';
  6. begin
  7. case lower(p_param_name)
  8. when 'url_rest' then return v_rest_host || '/rest/api';
  9. when 'url_dic_rest' then return v_rest_host || '/rest/api/Dictionaries';
  10. when 'url_contr_rest' then return v_rest_host || '/rest/api/Contractors';
  11. when 'url_inv_rest' then return v_rest_host || '/rest/api/Invoices';
  12. when 'nip24_key_id' then return 'test_id';
  13. when 'nip24_key' then return 'test_key';
  14. when 'nip24_api_url' then return 'https://www.nip24.pl/api-test';
  15. else return null;
  16. end case;
  17. end get_param_value;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement