Skip to content

Instantly share code, notes, and snippets.

View myResto
[
{
"id": "1",
"name": "KFC",
"address": "address 1",
"review": "84%",
"delivery_time": "20-30 min",
"image": "https://www.financialafrik.com/wp-content/uploads/2018/02/this-is-what-kfc-is-famous.jpg",
"location": {
"lat": "48.873187",
View procedureJSON
[ {
"id": "1",
"title_procedure": "Intrusion terrestre",
"details_procedure": "Individu isole",
"sector": "secteur 1",
"cases":
[
{"id": "1",
"treated": true,
"title" : "Cas 1",
View jsonUsers
[
{
"id": 1,
"email_address": "user@user.com",
"token": "jhbfjksdfnkezjfcguyg",
"photo": "https://media.licdn.com/mpr/mpr/shrinknp_200_200/AAEAAQAAAAAAAArFAAAAJDE2ZjgzMTE5LWExYzktNGUxNi1iMzMwLTMwY2I3NjQ5ODY2OA.jpg",
"role": "Responsable de sûreté",
"mobile_phone_number": "+212 6-11082010",
View jsonEats
[{
"id": "1",
"name": "KFC",
"address": "address 1",
"review": "84%",
"delivery_time": "20-30 min",
"image": "https://www.financialafrik.com/wp-content/uploads/2018/02/this-is-what-kfc-is-famous.jpg",
"location": {
"lat": "48.873187",
"lng": "2.381376"
View youtube_data
[
{"id" : 1,
"title": "1D2C ملحمة العدميين Partie 3/3",
"url" : "HrIGzFm9cHg"
},
{"id" : 2,
"title": "1D2C ملحمة العدميين Partie 2/3",
"url" : "M0mcpLV_ybk"
},
{"id" : 3,
View JSONArrivee
{
"id": 1,
"departs":
[
{"html":"Abu Dhabi (AUH)"},
{"html":"Abuja (ABV)"},
{ "html":"Accra (ACC)"},
{ "html":"Adana (ADA)"},
{ "html":"Adana (ADA)"},
{ "html":"Adana (ADA)"},
View JSONDepart
[
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Abidjan (ABJ)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Accra (ACC)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Adana (ADA)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Addis Abeba (ADD)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Agadir (AGA)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Al Hoceima (AHU)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Alger (ALG)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Amman (AMM)"},
{"tag":"div","class":"tt-suggestion tt-selectable","role":"option","html":"Amsterdam (AMS)"},
View app
{
"id": 1,
"girls": [
{
"id": 1,
"name": "maryam",
"ville": "mohammedia",
"tel": "0680223815",
"photo": ""
},
@NizarETH
NizarETH / RealmAutoIncrement.java
Created Aug 15, 2016 — forked from carloseduardosx/RealmAutoIncrement.java
RealmAutoIncrement is a singleton which maintain the last id saved from each database model
View RealmAutoIncrement.java
package com.carlosedurdo.database;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
import io.realm.Realm;
import io.realm.RealmObject;
/**
@NizarETH
NizarETH / README.md
Created May 12, 2016 — forked from tjamps/README.md
Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle
View README.md

Basic RESTful API with Symfony 2 + FOSRestBundle (JSON format only) + FOSUserBundle + FOSOauthServerBundle

The API we are creating in this gist will follow these rules :

  • The API only returns JSON responses
  • All API routes require authentication
  • Authentication is handled via OAuth2 with password Grant Type only (no need for Authorization pages and such).
  • API versioning is managed via a subdomain (e.g. v1.api.example.com)

The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :