page.tsx 972 B

123456789101112131415161718192021222324252627282930
  1. import { ApiReferenceReact } from '@scalar/api-reference-react'
  2. import '@scalar/api-reference-react/style.css'
  3. export default function ApiDocs() {
  4. return (
  5. <div className="min-h-screen bg-gray-50">
  6. <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
  7. <div className="bg-white shadow rounded-lg">
  8. <div className="px-4 py-5 sm:p-6">
  9. <div className="mb-4">
  10. <h1 className="text-2xl font-bold text-gray-900">
  11. Vtorio API Documentation
  12. </h1>
  13. <p className="text-gray-600 mt-2">
  14. Interactive API documentation for file upload and management endpoints.
  15. </p>
  16. </div>
  17. <ApiReferenceReact
  18. configuration={{
  19. url: '/api/openapi.json',
  20. theme: 'default',
  21. layout: 'modern'
  22. }}
  23. />
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. )
  29. }