GitHub user nir-sopher opened a pull request:

    https://github.com/apache/incubator-trafficcontrol/pull/324

    Traffic ops experimental go api

    This module it provides a server creating a RESTful API towards Traffic-Ops 
DB.
    It was created in order to POC the concept of API Gateway (added on another 
PR) between the different modules of Traffic-Ops, specifically old perl 
Traffic-Ops, and new (go?) one.
    
    At first step, only "tenant" table is covered (CRUD).
    Other tables can be added, by adding modules (see tenant foe example), and 
seeding their enpoints below.
    To Run this module, call:  go run api.go --server <ip-and-port> 
--db-config-file <db-cof-file-name>
    e.g. go run api.go --server :8888 --db-config-file 
../../app/conf/test/database.conf
    Note that the below go modules are required, so you'll might need to "go 
get" them:)
    "github.com/gorilla/mux"  
    "github.com/lib/pq"


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nir-sopher/incubator-trafficcontrol 
traffic-ops-experimental-go-api

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafficcontrol/pull/324.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #324
    
----
commit 582dbd1a9f079bd741198c2437aaa1d3ca00b96d
Author: nir-sopher <[email protected]>
Date:   2017-02-18T12:38:04Z

    Adding the tenancy to cdn, deliveryservice and tmuser

commit 7471ce81ac3258c4712ed7874a73df3d7058a930
Author: nir-sopher <[email protected]>
Date:   2017-02-18T13:29:02Z

    Add a parent tenant capability, as well as the built-in root and guest 
tenants

commit 93ed90f9f6bba1e4f3f2c45ce2f2b648bd7507ec
Author: nir-sopher <[email protected]>
Date:   2017-02-19T03:19:59Z

    Tenants API

commit cd9d032b7c97c2b92c31e4b8c39a0c7c646150e6
Author: nir-sopher <[email protected]>
Date:   2017-02-19T05:12:36Z

    identify root tenant by no parent

commit 8d8516a6c568affb1ac9ed16b0a16fe51fd7d7b2
Author: nir-sopher <[email protected]>
Date:   2017-02-19T05:20:07Z

    Verify parent tenant is not the same as id

commit 7e14783c733b7a09f27953e27aeab59071e2794c
Author: nir-sopher <[email protected]>
Date:   2017-02-19T09:43:15Z

    defulat tenant is null

commit 16a600ddf7c7282e44ee83170b5f3111c656a8b8
Author: nir-sopher <[email protected]>
Date:   2017-02-19T11:27:00Z

    api/1.2/tenant.t ut

commit 8ee97c090f99e63e2c3c36155d20dc8bf2d36fb7
Author: nir-sopher <[email protected]>
Date:   2017-02-27T15:13:36Z

    Merge branch 'master' of https://github.com/apache/incubator-trafficcontrol

commit 15c5fceb864e4f252277bee4381d86a8915cb228
Author: nir-sopher <[email protected]>
Date:   2017-02-27T22:23:27Z

    Organizing initial tenancy setting for first install/upgrade

commit 2100b31b5989cb141debf5465526c26df9a7798d
Author: nir-sopher <[email protected]>
Date:   2017-02-28T00:57:59Z

    Add tenant is-active flag

commit 7b5a241762baa528eab2484b4e9adf674c31e71f
Author: nir-sopher <[email protected]>
Date:   2017-02-28T01:18:24Z

    Removing tenant non standard APIs

commit a7511aab0119eca4407920850fc2b28203057830
Author: nir-sopher <[email protected]>
Date:   2017-02-28T08:00:56Z

    User create API

commit d5bdfbd9b6223be77830777c5b7cbfd696c70403
Author: nir-sopher <[email protected]>
Date:   2017-02-28T08:00:56Z

    User create API - forgoten UT

commit ea0e54219523a8ad0d6315059c1c7f1aac17771e
Author: nir-sopher <[email protected]>
Date:   2017-02-28T11:53:57Z

    Tenancy testing infra

commit 89def1a77ebe977676931f1a6f30d50a25686a7e
Author: nir-sopher <[email protected]>
Date:   2017-02-28T11:56:02Z

    Tenancy code tools
    And first usage: CDN API support of tenancy: optional on create (use 
current user tenancy)

commit 797b06c723ff86cc983a3e2e296f41c9bd1089d9
Author: nir-sopher <[email protected]>
Date:   2017-02-28T12:26:22Z

    CDN UI: viewable for all but edit only for proper tenants
    Additionaly, a created cdn is with the creator tenancy

commit d84d42073df5f0d320ae2fddfca4837fa7a2fdee
Author: nir-sopher <[email protected]>
Date:   2017-02-28T14:16:22Z

    CDN API UT improvement

commit 7889fac46adb5c8d42979a00151b38dac284ef91
Author: nir-sopher <[email protected]>
Date:   2017-02-28T15:25:35Z

    User API support tenantId as optional variable

commit aad07f58529820f5602e60fb1f7430709e6e4759
Author: nir-sopher <[email protected]>
Date:   2017-03-01T01:23:41Z

    Adding an experimental go based rest API for Traffic Ops

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to