Access Tables and Views with PostgREST
For detailed instructions and examples, please refer to the official PostgREST documentation.
- HTTP
- curl
- Angular
- fetch
- Axios
GET /your-table-name HTTP/1.1
Host: your.api.url
Authorization: Bearer YOUR_TOKEN
See Angular starter for edge for a more production-ready examples.
import { HttpClient } from '@angular/common/http';
export class YourService {
constructor(private http: HttpClient) { }
getYourTable() {
return this.http.get('https://your.api.url/your-table-name', {
headers: {
Authorization: 'TOKEN'
}
});
}
}
curl -X GET "https://your.api.url/your-table-name" -H "Authorization: Bearer YOUR_TOKEN"