Page:
Layout endpoints
Pages
API SMHI
API TimeEdit
Accessibility Testing
Api documentation
Bat/Ps
Branch Creation
C# Coding Convention
CSS Coding Convention
Coding Conventions
Creating new databases
Dapper
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 Mockup sensors
Implementing new Views
Installation script documentation
Installation
Issues
JSON Coding Convention
Jest Testing
Layout endpoints
Linux
Localization
Login endpoints
Mac
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
Secrets and .env
Server Access
Server-Deployment
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
Västtrafik API
Webpage Design
Windows
pg_cron and scheduled database jobs
xUnit Testing
No results
2
Layout endpoints
Tim Svensson edited this page 2026-05-11 11:43:44 +00:00
Layout endpoints
- /layout/getSpecificLayout
- /layout/getFavoriteLayout
- /layout/getLayoutNameAndID
- /layout/saveSpecificLayout
- /layout/saveNewLayout
POST /layout/getSpecificLayout
Path to endpoint
POST /layout/getSpecificLayout
Required values
- UserID: user id
- ID: layout id
Return values
Returns JSON layout data.
When no error occurs
- Returns the requested layout
- Status: 200 OK
When error occurs
- Layout not found or request failed
- Status: 404 Not Found
POST /layout/getFavoriteLayout
Path to endpoint
POST /layout/getFavoriteLayout
Required values
- userId: user id
Return values
Returns JSON layout data.
When no error occurs
- Returns the user's favorite layout
- Status: 200 OK
When error occurs
- Favorite layout not found or request failed
- Status: 404 Not Found
POST /layout/getLayoutNameAndID
Path to endpoint
POST /layout/getLayoutNameAndID
Required values
- userId: user id
Return values
Returns JSON containing layout names and layout ids.
When no error occurs
- Returns layout names and ids for the user
- Status: 200 OK
When error occurs
- Layouts not found or request failed
- Status: 404 Not Found
POST /layout/saveSpecificLayout
Path to endpoint
POST /layout/saveSpecificLayout
Required values
- UserID: user id
- ID: layout id
- JsonPayload: layout data to save
Return values
Returns JSON result from the save operation.
When no error occurs
- Saves/updates the specific layout
- Status: 200 OK
When error occurs
- Layout could not be saved or request failed
- Status: 404 Not Found
POST /layout/saveNewLayout
Path to endpoint
POST /layout/saveNewLayout
Required values
- UserID: user id
- Name: name of the new layout
- JsonPayload: layout data to save
Return values
Returns JSON result from the save operation.
When no error occurs
- Saves a new layout
- Status: 200 OK
When error occurs
- New layout could not be saved or request failed
- Status: 404 Not Found
1. Setup
2. Standards
- Coding Conventions
- Issues
- Branch creation
- Reviews
- Implementation Standards
- [WIP] Creating new databases
- Localization
3. Models and Diagrams
4. Testing
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