GET api/PublicNotes/{userId}/{noteId}
Get public note by full slug - May be accessed anonymously
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userId |
User id (first part of slug) |
string |
Required |
| noteId |
Note id (tail end of slug) |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
NoteEntity| Name | Description | Type | Additional information |
|---|---|---|---|
| NoteId | string |
Required Matching regular expression pattern: ^[a-zA-Z0-9 \-]*$ |
|
| Title | string |
Required |
|
| Contents | string |
None. |
|
| CreatedDateUtc | date |
None. |
|
| ModifiedDateUtc | date |
None. |
|
| IsPublic | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"NoteId": "sample string 1",
"Title": "sample string 2",
"Contents": "sample string 3",
"CreatedDateUtc": "2025-10-25T16:14:24.3871912-05:00",
"ModifiedDateUtc": "2025-10-25T16:14:24.3871912-05:00",
"IsPublic": true
}
application/xml, text/xml
Sample:
<NoteEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyOnlineNotes.Models"> <Contents>sample string 3</Contents> <CreatedDateUtc>2025-10-25T16:14:24.3871912-05:00</CreatedDateUtc> <IsPublic>true</IsPublic> <ModifiedDateUtc>2025-10-25T16:14:24.3871912-05:00</ModifiedDateUtc> <NoteId>sample string 1</NoteId> <Title>sample string 2</Title> </NoteEntity>