pastebin.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "openapi": "3.1.0",
  3. "info": {
  4. "title": "Pastebin API",
  5. "description": "Create pastes programmatically.",
  6. "version": "v1.0.0"
  7. },
  8. "servers": [
  9. {
  10. "url": "https://pastebin.example.com"
  11. }
  12. ],
  13. "paths": {
  14. "/pastes": {
  15. "post": {
  16. "operationId": "createPaste",
  17. "summary": "Create a new paste entry",
  18. "requestBody": {
  19. "required": true,
  20. "content": {
  21. "application/json": {
  22. "schema": {
  23. "type": "object",
  24. "properties": {
  25. "title": {
  26. "type": "string"
  27. },
  28. "content": {
  29. "type": "string"
  30. },
  31. "visibility": {
  32. "type": "string",
  33. "enum": [
  34. "public",
  35. "unlisted",
  36. "private"
  37. ]
  38. }
  39. },
  40. "required": [
  41. "title",
  42. "content",
  43. "visibility"
  44. ]
  45. }
  46. }
  47. }
  48. },
  49. "description": "Create a new paste entry"
  50. }
  51. }
  52. }
  53. }