Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete API server #1

Open
5 tasks
deadbits opened this issue Jun 26, 2023 · 1 comment
Open
5 tasks

Complete API server #1

deadbits opened this issue Jun 26, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@deadbits
Copy link
Owner

Complete Flask API server

  • endpoint to upload new prompts
  • validate uploaded prompts against schema
  • optionally put prompt into folder by category name
  • push new prompt to Git repo specified by config file
  • endpoint for retrieving stored prompts by category + name and UUID
@deadbits deadbits added the enhancement New feature or request label Jun 26, 2023
@deadbits deadbits self-assigned this Jun 26, 2023
@deadbits
Copy link
Owner Author

API Endpoints

  • GET {repo}/{category}/{prompt name} - return full prompt-serve file by name
  • GET {repo}/{uuid} - return full prompt-serve file by UUID
  • GET {repo}/{category}/{prompt name}?raw - return just the prompt text by name
  • GET {repo}/{uuid}?raw - return just prompt text by UUID
  • POST {repo} - commit prompt to repo (backend sorts prompt into category folder)
  • GET {repo}/_stats - return repo statistics
  • GET {repo}/_index - return repo file tree
  • GET {repo}/_index?{category} - return repo file tree for category
  • DELETE {repo}/{uuid} - delete prompt from repo by UUID
  • DELETE {repo}/path/to/prompt - delete prompt from repo by name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant