[CORL 133] API Review (#2197)

* refactor: removed unused subscription code

* refactor: removed management api's

* refactor: cleanup of connections

* refactor: refactored comments edge

* refactor: simplified connection resolving

* feat: added story connection edge

* fix: added story index

* feat: added user pagination and user edge

* fix: added filter to comment query

* fix: removed unused resolvers

* fix: creating a comment reply should require auth

* refactor: cleanup of graph files

* feat: removed display name, made username non-unique

* fix: fixed tests

* fix: fixed tests

* fix: added more api docs

* fix: fixed bug with installer

* refactor: fixes and updates

* fix: added linting for graphql, fixed schema

* feat: added docker build tests

* fix: upped output timeout

* fix: fixed stacktraces in production builds

* fix: removed `git add`

- `git add` was causing issues with
    partial staged changs on files

* feat: improved error messaging for auth

* refactor: cleaned up queue names

* fix: merge error
This commit is contained in:
Wyatt Johnson
2019-03-12 14:12:21 +00:00
committed by Kiwi
parent 37959f9398
commit d37333be89
125 changed files with 1272 additions and 1539 deletions
@@ -11,7 +11,7 @@ import customErrorMiddleware from "./customErrorMiddleware";
export type TokenGetter = () => string;
const graphqlURL = "/api/tenant/graphql";
const graphqlURL = "/api/graphql";
export default function createNetwork(tokenGetter: TokenGetter) {
return new RelayNetworkLayer([
+1 -1
View File
@@ -15,7 +15,7 @@ export interface InstallInput {
}
export default function install(rest: RestClient, input: InstallInput) {
return rest.fetch("/tenant/install", {
return rest.fetch("/install", {
method: "POST",
body: input,
});
+1 -1
View File
@@ -10,7 +10,7 @@ export interface SignInResponse {
}
export default function signIn(rest: RestClient, input: SignInInput) {
return rest.fetch<SignInResponse>("/tenant/auth/local", {
return rest.fetch<SignInResponse>("/auth/local", {
method: "POST",
body: input,
});
+1 -1
View File
@@ -1,7 +1,7 @@
import { RestClient } from "../lib/rest";
export default function signOut(rest: RestClient) {
return rest.fetch("/tenant/auth", {
return rest.fetch("/auth", {
method: "DELETE",
});
}
+1 -1
View File
@@ -11,7 +11,7 @@ export interface SignUpResponse {
}
export default function signUp(rest: RestClient, input: SignUpInput) {
return rest.fetch<SignUpResponse>("/tenant/auth/local/signup", {
return rest.fetch<SignUpResponse>("/auth/local/signup", {
method: "POST",
body: input,
});