Skip to content

add documentation for delete endpoint for system#2611

Open
acn-dgopa wants to merge 1 commit intomasterfrom
feature/delete-system
Open

add documentation for delete endpoint for system#2611
acn-dgopa wants to merge 1 commit intomasterfrom
feature/delete-system

Conversation

@acn-dgopa
Copy link
Copy Markdown
Member

@acn-dgopa acn-dgopa commented Jan 8, 2026

Summary by CodeRabbit

  • Documentation
    • Expanded System Register API documentation with new comprehensive section on system deletion, covering endpoint specifications, authentication scopes, and implementation details.
    • Provides complete technical information needed for developers integrating system removal functionality.
    • Documentation available in both English and Norwegian languages.

✏️ Tip: You can customize this high-level summary in your review settings.

@acn-dgopa acn-dgopa requested a review from Nyeng January 8, 2026 07:58
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jan 8, 2026

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'auto_resolve_threads'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
📝 Walkthrough

Walkthrough

API documentation is expanded across English and Norwegian Bokmål to include a new "Delete a system" endpoint. The DELETE method for authentication/api/v1/systemregister/vendor/{systemid}/ is documented with required scopes and request/response specifications.

Changes

Cohort / File(s) Summary
API Method Listings
content/api/authentication/systemuserapi/systemregister/_index.en.md, content/api/authentication/systemuserapi/systemregister/_index.nb.md
Each language version adds a single entry linking to the delete system endpoint in the API methods table
Delete Endpoint Documentation
content/api/authentication/systemuserapi/systemregister/update/_index.en.md, content/api/authentication/systemuserapi/systemregister/update/_index.nb.md
Detailed endpoint documentation added for DELETE operation, including scope requirement (altinn:authentication/systemregister.write), response format, and content type specifications

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🗑️ A system may rest, when its time comes to end,
With DELETE and scope, we bid it farewell, friend,
In English and Norsk, the docs now proclaim,
Deletion's dance steps, recorded by name! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'add documentation for delete endpoint for system' directly and accurately describes the main change: adding documentation for a delete endpoint in the system register API.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Fix all issues with AI agents
In @content/api/authentication/systemuserapi/systemregister/update/_index.en.md:
- Around line 238-245: In the "Delete A System" section for the DELETE
authentication/api/v1/systemregister/vendor/{systemid}/ endpoint, add a "###
Content types" subsection containing "application/json" to match other
endpoints, and normalize the scope wording by replacing "Maskinporten-token"
with "Maskinporten token" so it matches the other scope declarations in this
document.

In @content/api/authentication/systemuserapi/systemregister/update/_index.nb.md:
- Around line 237-244: Add a missing "### Content types" subsection immediately
after the "### Scopes" block in the "## Slett et system" section for the DELETE
endpoint (DELETE authentication/api/v1/systemregister/vendor/{systemid}/) so it
matches the format used by the Update rights and Update accesspackages
endpoints; include the same content-types lines these other endpoints use (e.g.,
the request/response content types or "application/json" entries) to keep
documentation consistent.
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 12c9c87 and 72a5105.

📒 Files selected for processing (4)
  • content/api/authentication/systemuserapi/systemregister/_index.en.md
  • content/api/authentication/systemuserapi/systemregister/_index.nb.md
  • content/api/authentication/systemuserapi/systemregister/update/_index.en.md
  • content/api/authentication/systemuserapi/systemregister/update/_index.nb.md
🧰 Additional context used
📓 Path-based instructions (2)
content/**/*

⚙️ CodeRabbit configuration file

Check for links, markdown formatting, headings, grammar, and spelling in multiple languages (en-US, nb-NO, nn-NO).

Files:

  • content/api/authentication/systemuserapi/systemregister/_index.en.md
  • content/api/authentication/systemuserapi/systemregister/update/_index.nb.md
  • content/api/authentication/systemuserapi/systemregister/update/_index.en.md
  • content/api/authentication/systemuserapi/systemregister/_index.nb.md
