Skip to content

This repo is for testing & evaluating our llmops issue resolver on toy issues

License

Notifications You must be signed in to change notification settings

Freelunch-AI/toy-issues-with-github-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Item Management API

A FastAPI application for managing items with admin authentication.

Features

  • Admin authentication using JWT tokens
  • Create items (admin only)
  • List items (public)

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Run the application:
uvicorn app.main:app --reload

API Usage

Authentication

Get admin token:

curl -X POST "http://localhost:8000/auth/token" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "username=admin&password=admin123"

Items

Create item (requires admin token):

curl -X POST "http://localhost:8000/items/" \
  -H "Authorization: Bearer <your-token>" \
  -H "Content-Type: application/json" \
  -d '{"title": "Test Item", "description": "Test Description", "price": 10.0}'

List all items (public):

curl "http://localhost:8000/items/"

API Documentation

About

This repo is for testing & evaluating our llmops issue resolver on toy issues

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages