Skip to content

Conversation

@josecelano
Copy link
Member

Before enabling Auxm API, there are some minor changes and fixes to do.

Response after deleting a tag should be:

```
{
  data: 1
}
```

not:

```
{
  data: "1"
}
```

where 1 (`i64`) is the tag ID.
The application allows adding empty categories. The test cannot be
executed in a shared env because it would fail the second tie is
executed becuase the category already exists.
If the handlers return an error Axum does not automatically return an
error HTTP code. See
https://docs.rs/axum/latest/axum/error_handling/index.html. You have to
convert the error into an error response.
This function could be used by many other handlers.
We are going to remove the ActixWeb implementation after enabling the
new Axum implementaion. WE are moving generic things in ActixWeb
implementations that are not going to be removed.
It's been used also in Axum implementation and ActixWeb implementation
will be removed.
It depends on the web framework (request).
@josecelano josecelano merged commit a662f9c into torrust:develop Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant