All URIs are relative to https://api.mailslurp.com
Method | HTTP request | Description |
---|---|---|
CreateContact | Post /contacts | Create a contact |
DeleteContact | Delete /contacts/{contactId} | Delete contact |
GetAllContacts | Get /contacts/paginated | Get all contacts |
GetContact | Get /contacts/{contactId} | Get contact |
GetContacts | Get /contacts | Get all contacts |
ContactDto CreateContact(ctx, createContactOptions)
Create a contact
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
createContactOptions | CreateContactOptions | createContactOptions |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteContact(ctx, contactId)
Delete contact
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
contactId | string | contactId |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PageContactProjection GetAllContacts(ctx, optional)
Get all contacts
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *GetAllContactsOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetAllContactsOpts struct
Name | Type | Description | Notes |
---|---|---|---|
page | optional.Int32 | Optional page index in inbox list pagination | [default to 0] |
size | optional.Int32 | Optional page size in inbox list pagination | [default to 20] |
sort | optional.String | Optional createdAt sort direction ASC or DESC | [default to ASC] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ContactDto GetContact(ctx, contactId)
Get contact
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
contactId | string | contactId |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ContactProjection GetContacts(ctx, )
Get all contacts
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]