Giter VIP home page Giter VIP logo

app-api's People

Contributors

arogachev avatar dependabot[bot] avatar devanych avatar dood- avatar evil1 avatar fantom409 avatar iamsaint avatar klunker avatar luizcmarin avatar mister-42 avatar nex-otaku avatar nkondrashov avatar random-rage avatar romkatsu avatar roxblnfk avatar rustamwin avatar s1lver avatar samdark avatar sankaest avatar stylecibot avatar terabytesoftw avatar viktorprogger avatar vjik avatar xepozz avatar yiiliveext avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

app-api's Issues

Remove blog from app-api

What steps will reproduce the problem?

Clone and install app-api

What is the expected result?

Clean installation without anything else.
(Not sure about user / auth; ok in my opinion)

What do you get instead?

A blog in it, which doesn't make sense in my opinion as it is already in the demo-api.

yii utility in cli is evaluating to wrong environment.

What steps will reproduce the problem?

Try to execute any cli command with yii utility. Do not pass env variable.

What is the expected result?

As per following line of code in yii file, It should use production environment.

define('YII_ENV', getenv('env') ?? 'production');

What do you get instead?

It is using testing environment. Actually getenv('env') is evaluating to false which is not allowing to return 'production' string in YII_ENV.

Additional info

Q A
Version yii3
PHP version 7.4
Operating system ubuntu

Fix cycle configuration

Need to correct generators and schema-provider list.
SyncTables can be commented

'schema-providers' => [
// Uncomment next line to enable a Schema caching in the common cache
// \Yiisoft\Yii\Cycle\Schema\Provider\SimpleCacheSchemaProvider::class => ['key' => 'cycle-orm-cache-key'],
// Store generated Schema in the file
PhpFileSchemaProvider::class => [
'mode' => PhpFileSchemaProvider::MODE_WRITE_ONLY,
'file' => '@runtime/schema.php',
],
FromConveyorSchemaProvider::class => [
'generators' => [
Cycle\Schema\Generator\SyncTables::class, // sync table changes to database
],
],
],

Error during installation under php 8.1.9

What steps will reproduce the problem?

composer create-project yiisoft/app-api --stability=dev myproject

What is the expected result?

Successful installation

What do you get instead?

`
Creating a "yiisoft/app-api" project at "./myproject"
Info from https://repo.packagist.org: #StandWithUkraine
Installing yiisoft/app-api (1.0.x-dev c93aab6)

  • Downloading yiisoft/app-api (dev-master c93aab6)
  • Installing yiisoft/app-api (dev-master c93aab6): Extracting archive
    Created project in C:\src\myproject
    Loading composer repositories with package information
    Updating dependencies
    Your requirements could not be resolved to an installable set of packages.

Problem 1
- league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.1.9) does not satisfy that requirement.
- league/flysystem[2.0.0-alpha.1, ..., 2.0.0-RC1] require php ^7.2 -> your php version (8.1.9) does not satisfy that requirement.`

Additional info

Q A
Version 1.0.?
PHP version 8.1.9
Operating system Win10 64bit

documentation?

HI!
I´m checking this new app for generate an api. Where is the documentation? The /docs don't exist.

Psalm execution reporting errors in some config files.

What steps will reproduce the problem?

After installation, when you execute psalm, you will find these errors.

What is the expected result?

It should be success after psalm execution.

What do you get instead?

ERROR: UndefinedGlobalVariable - config/packages/yiisoft/csrf/web.php:34:28 - Cannot find referenced variable $params in global scope (see https://psalm.dev/127)
            'secretKey' => $params['yiisoft/csrf']['hmacToken']['secretKey'],


ERROR: UndefinedGlobalVariable - config/packages/yiisoft/csrf/web.php:35:28 - Cannot find referenced variable $params in global scope (see https://psalm.dev/127)
            'algorithm' => $params['yiisoft/csrf']['hmacToken']['algorithm'],


ERROR: UndefinedGlobalVariable - config/packages/yiisoft/csrf/web.php:36:27 - Cannot find referenced variable $params in global scope (see https://psalm.dev/127)
            'lifetime' => $params['yiisoft/csrf']['hmacToken']['lifetime'],


ERROR: InvalidScope - config/packages/yiisoft/profiler/common.php:35:13 - Invalid reference to $this in a non-class context (see https://psalm.dev/013)
            $this->enable((bool)$params['enabled']);


ERROR: InvalidScope - config/packages/yiisoft/profiler/common.php:49:13 - Invalid reference to $this in a non-class context (see https://psalm.dev/013)
            $this->enable((bool)$params['enabled']);


------------------------------
5 errors found
------------------------------

Additional info

Q A
Version yii3
PHP version 7.4
Operating system Debian

Adapt template to stable version of `yiisoft/yii-middleware`

Now error:

[Yiisoft\Definitions\Exception\InvalidConfigException] Invalid definition: class "Yiisoft\Yii\Middleware\Locale" does not have the public method with name "withEnableSaveLocale". Possible methods to call: "process", "withSupportedLocales", "withDefaultLocale", "withQueryParameterName", "withCookieName", "withDetectLocale", "withIgnoredRequestUrlPatterns", "withSecureCookie", "withCookieDuration"

Expand OpenAPI annotations

Currently annotations are very basic. These should be extended to include details about responses and request parameters.

Group classes by use-case

Currently classes are grouped by type: validation, controller, builder, formatter. I think overall the structure will be better if we'll group these by use-case:

Auth
  AuthController.php
  AuthRequestErrorHandler.php
  AuthRequest.php
Blog
  BlogController.php
  PostBuilder.php
  Post.php
  PostStatus.php
  PostFormatter.php
  PostRepository.php
  BlogService.php
  EditPostRequest.php
  ViewPostRequest.php
Site
  SiteController.php
User
  UserController.php
  User.php
  UserFormatter.php
  UserRepository.php
  UserService.php

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.