Skip to content

Instantly share code, notes, and snippets.

View alkawero's full-sized avatar
💭
react -> frontend | spring->backend | kotlin->android | laravel->small backend

alkawero

💭
react -> frontend | spring->backend | kotlin->android | laravel->small backend
View GitHub Profile
@erayakartuna
erayakartuna / delete_method.php
Created October 15, 2016 14:44
Codeigniter Rest Server Delete Method Example
<?php
public function users_delete()
{
$id = (int) $this->get('id');
$group = (int) $this->delete('group');
$group_2 = (int) $this->delete('group_2');
echo "id : ".$id.'<BR/>';
echo "group : ".$group.'<BR/>';
echo "group 2 : ".$group_2.'<BR/>';
@fernandomantoan
fernandomantoan / schema.sql
Created September 23, 2014 18:05
Schema for PostgreSQL to use with JdbcTokenStore (Spring Security OAuth2)
create table oauth_client_details (
client_id VARCHAR(256) PRIMARY KEY,
resource_ids VARCHAR(256),
client_secret VARCHAR(256),
scope VARCHAR(256),
authorized_grant_types VARCHAR(256),
web_server_redirect_uri VARCHAR(256),
authorities VARCHAR(256),
access_token_validity INTEGER,
refresh_token_validity INTEGER,