Преглед на файлове

chore(server): Bump alpha version

Michael Bromley преди 7 години
родител
ревизия
aaaab5b38c
променени са 2 файла, в които са добавени 3 реда и са изтрити 36 реда
  1. 2 35
      README.md
  2. 1 1
      server/package.json

+ 2 - 35
README.md

@@ -20,8 +20,8 @@ as inventory, order and customer management. The code for this is located in the
 ```
 vendure/
 ├── admin-ui/       # Source of the admin ui app (an Angular CLI project)
-├── codegen/        # Scripts used to generate TypeScript types from the GraphQL schemas & documents
-├── docs/           # Documentation source (not much there yet)
+├── codegen/        # Scripts used to generate TypeScript code and docs from source
+├── docs/           # Documentation source
 ├── server/         # Source for the Vendure server
 ├── shared/         # Types and utils shared by the server & admin ui
 
@@ -48,39 +48,6 @@ Vendure uses [TypeORM](http://typeorm.io), so it compatible will any database wh
 * `yarn start`
 * Go to http://localhost:4200 and log in with "superadmin", "superadmin"
 
-### Making a request
-
-When making an API request, it must include a `vendure-token` header with the value 
-being the channel token of the active channel. This value is set in the config by the
-`defaultChannelToken` property. If this is not set, or does not match a valid channel token,
-you will get the error `No valid channel was specified`
-
-For example:
-```TypeScript
-// bootstrap code
-bootstrap({
-    port: 3000,
-    apiPath: 'api',
-    defaultChannelToken: 'default-channel'
-    // ...
-})
-```
-
-```TypeScript
-// API call
-fetch(
-    'http://localhost:3000/api',
-    {
-        headers: {
-            'content-type': 'application/json',
-            'vendure-token': 'default-channel',
-        },
-        body: '{"query":"mutation { login(username: \\"superadmin\\", password: \\"superadmin\\") { user { id } } }"}',
-        method: 'POST',
-    },
-)
-```
-
 ### Code Generation
 
 [graphql-code-generator](https://github.com/dotansimha/graphql-code-generator) is used to automatically create TypeScript interfaces

+ 1 - 1
server/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vendure/core",
-  "version": "0.1.0-alpha.2",
+  "version": "0.1.0-alpha.3",
   "description": "A modern, headless ecommerce framework",
   "repository":  {
     "type" : "git",