Make go-gettable

master
Andrew Sellers 4 years ago
parent 0fefcf3124
commit c80d82ca1c
  1. 2
      README.md
  2. 2
      api/api.go
  3. 4
      api/products.go
  4. 2
      api/products_create_test.go
  5. 4
      api/products_delete_test.go
  6. 4
      api/products_many_test.go
  7. 4
      api/products_update_test.go
  8. 2
      api/products_view_test.go
  9. 2
      db/db.go
  10. 2
      db/db_test.go
  11. 6
      main.go
  12. 2
      permissions/client.go

@ -7,8 +7,6 @@ that are set to visible. Logged in users can create, edit, and delete
products that correspond to their allowed vendors. Logging in uses tokens
from an identity service (not in scope).
[Demo Server](http://ec2-18-222-7-9.us-east-2.compute.amazonaws.com/api/v1/products)
API Documentation is in the openapi.yaml file.
## Features

@ -4,9 +4,9 @@ import (
"context"
"log"
"andrewcsellers.com/shiptdemo/config"
"github.com/labstack/echo"
"github.com/labstack/echo/middleware"
"www.andrewcsellers.com/andrew/shiptdemo/config"
)
var server *echo.Echo

@ -6,10 +6,10 @@ import (
"strconv"
"strings"
"andrewcsellers.com/shiptdemo/db"
"andrewcsellers.com/shiptdemo/permissions"
"github.com/labstack/echo"
"github.com/pborman/uuid"
"www.andrewcsellers.com/andrew/shiptdemo/db"
"www.andrewcsellers.com/andrew/shiptdemo/permissions"
)
type productFilter struct {

@ -7,9 +7,9 @@ import (
"strings"
"testing"
"andrewcsellers.com/shiptdemo/db"
"github.com/labstack/echo"
"github.com/stretchr/testify/assert"
"www.andrewcsellers.com/andrew/shiptdemo/db"
)
func TestCreateProduct(t *testing.T) {

@ -6,12 +6,12 @@ import (
"net/http/httptest"
"testing"
"andrewcsellers.com/shiptdemo/config"
"andrewcsellers.com/shiptdemo/db"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/labstack/echo"
"github.com/stretchr/testify/assert"
"www.andrewcsellers.com/andrew/shiptdemo/config"
"www.andrewcsellers.com/andrew/shiptdemo/db"
)
func init() {

@ -11,12 +11,12 @@ import (
"strings"
"testing"
"andrewcsellers.com/shiptdemo/config"
"andrewcsellers.com/shiptdemo/db"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/labstack/echo"
"github.com/stretchr/testify/assert"
"www.andrewcsellers.com/andrew/shiptdemo/config"
"www.andrewcsellers.com/andrew/shiptdemo/db"
)
func TestManyProducts(t *testing.T) {

@ -7,12 +7,12 @@ import (
"strings"
"testing"
"andrewcsellers.com/shiptdemo/config"
"andrewcsellers.com/shiptdemo/db"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/labstack/echo"
"github.com/stretchr/testify/assert"
"www.andrewcsellers.com/andrew/shiptdemo/config"
"www.andrewcsellers.com/andrew/shiptdemo/db"
)
func init() {

@ -8,9 +8,9 @@ import (
"net/http/httptest"
"testing"
"andrewcsellers.com/shiptdemo/db"
"github.com/labstack/echo"
"github.com/stretchr/testify/assert"
"www.andrewcsellers.com/andrew/shiptdemo/db"
)
func TestFailView(t *testing.T) {

@ -5,11 +5,11 @@ import (
"fmt"
"strconv"
"andrewcsellers.com/shiptdemo/config"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
"github.com/pborman/uuid"
"www.andrewcsellers.com/andrew/shiptdemo/config"
)
var (

@ -4,11 +4,11 @@ import (
"log"
"testing"
"andrewcsellers.com/shiptdemo/config"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/pborman/uuid"
"github.com/stretchr/testify/assert"
"www.andrewcsellers.com/andrew/shiptdemo/config"
)
func init() {

@ -8,10 +8,10 @@ import (
"os/signal"
"time"
"andrewcsellers.com/shiptdemo/api"
"andrewcsellers.com/shiptdemo/config"
"andrewcsellers.com/shiptdemo/db"
"github.com/aws/aws-sdk-go/aws"
"www.andrewcsellers.com/andrew/shiptdemo/api"
"www.andrewcsellers.com/andrew/shiptdemo/config"
"www.andrewcsellers.com/andrew/shiptdemo/db"
)
var (

@ -5,8 +5,8 @@ import (
"net/http"
"strings"
"andrewcsellers.com/shiptdemo/config"
"github.com/pborman/uuid"
"www.andrewcsellers.com/andrew/shiptdemo/config"
)
type UserData struct {

Loading…
Cancel
Save