query Parameters

We define in endpoint.js

export const BASE_URL = 'http://localhost:8000';
export const STATEID = `${BASE_URL}/api/stateid/`;


After we use Without Endpoint:

url='http://127.0.0.1:8000/api/stateid/?stateid='${this.id}'';

With Endpoint:





import { STATEID } from '../endpoints';

url= `${STATEID}?stateid='${this.id}'`


Comments

Popular posts from this blog

ERR: error parsing query: found influx, expected SELECT, DELETE, SHOW, CREATE, DROP, EXPLAIN, GRANT, REVOKE, ALTER, SET, KILL at line

How to get Full URL or get absolute url In Django

How To Convert Html File/URL/String Into Image Using Python