**/*.nb.md

⚙️ CodeRabbit configuration file

Check for Norwegian Bokmål (nb-NO) grammar and spelling with extra care. Pay special attention to specialized terminology and Norwegian-specific words.

Files:

  • content/api/authentication/systemuserapi/systemregister/update/_index.nb.md
  • content/api/authentication/systemuserapi/systemregister/_index.nb.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (2)
content/api/authentication/systemuserapi/systemregister/_index.nb.md (1)

22-22: Anchor link reference is correctly formatted.

The link to [Slett et system](update#slett-et-system) properly references the heading "## Slett et system" in the update file with the correct slug format.

content/api/authentication/systemuserapi/systemregister/_index.en.md (1)

22-22: Link format is correct; verify the corresponding anchor exists.

The markdown link on line 22 is properly formatted and follows the existing pattern of links in the API methods list. The text "Delete a system" is grammatically correct and consistently named with other list items.

Ensure that the corresponding anchor #delete-a-system exists in the update/_index.en.md file.

#!/bin/bash
# Verify that the delete-a-system anchor exists in the update documentation file
rg -n '##.*[Dd]elete.*[Ss]ystem|#.*delete-a-system' content/api/authentication/systemuserapi/systemregister/update/_index.en.md

Comment on lines +238 to +245
## Delete A System
The system owner can delete the system.

### Endpoint
DELETE authentication/api/v1/systemregister/vendor/{systemid}/

### Scopes
Maskinporten-token with scope <mark>altinn:authentication/systemregister.write</mark> No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Missing "### Content types" section and inconsistent hyphenation of "Maskinporten token".

Two issues with the Delete A System section:

  1. Missing Content types section: Like all other endpoints in this file (Update rights at lines 211-212, Update accesspackages at lines 235-236), the Delete section should include a "### Content types" subsection with "application/json".

  2. Inconsistent terminology: Line 245 uses "Maskinporten-token" (with hyphen), but all other scope declarations in this file use "Maskinporten token" without a hyphen (lines 64, 209, 233). Use the same format for consistency.

📝 Proposed fix
 ## Delete A System
 The system owner can delete the system.
 
 ### Endpoint
 DELETE authentication/api/v1/systemregister/vendor/{systemid}/
 
 ### Scopes
-Maskinporten-token with scope <mark>altinn:authentication/systemregister.write</mark>
+Maskinporten token with scope <mark>altinn:authentication/systemregister.write</mark>
+
+### Content types
+application/json
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
## Delete A System
The system owner can delete the system.
### Endpoint
DELETE authentication/api/v1/systemregister/vendor/{systemid}/
### Scopes
Maskinporten-token with scope <mark>altinn:authentication/systemregister.write</mark>
## Delete A System
The system owner can delete the system.
### Endpoint
DELETE authentication/api/v1/systemregister/vendor/{systemid}/
### Scopes
Maskinporten token with scope <mark>altinn:authentication/systemregister.write</mark>
### Content types
application/json
🤖 Prompt for AI Agents
In @content/api/authentication/systemuserapi/systemregister/update/_index.en.md
around lines 238 - 245, In the "Delete A System" section for the DELETE
authentication/api/v1/systemregister/vendor/{systemid}/ endpoint, add a "###
Content types" subsection containing "application/json" to match other
endpoints, and normalize the scope wording by replacing "Maskinporten-token"
with "Maskinporten token" so it matches the other scope declarations in this
document.

Comment on lines +237 to +244
## Slett et system
Systemeieren kan slette sitt system.

### Endepunkt
DELETE authentication/api/v1/systemregister/vendor/{systemid}/

### Scopes
Maskinporten-token med scope <mark>altinn:authentication/systemregister.write</mark> No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Missing "### Content types" section in Delete operation.

The new Delete system section is incomplete compared to other operations (Update rights, Update accesspackages). All other endpoints include a "### Content types" subsection after "### Scopes". This section should be added for consistency.

📝 Proposed fix
 ## Slett et system
 Systemeieren kan slette sitt system.
 
 ### Endepunkt
 DELETE authentication/api/v1/systemregister/vendor/{systemid}/
 
 ### Scopes
 Maskinporten-token med scope <mark>altinn:authentication/systemregister.write</mark>
+
+### Content types
+application/json
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
## Slett et system
Systemeieren kan slette sitt system.
### Endepunkt
DELETE authentication/api/v1/systemregister/vendor/{systemid}/
### Scopes
Maskinporten-token med scope <mark>altinn:authentication/systemregister.write</mark>
## Slett et system
Systemeieren kan slette sitt system.
### Endepunkt
DELETE authentication/api/v1/systemregister/vendor/{systemid}/
### Scopes
Maskinporten-token med scope <mark>altinn:authentication/systemregister.write</mark>
### Content types
application/json
🤖 Prompt for AI Agents
In @content/api/authentication/systemuserapi/systemregister/update/_index.nb.md
around lines 237 - 244, Add a missing "### Content types" subsection immediately
after the "### Scopes" block in the "## Slett et system" section for the DELETE
endpoint (DELETE authentication/api/v1/systemregister/vendor/{systemid}/) so it
matches the format used by the Update rights and Update accesspackages
endpoints; include the same content-types lines these other endpoints use (e.g.,
the request/response content types or "application/json" entries) to keep
documentation consistent.

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.

2 participants