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

Feat: Created SDK #70

Merged
merged 12 commits into from
Sep 21, 2024
Merged

Feat: Created SDK #70

merged 12 commits into from
Sep 21, 2024

Conversation

Utkarsh4517
Copy link
Member

@Utkarsh4517 Utkarsh4517 commented Sep 21, 2024

Features

  • Created SDK
  • Created schemas for PasteCreate PasteResponse and PasteDetails
  • Create apis to create and get a paste which returns uuid and url (to be used by SDK)
  • Wrote an example code
  • Wrote test cases

Checklist

  • My pull request has a descriptive title (not a vague title like Update index.md).
  • My pull request targets the default branch of the repository (main or master).
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added or updated tests for the changes I made (if applicable).
  • I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no
    visible errors.

Copy link

github-actions bot commented Sep 21, 2024

Sarthi Deployment Status 5106b2f941be2f99🤖
Deleted ephemeral / preview environment for https://github.com/Utkarsh4517/paste.py.git/feat-sdk

@Utkarsh4517 Utkarsh4517 changed the title Create post api/paste and get /api/paste/{uuid} which works on json model Created SDK Sep 21, 2024
@Utkarsh4517
Copy link
Member Author

Utkarsh4517 commented Sep 21, 2024

image
python3 example.py
Created paste with ID: 5nRU..py
Retrieved paste content: {'uuid': '5nRU..py', 'content': "print('Hello, World!')", 'extension': 'py'}
Delete result: File successfully deleted 5nRU..py
Number of supported languages: 397

@Mr-Sunglasses

@Utkarsh4517 Utkarsh4517 changed the title Created SDK Feat: Created SDK Sep 21, 2024
Copy link
Member

@Mr-Sunglasses Mr-Sunglasses left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks @Utkarsh4517

@Mr-Sunglasses Mr-Sunglasses linked an issue Sep 21, 2024 that may be closed by this pull request
@Mr-Sunglasses Mr-Sunglasses merged commit 5b6ced6 into FOSS-Community:main Sep 21, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] : Create a SDK
2 participants