Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ Zeno AI is an advanced AI-powered economic reasoning system designed to provide

## API Documentation

- Swagger UI: [http://localhost:8000/swagger/](http://localhost:8000/swagger/)
- Redoc: [http://localhost:8000/redoc/](http://localhost:8000/redoc/)
- Swagger UI: [https://zeno-ai-be14a438528a.herokuapp.com/swagger/](https://zeno-ai-be14a438528a.herokuapp.com/swagger/)
- Redoc: [https://zeno-ai-be14a438528a.herokuapp.com/redoc/](https://zeno-ai-be14a438528a.herokuapp.com/redoc/)

## Usage

- Access API root at [http://localhost:8000/](http://localhost:8000/) to explore available endpoints.
- Access API root at [https://zeno-ai-be14a438528a.herokuapp.com/](https://zeno-ai-be14a438528a.herokuapp.com/) to explore available endpoints.
- Use `/register/`, `/login/`, and other API endpoints for user authentication and resource management.
- Modify authentication and permission settings in `settings.py` according to your needs.
- Modify authentication and permission settings in `settings.py` according to your needs.
9 changes: 1 addition & 8 deletions api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,7 @@ class RunSerializer(serializers.ModelSerializer):

class Meta:
model = Run
fields = [
'id',
'user_input',
'status',
'final_output',
'input_files',
'output_artifacts'
]
fields = '__all__'
read_only_fields = ['id', 'status', 'final_output', 'input_files', 'output_artifacts']

class StepSerializer(serializers.ModelSerializer):
Expand Down
18 changes: 18 additions & 0 deletions users/migrations/0002_alter_user_image.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.24 on 2025-09-17 13:09

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("users", "0001_initial"),
]

operations = [
migrations.AlterField(
model_name="user",
name="image",
field=models.URLField(blank=True, null=True),
),
]
2 changes: 1 addition & 1 deletion users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class User(AbstractBaseUser, PermissionsMixin):
last_name = models.CharField(max_length=50)
role = models.CharField(max_length=10, choices=ROLE_CHOICES, default="User")
email = models.EmailField(max_length=255, unique=True)
image = models.ImageField(upload_to="profile_pictures/", blank=True, null=True)
image = models.URLField(blank=True, null=True)
created_at = models.DateTimeField(auto_now_add=True)

is_active = models.BooleanField(default=True)
Expand Down