KnpLabs / KnpLabs/php-github-api

Allow specifying custom parameters

Abierto
#1,057 1 comentario 4 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
PHP
Estrellas
2.2k
Forks
587
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

The library locks you into providing only specific parameters. For example, `\Api\CurrentUser`:
![image](https://user-images.githubusercontent.com/54973868/158139424-d0b78a5b-861a-4d2a-b182-387ff02c3123.png)

The `/user/repos` endpoint has more parameters than just these, though, such as `per_page`, which is now being locked to 30 because users cannot specify a custom value.

If there *is* however a way to specify custom options without having to do any hacky things with `$client->getHttpClient`, I'd love to hear.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start by examining Api\CurrentUser and how requests to /user/repos accept and pass parameters; the issue specifically mentions the client’s getHttpClient as a possible workaround. Determine how custom options such as per_page should be exposed, then verify that callers can override the current fixed value without relying on the underlying HTTP client.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
php
Área
api
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.