Page:
file endpoints
Pages
API SMHI
API Sudoku
API TimeEdit
Accessibility Testing
Api documentation
Bat/Ps
Branch Creation
C# Coding Convention
CSS Coding Convention
Coding Conventions
Creating new databases
Dapper
Dictionary API
Documentation for service endpoints
Documentation of useTemperature and mock sensor
Energy endpoints
Environment
Evaluation react-grid-layout
Evaluation Localization
Evaluation Password hashing
Evaluation Testing framework
Evaluation of Logging Frameworks
Formatter
Frontend model
Generic Diagram for Sensor data flow
Home
How to- Creating Databases in Docker
Implementing different Styles
Implementing new Services (and Mockups)
Implementing new Views
Installation script documentation
Installation
Integration testing utilizing testcontainers, xUnit and ASP.NET core web testservers
Issues
JSON Coding Convention
Jest Testing
Layout endpoints
Linux
Localization
Login endpoints
Mac
Menu Endpoints
Middleware model
Mock API Ceation Guidelines
Mockup models
Model Tools and Standards
Parking endpoints
React/JavaScript Coding Convention
React
Reviews
Room booking endpoints
SQL Coding Convention
Scheduled Database tasks
Scripting Coding Convention
Seasonal theme
Secrets and .env
Server Access
Server-DeploymentUnix
Server-DeploymentWindows
Server-Hardware/Benchmarks
Service/API models
System models
System requirements
Temperature endpoints
Testing API with Bruno
Testing Architecture
Testing frontend for Mobile devices
Testing frontend with Playwright
Testing methodology
Themes
Trivia API
Västtrafik API
Webpage Design
Windows
file endpoints
pg_cron and scheduled database jobs
xUnit Testing
No results
8
file endpoints
Tim Svensson edited this page 2026-05-29 10:48:36 +00:00
Table of Contents
File endpoints
GET health check
Path to endpoint
GET /file/
Return values
Status message
When no error occurs
- When service is running
- Status: 200 OK
GET file
Path to endpoint
GET /file/f/{uuid}
Required values
- uuid: file UUID
Return values
- A file, or
- A JSON response
When no error occurs
- Returns the file with the UUID requested
- Status: 200 OK
When error occurs
- Returns a JSON file with an error message
- Status: 400 Bad request
POST file
Path to endpoint
POST /file/upload
Required values
- image: file (as multipart/form-data, see Bruno BFC2K/File Service/upload.yml)
Return values
A JSON object:
- IsSuccess: boolean
- ErrorMessage: Any error thrown
- Name: the UUID assigned to the uploaded file
When no error occurs
- File is uploaded
- Status: 200 OK
When error occurs
- IsSuccess set to false, ErrorMessage set to error thrown
- Status 200 OK
GET many
Path to endpoint
GET /file/many?contenttype=x&limit=y
Required values
- ContentType: string to match
- Limit: number of files to fetch
Return values
A JSON object containing an array of FileData entries:
{
FileDatas: [
{
uuid: UUID of file,
path: Path to file,
extension: File extension,
contentType: File content-type,
userId: ID of user that uploaded file
userProvidedFileName: The name of the file when uploaded
}
}
When no error occurs
- Returns a JSON array,
- Status: 200 OK
1. Setup
2. Standards
- Coding Conventions
- Issues
- Branch creation
- Reviews
- Implementation Standards
- [WIP] Creating new databases
- Localization
3. Models and Diagrams
4. Testing
- Testing methodology
- Testing Architecture
- Testing frontend with Playwright
- Integration testing utilizing testcontainers, xUnit and ASP.NET core webhost
5. Documentation
- Documentation for service endpoints
- API documentation
- Webpage Design
- Secrets and .env
- Evaluations
- Installation and Rebuild script documentation
6. Guides and How-to's
7. Micro Service Mockup Api
- Guidelines Mircro Service Mockup
- Documentation of useTemperature/useTemperatureTimeSeries mockup sensor