Skip to content

Instantly share code, notes, and snippets.

@samacs
Created September 20, 2013 19:19
Show Gist options
  • Save samacs/6642462 to your computer and use it in GitHub Desktop.
Save samacs/6642462 to your computer and use it in GitHub Desktop.

Having the following structure:

/app
|____/config/
     |____endpoints.json
     |____/endpoints/
          |
          |____/module1/
          |    |____contacts.json
          |    |____agendas.json
          |
          |____/module2/
          |    |____users.json
          |    |____permissions.json
          |
          |____module1.json
          |____module2.json

I want to know if this is possible:

# endpoints.json
{
    "includes": [
        "endpoints/module1.json",
        "endpoints/module2.json"
    ]
}

# endpoints/module1.json
{
    "includes": [
        "module1/contacts.json",
        "module1/agendas.json"
    ]
}

# endpoints/module2.json
{
    "includes": [
        "module2/users.json",
        "module2/permissions.json"
    ]
}

# endpoints/module1/contacts.json
{
    "services": {
        "contacts": {
            # ... service description here
        }
    }
}

I woulud like to organize multiple service definitions following the described folder structure. Is it possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment