Code Monkey home page Code Monkey logo

rest-example-go's Introduction

rest-example-go

JSON for Postman

{"first_name":"Josh","last_name":"Green","email":"[email protected]","password":"a"}

Dump database

DROP TABLE IF EXISTS "users";
DROP SEQUENCE IF EXISTS users_seq;
CREATE SEQUENCE users_seq INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1;

CREATE TABLE "public"."users" (
    "id" integer DEFAULT nextval('users_seq') NOT NULL,
    "first_name" character varying(255) NOT NULL,
    "last_name" character varying(255) NOT NULL,
    "email" character varying(255) NOT NULL,
    "password" character varying(255) NOT NULL,
    "sex" smallint DEFAULT '1' NOT NULL,
    CONSTRAINT "users_pkey" PRIMARY KEY ("id")
) WITH (oids = false);

INSERT INTO "users" ("id", "first_name", "last_name", "email", "password", "sex") VALUES
(2,	'My Name',	'My Name',	'[email protected]',	'My Name',	1),
(3,	'Duncan',	'Stewart',	'[email protected]',	'1',	1),
(4,	'Teagan',	'Harrison',	'[email protected]',	'2',	1),
(5,	'Duncan1',	'Stewart',	'[email protected]',	'',	1),
(10,	'Jon',	'Doe',	'[email protected]',	'a',	0),
(13,	'Duncan2',	'Stewart2',	'[email protected]',	'w',	1),
(15,	'Josh',	'Green',	'[email protected]',	'a',	0),
(1,	'Qwer',	'Qwertov',	'[email protected]',	'',	1);

Example config.json

{

"database": {

"connectionType": "postgres",

"connectionString": "user=postgres dbname=apirepository sslmode=disable"

},
  
"server": {

"port": 3000

}

}

rest-example-go's People

Contributors

devig avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.